Esempio n. 1
0
 private void OnSceneLoaded(Scene scene, LoadSceneMode sceneMode)
 {
     currentScene = scene.name;
     UpdateHiddenButtons();
     try
     {
         GUIExt.repositionButtons(config.MaxButtonsPerLine, config.RemoveButtons ? hiddenButtonsList : null);
         fixTooltips();
     }
     catch (Exception e)
     {
         WriteLine(e.ToString(), true);
     }
 }
Esempio n. 2
0
 public void Update()
 {
     try
     {
         children = GameMain.Instance.SysShortcut.transform.Find("Base").gameObject.transform.Find("Grid").gameObject.GetComponent <UIGrid>().GetChildList();
         if (children.Count != numButtons)
         {
             numButtons = children.Count;
             GUIExt.repositionButtons(config.MaxButtonsPerLine, hiddenButtonsList);
             fixTooltips();
         }
     }
     catch (Exception e)
     {
         WriteLine(e.ToString(), true);
     }
 }