Moved and added a bunch of stuff

This commit is contained in:
2025-01-15 19:45:00 +01:00
committed by andreas
parent caa062a5aa
commit 6654d53f91
19 changed files with 491 additions and 355 deletions
+4
View File
@@ -1,6 +1,7 @@
package game.video;
import engine.ConVar;
import engine.typedefs.console.CCmd;
import openfl.Lib;
import openfl.display.StageDisplayState;
@@ -14,6 +15,9 @@ class Mode
public static function setVideoMode(width:Int, height:Int, fs:Int = null){
getWindow().resize(width,height);
}
public static var cvMatSetVideoMode:CCmd = ConVar.registerCCmd("mat_setvideomode",(args:Array<String>)->{
setVideoMode(Std.parseInt(args[0]), Std.parseInt(args[1]), Std.parseInt(args[2]));
});
public static function switchFsMode(toState:Int = 0){
if(toState == 0){
if(Lib.current.stage.displayState != StageDisplayState.FULL_SCREEN_INTERACTIVE){