resize fixes + starting global and local events

will continue later
This commit is contained in:
⍚~Nex
2025-03-08 19:04:19 +01:00
parent 954828753e
commit 6c836eae71
7 changed files with 59 additions and 38 deletions
-12
View File
@@ -25,18 +25,6 @@ class EditorTreeMenu extends TreeMenu {
FlxG.switchState(new MainMenuState());
}
public override function onResize(width:Int, height:Int) {
super.onResize(width, height);
if (!UIState.resolutionAware) return;
if (width < FlxG.initialWidth || height < FlxG.initialHeight) {
width = FlxG.initialWidth; height = FlxG.initialHeight;
}
if (pathDesc != null && pathLabel != null)
pathDesc.width = pathLabel.width = width - 8;
}
public override function update(elapsed:Float) {
super.update(elapsed);
bg.x += elapsed * 125;