Esempio n. 1
0
 void manager_OnMenuStateChange(object sender, UIMenuStateChangeArgs e)
 {
     if (e.newState == UIMenuState.Shown)
     {
         ActualizeSlots();
     }
     UITooltip.HideOnce();
 }
Esempio n. 2
0
 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());
     }
 }
Esempio n. 4
0
    private void OnInventoryMenuStateChangeCallback(object sender, UIMenuStateChangeArgs e)
    {
        IContainer container = (sender as UIInventoryMenu).target;

        if (e.newState == UIMenuState.Shown && container != null)
        {
            Populate(container);
        }
        else
        {
            ClearList();
        }
    }
Esempio n. 5
0
 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;
     }
 }