Vzurxy

ZeroHub Ui Library

May 9th, 2020
299
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.37 KB | None | 0 0
  1.  
  2.     class Window [
  3.         <table> self -> Refers to Window and it's properties
  4.  
  5.         Method create(type, options)
  6.             <string> @type -> type of the component
  7.             <table>  @options -> options for the component
  8.        
  9.         Types [
  10.             @type Color ->
  11.                 @options Options [
  12.                     <Color3> Default -> Default Color (default = Color3.new(1, 1, 1))
  13.                     <function> Callback -> Function retrieves <Color3.fromHSV>
  14.                     [!] Callback fires automatically with Default
  15.                 ]
  16.             @type Number ->
  17.                 @options Options [
  18.                     <number> Default -> Default number (default = math.floor(data.Min + (data.Max - data.Min) / 2))
  19.                     <number> Max -> Max number
  20.                     <number> Min -> Min number
  21.                     <number> Round -> Minimum decimal place to round {0.1 = round to tenths} (default = 1)
  22.                     <function> Callback -> Function retrieves <number> from Max to Min rounded by Round
  23.                     [!] Callback fires automatically with Default
  24.                 ]
  25.             @type Text ->
  26.                 @options Options [
  27.                     <string> Placeholder -> Text placeholder
  28.                     <bool> ClearTextOnClick -> Clears text if clicked, toggled by this bool
  29.                     <function> Callback -> Function retrieves <string>
  30.                 ]
  31.             @type Execute ->
  32.                 @options Options [
  33.                     <function> Callback -> Function to execute
  34.                 ]
  35.             @type Mode ->
  36.                 @options Options [
  37.                     <number> ValueIndex -> Default index value for the value (default = 1)
  38.                     <table> Modes -> The table to cycle through for modes
  39.                     <function> Callback -> Function retrieves selected Mode
  40.                     [!] Callback fires automatically with Default
  41.                 ]
  42.             @type Hotkey ->
  43.                 @options Options [
  44.                     <string> KeyCode -> The keycode to toggle with {tostring(Enum.KeyCode.E)} (default = "")
  45.                     <function> Callback -> Function to execute
  46.                 ]
  47.             @type Toggle ->
  48.                 @options Options [
  49.                     <bool> Default -> Default value for option (default = false)
  50.                     <function> Callback -> Function retrieves bool
  51.                     [!] Callback fires automatically with Default
  52.                 ]
  53.             @type Checkbox ->
  54.                 @options Options [
  55.                     <bool> Default -> Default value for option (default = false)
  56.                     <function> Callback -> Function retrieves bool
  57.                     [!] Callback fires automatically with Default
  58.                 ]
  59.             @type Label ->
  60.                 @options Options [
  61.                     <string> Name -> Name for the label
  62.                 ]
  63.             -- To Be Continued...
  64.         ]
  65.         [!!!] EACH TYPE CREATED BY :create ALSO HAVE THE FUNCTION :create TO MAKE DROPDOWNS
  66.     ]
  67.  
  68.     @github.com/Vzurxy/zerohub
Add Comment
Please, Sign In to add comment