redraw() private method

private redraw ( ) : void
return void
Exemplo n.º 1
0
 public static void setVisibility(MainMenuItem[] items, string itemKey, bool isVisible, string debug = null, float spacing = defaultVerticalSpacing)
 {
     //Debug.Log(string.Format("setVisibility({0},{1},{2},{3},{4})", MainMenuItemArray.ToString(items), itemKey, isVisible.ToString(), debug, spacing.ToString()));
     if (!string.IsNullOrEmpty(debug))
     {
         //Debug.LogError("MainMenuManager::setVisibility(items, "+itemKey+", "+isVisible+", "+debug+", "+spacing);
     }
     for (int index = 0; index < items.Length; index++)
     {
         items[index].initializeIfNecessary();
         if (items[index].itemName == itemKey)
         {
             items[index].displayed = isVisible;
             if (!string.IsNullOrEmpty(debug))
             {
                 //Debug.LogError("MainMenuManager::setVisibility "+debug+" found "+itemKey+" and set its visibility to "+isVisible);
             }
             break;
         }
         else if (!string.IsNullOrEmpty(debug))
         {
             //Debug.LogError("MainMenuManager::setVisibility "+debug+": '"+itemKey+"'≠'"+items[index].itemName+"'");
         }
     }
     MainMenuManager.redraw(items, debug, spacing);
 }
Exemplo n.º 2
0
 public static void replaceTextBy(string target, string replacement, MainMenuItem[] items, string debug = "")
 {
     //Debug.Log(string.Format("replaceTextBy({0}, {1}, {2}, {3})", target, replacement, MainMenuItemArray.ToString(items), debug));
     for (int index = 0; index < items.Length; index++)
     {
         if (items[index].itemName == target)
         {
             items[index].itemName = replacement;
             MainMenuManager.redraw(items);
             return;
         }
     }
     Logger.Log("MainMenuManager::MainMenuItem::replaceTextBy static " + debug + " FAIL with target=" + target + " and replacement=" + replacement, Logger.Level.WARN);
 }
Exemplo n.º 3
0
 private void redraw()
 {
     //Debug.Log("MainMenuManager::redraw");
     MainMenuManager.redraw(_items, null, verticalSpacing);
 }