示例#1
0
 public static int GetMenuSlider(this EnsoulSharp.SDK.MenuUI.Menu menu, string mainMenuName, string secondMenuName)
 {
     return(menu[mainMenuName][secondMenuName].GetValue <MenuSlider>().Value);
 }
示例#2
0
 public static bool GetMenuKeybind(this EnsoulSharp.SDK.MenuUI.Menu menu, string mainMenuName, string secondMenuName)
 {
     return(menu[mainMenuName][secondMenuName].GetValue <MenuKeyBind>().Active);
 }
示例#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));
 }
示例#4
0
 public static bool GetMenuBool(this EnsoulSharp.SDK.MenuUI.Menu menu, string mainMenuName, string secondMenuName)
 {
     return(menu[mainMenuName][secondMenuName].GetValue <MenuBool>().Enabled);
 }
示例#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));
 }
示例#6
0
 public static void AddMenuSeperator(this EnsoulSharp.SDK.MenuUI.Menu menu, string name, string displayName)
 {
     menu.Add(new MenuSeparator(name, displayName));
 }
示例#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));
 }
示例#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);
 }