Supports TargetSelector, PermaShow and auto saves.
API:
MenuConfig(name, id) -- returns menu config instance MenuConfig::Menu(id, name) -- creates submenu, equals to menu config instance MenuConfig::Boolean(id, name, defaultValue, callback, forceDefault) -- on/off MenuConfig::Boolean::Value() -- returns value MenuConfig::Boolean::Value(bool) -- sets value MenuConfig::KeyBinding(id, name, keyCode, isToggle, callback, forceDefault) -- key binding MenuConfig::KeyBinding::Value() -- returns value MenuConfig::KeyBinding::Value(bool) -- sets value MenuConfig::KeyBinding::Key() -- returns key MenuConfig::KeyBinding::Key(keyCode) -- sets key MenuConfig::KeyBinding::Toggle() -- returns isToggle MenuConfig::KeyBinding::Toggle(bool) -- sets toggle MenuConfig::Slider(id, name, value, min, max, step, callback, forceDefault) -- slider MenuConfig::Slider::Value() -- returns value MenuConfig::Slider::Value(bool) -- sets value MenuConfig::Slider::Get() -- returns min, max, step MenuConfig::Slider::Modify(min, max, step) -- sets min, max, step MenuConfig::DropDown(id, name, value, dropTable, callback, forceDefault) -- list MenuConfig::DropDown::Value() -- returns value MenuConfig::DropDown::Value(bool) -- sets value MenuConfig::ColorPick(id, name, colorTable, callback, forceDefault) -- color picker MenuConfig::ColorPick::Value() -- returns value MenuConfig::ColorPick::Value(table) -- sets value MenuConfig::Info(id, name) -- plain text MenuConfig::Empty(id, value) -- empty/invisible spacer MenuConfig::TargetSelector(id, name, mode, range, type, focusselected, ownteam) -- target selector MenuConfig::TargetSelector::GetTarget() -- returns target MenuConfig::Section(id, name) -- line PermaShow(MenuConfig) -- shows permanently on screen, only for Boolean and KeyBindingSample:
mc = MenuConfig("Sample", "Menu_Config_Sample") mc:Info("info", "MenuConfig Samples") mc:Slider("Sample", "Sample Percentage", 50, 0, 100, 1) mc:DropDown("Drop", "Sample DropDown", 1, {"Entry 1", "Entry 2"}) mc:ColorPick("Col", "Sample ColorPick", {255, 255, 255, 255}) mc:Info("info", "Sample Text") mc:TargetSelector("ts", "Sample TargetSelector", DAMAGE_MAGICAL, 1200, TARGET_LESS_CAST) mc:Menu("test", "test") mc.test:Info("info", "Sub Menu Info") mc.test:Slider("Sample", "Sample Percentage", 50, 0, 100, 1) OnDraw(function() DrawCircle(GetOrigin(GetMyHero()), 500, 0, 1, mc.Col:Value()) local target = mc.ts:GetTarget() if target then DrawCircle(GetOrigin(target), 500, 0, 1, ARGB(255,255,255,255)) end end)
Put it like this: (important)