SimpleWindow static defaultCamera

This commit is contained in:
2022-08-30 16:04:18 +00:00
parent fc3bf543ec
commit 84dc8c65b3
2 changed files with 7 additions and 8 deletions

View File

@@ -1,6 +1,7 @@
// All windows share the same text size
(var &mut textSize 16)
(var :kiss.List<SimpleWindow> windowStack [])
(var &mut :flixel.FlxCamera defaultCamera null)
(prop &mut keyboardEnabled true)
@@ -23,6 +24,7 @@
:FlxKeyShortcutHandler<ShortcutAction> keyHandler (new FlxKeyShortcutHandler)]
(super 0 0)
(when defaultCamera (set this.cameras [defaultCamera]))
(makeGraphic
(Std.int (* FlxG.width (or percentWidth 0.5)))
(Std.int (* FlxG.height (or percentHeight 0.5)))