Example #1
0
 public menu(string Name, menu_item[] Items)
 {
     name = Name;
     items = Items;
 }
Example #2
0
 public static void addItem(menu_item New, int index)
 {
     try
     {
         menu_item[] old = m_current.items;
         m_current.items = new menu_item[old.Length + 1];
         for (int i = 0; i != old.Length; i++)
         {
             m_current.items[i] = old[i];
         }
         New.myTag = index;
         New.pos = new Vector2(142, 225);
         New.selected = false;
         m_current.items[old.Length] = New;
     }
     catch
     {
         m_current.items = new menu_item[1];
         New.myTag = index;
         New.pos = new Vector2(142, 225);
         New.selected = false;
         m_current.items[0] = New;
     }
     NextTag++;
 }