KingPhantom

doc clone

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