Jump to content

Welcome to Gaming On Steroids Forums
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. This message will be removed once you have signed in.
Login to Account Create an Account
Photo

[Library] MenuConfig


  • This topic is locked This topic is locked
31 replies to this topic

#1
Inspired

Inspired

    Took the red pill.

  • Ex-Core Dev
  • PipPipPip
  • 723 posts
  • LocationWonderland
https://raw.githubus.../MenuConfig.lua

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 KeyBinding
Sample:
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)
54bQot8.gif



Put it like this: (important)
bd8fdfaf03b62569f22d8a993720aab3.png
  • 6

#2
Noddy

Noddy

    Surrender The Throne

  • Scripts Developer
  • 500 posts

Kreygasm


  • 1

#3
Deftsu

Deftsu

    donthackourgames

  • Ex-Core Dev
  • PipPipPip
  • 4,812 posts
omg so good let me suck your donger
  • 0

#4
klurosu

klurosu

    Advanced Member

  • Donator
  • 210 posts
  • LocationAtlanta

lol.... i cant waaait xD


  • 0

#5
Darkness

Darkness

    GoSDB's manager

  • Banned
  • PipPipPip
  • 1,137 posts
Great! So great that Deftsu wanna suck your donger keppo
  • 0

#6
Condim

Condim

    Advanced Member

  • Members
  • 371 posts

suck it like a Polaroid picture.

 

gj Inspired.


  • 0

#7
klurosu

klurosu

    Advanced Member

  • Donator
  • 210 posts
  • LocationAtlanta

I need it...

I want it...

I love it!!!


  • 0

#8
SweetStrawberry

SweetStrawberry

    Advanced Member

  • Members
  • 449 posts
  • LocationZyppy BedRoom

Nice One!  :scared:


  • 0

#9
ButterSmooth

ButterSmooth

    Advanced Member

  • Members
  • 710 posts
Deft can suck ur donger i can shave ur hair Kappa
  • 0

#10
LAsDePique

LAsDePique

    Advanced Member

  • Members
  • 103 posts
  • LocationFrance
Let me call you "Boss" :o
It's look amazing I hope scripter make à Good use of it !
  • 0

#11
Cloud

Cloud

    KAPPA

  • Ex-Staff
  • PipPipPip
  • 1,498 posts

Nice job


  • 0

#12
TristanabestOne

TristanabestOne

    Brazilian Supp

  • Local Support
  • 1,083 posts
  • LocationBrazil
Good job :P
  • 0

#13
thojuno

thojuno

    Advanced Member

  • Members
  • 147 posts

inspired comeback


  • 0

#14
Platypus

Platypus

    Bitcoin and Paysafecard payments are now available

  • Banned
  • PipPipPip
  • 1,289 posts
Okay
  • 0

#15
Maxxxel

Maxxxel

    The One

  • Scripts Developer
  • 1,196 posts
  • LocationGuess the right City to win 10$

reminds me on LeagueBot <3


  • 0

#16
Darkness

Darkness

    GoSDB's manager

  • Banned
  • PipPipPip
  • 1,137 posts

lol platy... "okay" then break the page :fappa:


  • 0

#17
ButterSmooth

ButterSmooth

    Advanced Member

  • Members
  • 710 posts

reminds me on LeagueBot <3

Doge
  • 0

#18
Auxide

Auxide

    Advanced Member

  • Contributor
  • 295 posts

TARGET SELECTOR PogChamp


  • 0

#19
onfinger

onfinger

    Member

  • Members
  • 22 posts
Very good inspired
GJ!
  • 0

#20
Rekt

Rekt

    Advanced Member

  • Members
  • 90 posts
  • LocationSky

Can we save our setting :)?


  • 0




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users