Gold_Dino

ui lib documentation

Dec 18th, 2019
598
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.58 KB | None | 0 0
  1. getUi(color, property)
  2. color <boolean> -> return screengui containing all ui objects
  3. color <color3>
  4. property <string> -> return ui objects with the same property that matches color
  5. return -> { object <guiobject> }
  6. property <boolean> -> return ui objects and it's property that matches color
  7. return -> { object <guiobject>, properities <table> }
  8.  
  9. getUpdaters()
  10. return a table of updaters corresponding with each element name <function>
  11.  
  12. getConfigs()
  13. return -> table of customizable properities
  14.  
  15. load(name, key)
  16. name <string> -> name of the screengui
  17. key <string> -> whitelist key
  18.  
  19. swap(side)
  20. side <boolean> -> shift ui side
  21. true -> left
  22. false -> right
  23.  
  24. toggle(value)
  25. value <boolean> -> toggle the ui
  26. true -> shows ui
  27. false -> hide ui
  28.  
  29. promptNotify(text, option1, option2, callback)
  30. text <string> -> text to notify
  31. option1 <string> -> text for button1
  32. option2 <string> -> text for button2
  33. callback <function> function to call when either button is clicked
  34. return (option)
  35. option <string> text of button clicked
  36.  
  37. addMenu(name)
  38. name <string> -> name of menu
  39.  
  40. addButton(text, callback)
  41. text <string> -> text for button
  42. callback <function> -> function to call when button is clicked
  43. return (set)
  44. set <function> (text)
  45. text <string> -> new text for button
  46.  
  47. return -> button
  48.  
  49. addDropdown(text, placeholder, list, callback)
  50. text <string> -> default text for the searchbox
  51. placeholder <string> -> placeholder for the dropdown searchbox
  52. list <string> -> list of values to display
  53. callback <function> -> function to call when a dropdown button is clicked
  54. return (text, set)
  55. text <string> -> text of button
  56. set <function> (list)
  57. list <table> -> new list of values to display
  58.  
  59. return -> dropdown
  60.  
  61. addInput(text, default, callback)
  62. text <string> -> text for input
  63. default <string> -> text for textbox
  64. callback <function> -> function to call when focus is lost
  65. return (text, set)
  66. text <string> -> text of textbox
  67. set <function> (text)
  68. text <string> -> text for textbox
  69.  
  70. return -> textbox
  71.  
  72. addToggle(text, default, callback)
  73. text <string> -> text for toggle
  74. default <boolean> -> default value for toggle
  75. callback <function> -> function to call when toggle is changed
  76. return -> (value, set)
  77. value <boolean> -> toggled
  78. set <function> (value)
  79. value <boolean> -> toggled
  80.  
  81. return -> toggle
  82.  
  83. addSlider(text, default, min, max, callback)
  84. text <string> -> text for slider
  85. default <number> -> default value for slider
  86. min <number> -> minimum value of slider range
  87. max <number> -> maximum value of slider range
  88. callback <function> -> function to call when slider is changed
  89. return (value, set)
  90. value <number> -> value of the slider
  91. set <function> (value)
  92. value <number> -> new value for slider
  93.  
  94. return -> slider
  95.  
  96. addKeyBind(text, default, bind, callback)
  97. text <string> -> text for bind
  98. default <keycode> -> default key for bind
  99. bind <function> -> function to call when key is pressed
  100. callback <function> -> function to call when bind is changed
  101. return -> (key, set)
  102. key <keycode> - new key binded
  103. set <function> (key)
  104. key <keycode> -> new key to bind
  105.  
  106. return -> keybind
  107.  
  108. addColorPicker(text, default, callback)
  109. text <string> -> text for picker
  110. default <color3> -> default color for picker
  111. callback <function> -> function to call when color is changed
  112. return -> (color, set)
  113. color <color3> -> new color picked
  114. set <function> (color)
  115. color <color3> -> new color for picker
  116.  
  117. return - colorpicker
Advertisement
Add Comment
Please, Sign In to add comment