Esempio n. 1
0
 public static void DropdownMenu(GUIBase baseGUI, SmartRect rect, Setting <int> selection, string[] selections, bool move = true)
 {
     if (Button(rect, selections[selection.Value], false))
     {
         DropdownSelection.CreateNew(baseGUI, rect.ToRect(), selections, selection);
     }
     if (move)
     {
         rect.MoveY();
     }
 }
Esempio n. 2
0
 public static void DropdownMenu(GUIBase baseGUI, SmartRect rect, Setting <int> selection, string[] selections, string label, float horizontalOffest, bool move = true)
 {
     Label(rect, label, false);
     rect.MoveOffsetX(horizontalOffest);
     if (Button(rect, selections[selection.Value], false))
     {
         DropdownSelection.CreateNew(baseGUI, rect.ToRect(), selections, selection);
     }
     rect.ResetX();
     if (move)
     {
         rect.MoveY();
     }
 }