changed a bunch of fucking shit

This commit is contained in:
2025-01-15 19:29:34 +01:00
committed by andreas
parent 1bf26db583
commit d39ee2a754
11 changed files with 278 additions and 33 deletions
+29
View File
@@ -0,0 +1,29 @@
package game.video;
import openfl.Lib;
import openfl.display.StageDisplayState;
class Mode
{
public static function getWindow():lime.ui.Window
{
return Lib.application.window;
}
public static function setVideoMode(width:Int, height:Int, fs:Int = null){
getWindow().resize(width,height);
}
public static function switchFsMode(toState:Int = 0){
if(toState == 0){
if(Lib.current.stage.displayState != StageDisplayState.FULL_SCREEN_INTERACTIVE){
Lib.current.stage.displayState = StageDisplayState.FULL_SCREEN_INTERACTIVE;
}
else{
Lib.current.stage.displayState = StageDisplayState.NORMAL;
}
}
else{
}
}
}