forked from violin-suzutsuki/LinoriaLib
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDocumentation.txt
83 lines (68 loc) · 1.78 KB
/
Documentation.txt
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
Library:CreateWindow(<string> Title)
returns <Window>
<Window> class:
Window:SetWindowTitle(<string> Title)
sets window title to Title
Window:AddTab(<string> TabName)
returns <Tab>
<Tab> class:
Tab:AddLeftTabbox(<string> TabboxName)
returns <Tabbox>
Tab:AddRightTabbox(<string> TabboxName)
returns <Tabbox>
Tab:AddLeftGroupbox(<string> GroupboxName)
returns <Container>
Tab:AddRightGroupbox(<string> GroupboxName)
returns <Container>
<Tabbox> class:
function Tabbox:AddTab(<string> TabName)
returns <Container>
<Container> class:
function Container:AddLabel(<string> LabelText)
returns <Label, extends BaseAddons>
function Container:AddToggle(<string> Idx, <dictionary> Info)
Info -> {
<bool> Default
<string> Text
}
returns <Toggle, extends BaseAddons>
function Container:AddButton(<string> ButtonText, <function> Callback)
returns <Button>
function Container:AddInput(<string> Idx, <dictionary> Info)
Info -> {
<string> Default
<string> Text
}
returns <Input>
function Container:AddSlider(<string> Idx, <dictionary> Info)
Info -> {
<int> Default
<int> Min
<int> Max
<int> Rounding (0 = 0 decimal place, 1 = 1 decimal place, etc)
<string> Suffix
<string> Text
}
returns <Slider>
function Container:AddDropdown(<string> Idx, <dictionary> Info)
Info -> {
<string> Text
<int> Default (default idx within Values table, can be left null)
<table> Values
<bool> AllowNull
<bool> Multi
}
returns <Dropdown>
<BaseAddons> class:
BaseAddons:AddKeyPicker(<string> Idx, <dictionary> Info)
Info -> {
<string> Default
<string> Mode: Always, Toggle, Held (defaults to Toggle)
<bool> NoUI (true = hide from Keybinds menu)
}
returns <KeyPicker>
BaseAddons:AddColorPicker(Idx, <dictionary> Info)
Info -> {
<Color3> Default
}
returns <ColorPicker>