示例#1
0
文件: UI.cs 项目: mrpossoms/AnimoNex
 public menu(string Name, menu_item[] Items)
 {
     name = Name;
     items = Items;
 }
示例#2
0
文件: UI.cs 项目: mrpossoms/AnimoNex
 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++;
 }