diff --git a/Assets/PerfectWorld/Scripts/UI/EC_UIUtility.cs b/Assets/PerfectWorld/Scripts/UI/EC_UIUtility.cs
index 3015327276..0f6ceddf9d 100644
--- a/Assets/PerfectWorld/Scripts/UI/EC_UIUtility.cs
+++ b/Assets/PerfectWorld/Scripts/UI/EC_UIUtility.cs
@@ -125,6 +125,8 @@ namespace BrewMonster.Scripts.UI
///
/// The GameObject panel to show/hide
/// True to show, false to hide
+ public const int OverlayPanelSortOrder = 2000;
+
public static void ShowPanel(GameObject panel, bool show)
{
if (panel == null)
@@ -145,6 +147,25 @@ namespace BrewMonster.Scripts.UI
}
}
+ /// Draw panel above other UI dialogs (sibling order + canvas sort).
+ public static void BringPanelToFront(GameObject panel)
+ {
+ if (panel == null)
+ return;
+
+ panel.transform.SetAsLastSibling();
+
+ var canvas = panel.GetComponent