Advertisement
SirMeme

XENON'S UI LIB [docs]

Jul 5th, 2021
2,041
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.96 KB | None | 0 0
  1. SOME DOCS IF U ACTUALLY WANNA USE IT:
  2.  
  3. create the lib: library.Create(name, nameUnder)
  4. create a tab: lib:Tab(name, iconId)
  5. create a button: tab:Button("name", "description", callback)
  6. create a toggle: tab:Toggle("name", "description", starting_state, callback) --// returns state true or false
  7. create a dropdown: tab:Dropdown("name", list [table], callback) --// returns selected item in dropdown
  8. create a label: tab:Label(text)
  9. create a slider: tab:Slider(name, min, max, starting_value, callback) --// returns current value
  10. create a keybind: tab:Keybind(name, keybind [enum], blacklisted_keys [table] (THESE ARE IN TEXT NO ENUM EG.. {"A", "B"}), callback) --// only returns a value (new key) when there is a new key selected
  11. create a textbox: tab:TextBox(text, callback) --// returns new text typed in
  12. create a notification: tab:Notification(text)
  13.  
  14. other-
  15. force click a button: button:Click()
  16. update an asset: asset:Update(newvalues)
  17. toggle ui: lib:ToggleUI()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement