Skip to content

Commit 3a21c73

Browse files
committed
sibling index set via scripts
1 parent e178df5 commit 3a21c73

10 files changed

Lines changed: 9 additions & 1 deletion
-1.54 KB
Binary file not shown.
-296 Bytes
Binary file not shown.
-304 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
-304 Bytes
Binary file not shown.
-304 Bytes
Binary file not shown.
-304 Bytes
Binary file not shown.

Assets/GUIWindows/Scripts/GUIWindowExpander.cs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ void Update ()
8383
/// <param name="input">is interactive</param>
8484
public void SetIsLocked(bool input) {
8585
isLocked = input;
86+
parentWindow.SetAsLastSibling();
8687
}
8788

8889
/// <summary>
@@ -104,6 +105,7 @@ public void MaximiseWindow () {
104105

105106
isMaximised = true;
106107
doAction = true;
108+
parentWindow.SetAsLastSibling();
107109
}
108110

109111
/// <summary>
@@ -125,12 +127,15 @@ public void MinimiseWindow() {
125127

126128
isMaximised = false;
127129
doAction = true;
130+
parentWindow.SetAsLastSibling();
128131
}
129132

130133
/// <summary>
131134
/// Do a click for attempting to expand by double click
132135
/// </summary>
133-
public void TryDoubleClick () {
136+
public void TryDoubleClick ()
137+
{
138+
parentWindow.SetAsLastSibling();
134139
if (isLocked || !doubleClick) return;
135140
numClicks++;
136141
if (numClicks == 1) {

Assets/GUIWindows/Scripts/GUIWindowHandle.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,7 @@ void Update ()
161161
/// <param name="input">is interactive</param>
162162
public void SetIsLocked (bool input) {
163163
isLocked = input;
164+
parentWindow.SetAsLastSibling();
164165
}
165166

166167
/// <summary>
@@ -202,6 +203,7 @@ public void SetIsGrabbed ()
202203
parentWindow.SetPivot(new Vector2(1,1));
203204
break;
204205
}
206+
parentWindow.SetAsLastSibling();
205207
}
206208

207209
/// <summary>

Assets/GUIWindows/Scripts/GUIWindowMover.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,5 +56,6 @@ public void SetIsLocked(bool input) {
5656
public void SetIsGrabbed () {
5757
mouseOffset = parentWindow.position - Input.mousePosition;
5858
isGrabbed = true;
59+
parentWindow.SetAsLastSibling();
5960
}
6061
}

0 commit comments

Comments
 (0)