private void DoShow(WindowHistoryEntry windowEntry) { if (CurrentWindow == windowEntry.Screen) { Debug.LogWarning( string.Format( "[WindowUILayer] The requested WindowId ({0}) is already open! This will add a duplicate to the " + "history and might cause inconsistent behaviour. It is recommended that if you need to open the same" + "screen multiple times (eg: when implementing a warning message pop-up), it closes itself upon the player input" + "that triggers the continuation of the flow." , CurrentWindow.ScreenId)); } else if (CurrentWindow != null && CurrentWindow.HideOnForegroundLost && !windowEntry.Screen.IsPopup) { CurrentWindow.Hide(); } windowHistory.Push(windowEntry); AddTransition(windowEntry.Screen); if (windowEntry.Screen.IsPopup) { priorityParaLayer.DarkenBG(); } windowEntry.Show(); CurrentWindow = windowEntry.Screen; }
public static void MinimizarApp(this object obj) { if (CurrentWindow == null) { return; } CurrentWindow.ShowInTaskbar = false; CurrentWindow.Hide(); IsActiveApp = false; if (AbstractWindow != null) { AbstractWindow.SetarNotifyIcon(); AbstractWindow.NotifyIcon.Ativo = true; } }
private void DoShow(WindowHistoryEntry windowEntry) { if (CurrentWindow == windowEntry.Screen) { Debug.Log("The requested Window ID " + windowEntry.Screen.screenID + " is already open!"); } else if (CurrentWindow != null && CurrentWindow.HideOnForegroundLost && !windowEntry.Screen.IsPopup) { CurrentWindow.Hide(); } windowHistory.Push(windowEntry); AddTransition(windowEntry.Screen); if (windowEntry.Screen.IsPopup) { priorityParaLayer.DarkenBG(); } windowEntry.Show(); CurrentWindow = windowEntry.Screen; }