Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Window [
- <table> self -> Refers to Window and it's properties
- Method create(type, options)
- <string> @type -> type of the component
- <table> @options -> options for the component
- Types [
- @type Color ->
- @options Options [
- <Color3> Default -> Default Color (default = Color3.new(1, 1, 1))
- <function> Callback -> Function retrieves <Color3.fromHSV>
- [!] Callback fires automatically with Default
- ]
- @type Number ->
- @options Options [
- <number> Default -> Default number (default = math.floor(data.Min + (data.Max - data.Min) / 2))
- <number> Max -> Max number
- <number> Min -> Min number
- <number> Round -> Minimum decimal place to round {0.1 = round to tenths} (default = 1)
- <function> Callback -> Function retrieves <number> from Max to Min rounded by Round
- [!] Callback fires automatically with Default
- ]
- @type Text ->
- @options Options [
- <string> Placeholder -> Text placeholder
- <bool> ClearTextOnClick -> Clears text if clicked, toggled by this bool
- <function> Callback -> Function retrieves <string>
- ]
- @type Execute ->
- @options Options [
- <function> Callback -> Function to execute
- ]
- @type Mode ->
- @options Options [
- <number> ValueIndex -> Default index value for the value (default = 1)
- <table> Modes -> The table to cycle through for modes
- <function> Callback -> Function retrieves selected Mode
- [!] Callback fires automatically with Default
- ]
- @type Hotkey ->
- @options Options [
- <string> KeyCode -> The keycode to toggle with {tostring(Enum.KeyCode.E)} (default = "")
- <function> Callback -> Function to execute
- ]
- @type Toggle ->
- @options Options [
- <bool> Default -> Default value for option (default = false)
- <function> Callback -> Function retrieves bool
- [!] Callback fires automatically with Default
- ]
- @type Checkbox ->
- @options Options [
- <bool> Default -> Default value for option (default = false)
- <function> Callback -> Function retrieves bool
- [!] Callback fires automatically with Default
- ]
- @type Label ->
- @options Options [
- <string> Name -> Name for the label
- ]
- -- To Be Continued...
- ]
- [!!!] EACH TYPE CREATED BY :create ALSO HAVE THE FUNCTION :create TO MAKE DROPDOWNS
- ]
- @github.com/Vzurxy/zerohub
Add Comment
Please, Sign In to add comment