Browse Source

Fix color wheel being created outside the screen in small resolutions.

Lasse Öörni 9 năm trước cách đây
mục cha
commit
bca26b74eb

+ 2 - 1
bin/Data/Scripts/Editor/EditorColorWheel.as

@@ -105,7 +105,8 @@ void CreateColorWheel()
     SubscribeToEvent(okButton, "Pressed", "HandleWheelButtons");
     SubscribeToEvent(cancelButton, "Pressed", "HandleWheelButtons");
 
-    lastColorWheelWindowPosition = IntVector2(300,400);
+    CenterDialog(colorWheelWindow);
+    lastColorWheelWindowPosition = colorWheelWindow.position;
 
     HideColorWheel();
 }

+ 0 - 1
bin/Data/UI/EditorColorWheel.xml

@@ -1,7 +1,6 @@
 <?xml version="1.0"?>
 <element type="Window">
 	<attribute name="Name" value="EditorColorWheel" />
-	<attribute name="Position" value="1026 364" />
 	<attribute name="Size" value="400 450" />
 	<attribute name="Is Movable" value="true" />
 	<element>