Vanilla UI is an open sourced UI. You are able to edit it to your desire. I made this UI to give people an open sourced click gui for mod menus
At the moment this only supports one window.
- Dragging. (Next update SOON™)
- Scrolling
- Multiple window support.
- Sliders
- Textbox
function UI.Begin(name, flags)
--Example:
UI.Begin("Vanilla UI Demo", {NoBorder = true})
function UI.Begin(name, flags)
--Example:
UI.Begin("Vanilla UI Demo", {NoBorder = true})
Runs the end function for the menu.
function UI.End()
--Example:
UI.End() --PLACE THIS AT THE END OF THE GUI
UI.Checkbox(displayName, configName, clickFunc)
--Example:
UI.Checkbox("Test Checkbox", "cTestCheckbox", function() log(false, "Checkbox Toggled") end)
UI.Button(displayName, size, clickFunc)
--Example:
UI.Button("Test Button", Vec2(100, 20), function() log(false, "Button Pressed") end)
Sets the next item in the UI to be on the same line as the previous item.
function UI.SameLine()
--Example:
UI.Checkbox("Test Checkbox 1", "cTestCheckbox")
UI.SameLine()
UI.Button("Test Button", Vec2(100, 20), function() log(false, "Button Pressed") end)
Set the next window size
UI.PushNextWindowSize(w, h)
--Example:
UI.PushNextWindowSize(600, 500)
Sets the menu key (prefered to not run in a loop)
UI.SetMenuKey(key)
--Example:
UI.SetMenuKey(121)