Set some window properties upon creation

This commit is contained in:
unknown
2025-03-20 20:16:12 +01:00
committed by Josh Tynjala
parent 3802d51e5c
commit 6450e5b2c3

View File

@@ -171,6 +171,12 @@ class Window
__x = 0;
__y = 0;
__title = Reflect.hasField(__attributes, "title") ? __attributes.title : "";
__visible = true;
__borderless = Reflect.hasField(__attributes, "borderless") ? __attributes.borderless : false;
__resizable = Reflect.hasField(__attributes, "resizable") ? __attributes.resizable : false;
__maximized = Reflect.hasField(__attributes, "maximized") ? __attributes.maximized : false;
__minimized = Reflect.hasField(__attributes, "minimized") ? __attributes.minimized : false;
id = -1;
__backend = new WindowBackend(this);