-
Notifications
You must be signed in to change notification settings - Fork 77
Expand file tree
/
Copy pathDocumentation.lua
More file actions
110 lines (90 loc) · 2.63 KB
/
Documentation.lua
File metadata and controls
110 lines (90 loc) · 2.63 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
local Material = [[ MaterialLuaModule ]]
local NewUI = Material.Load({
-> Title <string[any]>
-> Style <number[1,3]>
-> SizeX <number[inf]>
-> SizeY <number[inf]>
-> Theme <string["Light","Dark","Mocha","Aqua","Jester"]>
-> ColorOverrides <table>
})
local NewPage = NewUI.New({
-> Title <string[any]>
-> ImageID <number[assetid]>
})
local Banner = NewPage.Banner({
-> Text <string[any]>
-> Options <table>
})
local NewButton = NewPage.Button({
-> Text <string[any]>
-> Callback <function(void)>
-> Menu <table>
})
local NewToggle = NewPage.Toggle({
-> Text <string[any]>
-> Callback <function(value)>
-> Enabled <bool=false>
-> Menu <table>
})
local NewSlider = NewPage.Slider({
-> Text <string[any]>
-> Callback <function(value)>
-> Min <number[inf]>
-> Max <number[inf]>
-> Def <number[inf]>
-> Menu <table>
})
local NewDropdown = NewPage.Dropdown({
-> Text <string[any]>
-> Callback <function(value)>
-> Options <table>
-> Menu <table>
})
local NewChipSet = NewPage.ChipSet({
-> Callback <function(chipset)>
-> Options <table>
})
local NewDataTable = NewPage.DataTable({
-> Callback <function(datatable)>
-> Options <table>
})
local NewColorPicker = NewPage.ColorPicker({
-> Text <string[any]>
-> Default <color3>
-> Callback <function(value)>
-> Menu <table>
})
local NewTextField = NewPage.TextField({
-> Text <string[any]>
-> Type <string["Password", "Default"]>
-> Callback <function(value)>
-> Menu <table>
})
-- Custom Functions
<void> NewButton:SetText(<string[any]>)
<string> NewButton:GetText(<void>)
<void> NewToggle:SetText(<string[any]>)
<string> NewToggle:GetText(<void>)
<void> NewToggle:SetState(<bool>)
<bool> NewToggle:GetState(<void>)
<void> NewSlider:SetText(<string[any]>)
<string> NewSlider:GetText(<void>)
<number> NewSlider:GetValue(<void>)
<void> NewSlider:SetMin(<number[any]>)
<void> NewSlider:SetMax(<number[any]>)
<number> NewSlider:GetMin(<void>)
<number> NewSlider:GetMax(<void>)
<void> NewDropdown:SetText(<string[any]>)
<string> NewDropdown:GetText(<void>)
<void> NewDropdown:SetOptions(<table>)
<table> NewDropdown:GetOptions(<void>)
<void> NewChipSet:SetOptions(<table>)
<table> NewChipSet:GetOptions(<void>)
<void> NewDataTable:SetOptions(<table>)
<table> NewDataTable:GetOptions(<void>)
<void> NewColorPicker:SetText(<table>)
<void> NewColorPicker:SetColor(<color3>)
<string> NewColorPicker:GetText(<void>)
<color3> NewColorPicker:GetColor(<void>)
<void> NewTextField:SetText(<string[any])
<string> NewTextField:GetText(<void>)