Esempio n. 1
0
 public static int GetMenuSlider(this EnsoulSharp.SDK.MenuUI.Menu menu, string mainMenuName, string secondMenuName)
 {
     return(menu[mainMenuName][secondMenuName].GetValue <MenuSlider>().Value);
 }
Esempio n. 2
0
 public static bool GetMenuKeybind(this EnsoulSharp.SDK.MenuUI.Menu menu, string mainMenuName, string secondMenuName)
 {
     return(menu[mainMenuName][secondMenuName].GetValue <MenuKeyBind>().Active);
 }
Esempio n. 3
0
 public static void AddMenuList(this EnsoulSharp.SDK.MenuUI.Menu menu, string name, string displayName, string[] items, int selectedValue)
 {
     menu.Add(new MenuList(name, displayName, items, selectedValue));
 }
Esempio n. 4
0
 public static bool GetMenuBool(this EnsoulSharp.SDK.MenuUI.Menu menu, string mainMenuName, string secondMenuName)
 {
     return(menu[mainMenuName][secondMenuName].GetValue <MenuBool>().Enabled);
 }
Esempio n. 5
0
 public static void AddMenuKeybind(this EnsoulSharp.SDK.MenuUI.Menu menu, string name, string displayName, Keys key, KeyBindType type)
 {
     menu.Add(new MenuKeyBind(name, displayName, key, type));
 }
Esempio n. 6
0
 public static void AddMenuSeperator(this EnsoulSharp.SDK.MenuUI.Menu menu, string name, string displayName)
 {
     menu.Add(new MenuSeparator(name, displayName));
 }
Esempio n. 7
0
 public static void AddMenuSlider(this EnsoulSharp.SDK.MenuUI.Menu menu, string name, string displayName, int value = 0, int minValue = 0, int maxValue = 0)
 {
     menu.Add(new MenuSlider(name, displayName, value, minValue, maxValue));
 }
Esempio n. 8
0
 public static void AddMenuBool(this EnsoulSharp.SDK.MenuUI.Menu menu, string name, string displayName, bool value = true)
 {
     menu.Add(new MenuBool(name, displayName, value));
 }
 public static void SetMenuList(this EnsoulSharp.SDK.MenuUI.Menu menu, string mainMenuName, string secondMenuName, int newValue)
 {
     menu[mainMenuName][secondMenuName].GetValue <MenuList>().SetValue(newValue);
 }
 public static void SetMenuKeybind(this EnsoulSharp.SDK.MenuUI.Menu menu, string mainMenuName, string secondMenuName, bool newValue)
 {
     menu[mainMenuName][secondMenuName].GetValue <MenuKeyBind>().SetValue(newValue);
 }
 public static string GetMenuList(this EnsoulSharp.SDK.MenuUI.Menu menu, string mainMenuName, string secondMenuName)
 {
     return(menu[mainMenuName][secondMenuName].GetValue <MenuList>().SelectedValue);
 }