void manager_OnMenuStateChange(object sender, UIMenuStateChangeArgs e) { if (e.newState == UIMenuState.Shown) { ActualizeSlots(); } UITooltip.HideOnce(); }
private void OnStateChangeCallback(object sender, UIMenuStateChangeArgs args) { if (args.newState == UIMenuState.Hidden) { gameObject.SetActive(true); } else { gameObject.SetActive(false); } }
private void OnMenuStateChange(object sender, UIMenuStateChangeArgs args) { if (args.newState == UIMenuState.Hidden) { ApplyModifications(); } else { OnStatsChanged(this, new EventArgs()); } }
private void OnInventoryMenuStateChangeCallback(object sender, UIMenuStateChangeArgs e) { IContainer container = (sender as UIInventoryMenu).target; if (e.newState == UIMenuState.Shown && container != null) { Populate(container); } else { ClearList(); } }
private void OnStateChangeCallback(object sender, UIMenuStateChangeArgs args) { if (args.newState == UIMenuState.Hidden && State == UIMenuState.Shown) { UIStateManager.UnregisterUI(); content.SetActive(false); Time.timeScale = 1.0f; } else if (args.newState == UIMenuState.Shown && State == UIMenuState.Hidden) { UIStateManager.RegisterUI(); content.SetActive(true); Time.timeScale = 0.0f; } }