@quenty/iris 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -0
- package/LICENSE.md +22 -0
- package/README.md +33 -0
- package/default.project.json +14 -0
- package/package.json +42 -0
- package/src/Shared/Iris.lua +702 -0
- package/src/Shared/iris_API.lua +231 -0
- package/src/Shared/iris_Internal.lua +923 -0
- package/src/Shared/iris_PubTypes.lua +44 -0
- package/src/Shared/iris_Types.lua +674 -0
- package/src/Shared/iris_WidgetTypes.lua +522 -0
- package/src/Shared/iris_config.lua +306 -0
- package/src/Shared/iris_demoWindow.lua +2148 -0
- package/src/Shared/widgets/iris_Button.lua +91 -0
- package/src/Shared/widgets/iris_Checkbox.lua +116 -0
- package/src/Shared/widgets/iris_Combo.lua +498 -0
- package/src/Shared/widgets/iris_Format.lua +141 -0
- package/src/Shared/widgets/iris_Image.lua +156 -0
- package/src/Shared/widgets/iris_Input.lua +1430 -0
- package/src/Shared/widgets/iris_Menu.lua +603 -0
- package/src/Shared/widgets/iris_Plot.lua +642 -0
- package/src/Shared/widgets/iris_RadioButton.lua +127 -0
- package/src/Shared/widgets/iris_Root.lua +148 -0
- package/src/Shared/widgets/iris_Tab.lua +334 -0
- package/src/Shared/widgets/iris_Table.lua +641 -0
- package/src/Shared/widgets/iris_Text.lua +133 -0
- package/src/Shared/widgets/iris_Tree.lua +291 -0
- package/src/Shared/widgets/iris_Window.lua +1158 -0
- package/src/Shared/widgets/iris_widgets.lua +487 -0
- package/src/jest.config.lua +3 -0
- package/src/node_modules.project.json +7 -0
- package/test/default.project.json +25 -0
- package/test/scripts/Server/ServerMain.server.lua +13 -0
|
@@ -0,0 +1,306 @@
|
|
|
1
|
+
--!nocheck
|
|
2
|
+
local TemplateConfig = {
|
|
3
|
+
colorDark = { -- Dear, ImGui default dark
|
|
4
|
+
TextColor = Color3.fromRGB(255, 255, 255),
|
|
5
|
+
TextTransparency = 0,
|
|
6
|
+
TextDisabledColor = Color3.fromRGB(128, 128, 128),
|
|
7
|
+
TextDisabledTransparency = 0,
|
|
8
|
+
|
|
9
|
+
-- Dear ImGui uses 110, 110, 125
|
|
10
|
+
-- The Roblox window selection highlight is 67, 191, 254
|
|
11
|
+
BorderColor = Color3.fromRGB(110, 110, 125),
|
|
12
|
+
BorderTransparency = 0.5,
|
|
13
|
+
BorderActiveColor = Color3.fromRGB(160, 160, 175), -- does not exist in Dear ImGui
|
|
14
|
+
BorderActiveTransparency = 0.3,
|
|
15
|
+
|
|
16
|
+
WindowBgColor = Color3.fromRGB(15, 15, 15),
|
|
17
|
+
WindowBgTransparency = 0.06,
|
|
18
|
+
PopupBgColor = Color3.fromRGB(20, 20, 20),
|
|
19
|
+
PopupBgTransparency = 0.06,
|
|
20
|
+
|
|
21
|
+
ScrollbarGrabColor = Color3.fromRGB(79, 79, 79),
|
|
22
|
+
ScrollbarGrabTransparency = 0,
|
|
23
|
+
|
|
24
|
+
TitleBgColor = Color3.fromRGB(10, 10, 10),
|
|
25
|
+
TitleBgTransparency = 0,
|
|
26
|
+
TitleBgActiveColor = Color3.fromRGB(41, 74, 122),
|
|
27
|
+
TitleBgActiveTransparency = 0,
|
|
28
|
+
TitleBgCollapsedColor = Color3.fromRGB(0, 0, 0),
|
|
29
|
+
TitleBgCollapsedTransparency = 0.5,
|
|
30
|
+
|
|
31
|
+
MenubarBgColor = Color3.fromRGB(36, 36, 36),
|
|
32
|
+
MenubarBgTransparency = 0,
|
|
33
|
+
|
|
34
|
+
FrameBgColor = Color3.fromRGB(41, 74, 122),
|
|
35
|
+
FrameBgTransparency = 0.46,
|
|
36
|
+
FrameBgHoveredColor = Color3.fromRGB(66, 150, 250),
|
|
37
|
+
FrameBgHoveredTransparency = 0.46,
|
|
38
|
+
FrameBgActiveColor = Color3.fromRGB(66, 150, 250),
|
|
39
|
+
FrameBgActiveTransparency = 0.33,
|
|
40
|
+
|
|
41
|
+
ButtonColor = Color3.fromRGB(66, 150, 250),
|
|
42
|
+
ButtonTransparency = 0.6,
|
|
43
|
+
ButtonHoveredColor = Color3.fromRGB(66, 150, 250),
|
|
44
|
+
ButtonHoveredTransparency = 0,
|
|
45
|
+
ButtonActiveColor = Color3.fromRGB(15, 135, 250),
|
|
46
|
+
ButtonActiveTransparency = 0,
|
|
47
|
+
|
|
48
|
+
ImageColor = Color3.fromRGB(255, 255, 255),
|
|
49
|
+
ImageTransparency = 0,
|
|
50
|
+
|
|
51
|
+
SliderGrabColor = Color3.fromRGB(66, 150, 250),
|
|
52
|
+
SliderGrabTransparency = 0,
|
|
53
|
+
SliderGrabActiveColor = Color3.fromRGB(66, 150, 250),
|
|
54
|
+
SliderGrabActiveTransparency = 0,
|
|
55
|
+
|
|
56
|
+
HeaderColor = Color3.fromRGB(66, 150, 250),
|
|
57
|
+
HeaderTransparency = 0.69,
|
|
58
|
+
HeaderHoveredColor = Color3.fromRGB(66, 150, 250),
|
|
59
|
+
HeaderHoveredTransparency = 0.2,
|
|
60
|
+
HeaderActiveColor = Color3.fromRGB(66, 150, 250),
|
|
61
|
+
HeaderActiveTransparency = 0,
|
|
62
|
+
|
|
63
|
+
TabColor = Color3.fromRGB(46, 89, 148),
|
|
64
|
+
TabTransparency = 0.14,
|
|
65
|
+
TabHoveredColor = Color3.fromRGB(66, 150, 250),
|
|
66
|
+
TabHoveredTransparency = 0.2,
|
|
67
|
+
TabActiveColor = Color3.fromRGB(51, 105, 173),
|
|
68
|
+
TabActiveTransparency = 0,
|
|
69
|
+
|
|
70
|
+
SelectionImageObjectColor = Color3.fromRGB(255, 255, 255),
|
|
71
|
+
SelectionImageObjectTransparency = 0.8,
|
|
72
|
+
SelectionImageObjectBorderColor = Color3.fromRGB(255, 255, 255),
|
|
73
|
+
SelectionImageObjectBorderTransparency = 0,
|
|
74
|
+
|
|
75
|
+
TableBorderStrongColor = Color3.fromRGB(79, 79, 89),
|
|
76
|
+
TableBorderStrongTransparency = 0,
|
|
77
|
+
TableBorderLightColor = Color3.fromRGB(59, 59, 64),
|
|
78
|
+
TableBorderLightTransparency = 0,
|
|
79
|
+
TableRowBgColor = Color3.fromRGB(0, 0, 0),
|
|
80
|
+
TableRowBgTransparency = 1,
|
|
81
|
+
TableRowBgAltColor = Color3.fromRGB(255, 255, 255),
|
|
82
|
+
TableRowBgAltTransparency = 0.94,
|
|
83
|
+
TableHeaderColor = Color3.fromRGB(48, 48, 51),
|
|
84
|
+
TableHeaderTransparency = 0,
|
|
85
|
+
|
|
86
|
+
NavWindowingHighlightColor = Color3.fromRGB(255, 255, 255),
|
|
87
|
+
NavWindowingHighlightTransparency = 0.3,
|
|
88
|
+
NavWindowingDimBgColor = Color3.fromRGB(204, 204, 204),
|
|
89
|
+
NavWindowingDimBgTransparency = 0.65,
|
|
90
|
+
|
|
91
|
+
SeparatorColor = Color3.fromRGB(110, 110, 128),
|
|
92
|
+
SeparatorTransparency = 0.5,
|
|
93
|
+
|
|
94
|
+
CheckMarkColor = Color3.fromRGB(66, 150, 250),
|
|
95
|
+
CheckMarkTransparency = 0,
|
|
96
|
+
|
|
97
|
+
PlotLinesColor = Color3.fromRGB(156, 156, 156),
|
|
98
|
+
PlotLinesTransparency = 0,
|
|
99
|
+
PlotLinesHoveredColor = Color3.fromRGB(255, 110, 89),
|
|
100
|
+
PlotLinesHoveredTransparency = 0,
|
|
101
|
+
PlotHistogramColor = Color3.fromRGB(230, 179, 0),
|
|
102
|
+
PlotHistogramTransparency = 0,
|
|
103
|
+
PlotHistogramHoveredColor = Color3.fromRGB(255, 153, 0),
|
|
104
|
+
PlotHistogramHoveredTransparency = 0,
|
|
105
|
+
|
|
106
|
+
ResizeGripColor = Color3.fromRGB(66, 150, 250),
|
|
107
|
+
ResizeGripTransparency = 0.8,
|
|
108
|
+
ResizeGripHoveredColor = Color3.fromRGB(66, 150, 250),
|
|
109
|
+
ResizeGripHoveredTransparency = 0.33,
|
|
110
|
+
ResizeGripActiveColor = Color3.fromRGB(66, 150, 250),
|
|
111
|
+
ResizeGripActiveTransparency = 0.05,
|
|
112
|
+
},
|
|
113
|
+
colorLight = { -- Dear, ImGui default light
|
|
114
|
+
TextColor = Color3.fromRGB(0, 0, 0),
|
|
115
|
+
TextTransparency = 0,
|
|
116
|
+
TextDisabledColor = Color3.fromRGB(153, 153, 153),
|
|
117
|
+
TextDisabledTransparency = 0,
|
|
118
|
+
|
|
119
|
+
-- Dear ImGui uses 0, 0, 0, 77
|
|
120
|
+
-- The Roblox window selection highlight is 67, 191, 254
|
|
121
|
+
BorderColor = Color3.fromRGB(64, 64, 64),
|
|
122
|
+
BorderActiveColor = Color3.fromRGB(64, 64, 64), -- does not exist in Dear ImGui
|
|
123
|
+
|
|
124
|
+
-- BorderTransparency will be problematic for non UIStroke border implimentations
|
|
125
|
+
-- will not be implimented because of this
|
|
126
|
+
BorderTransparency = 0.5,
|
|
127
|
+
BorderActiveTransparency = 0.2,
|
|
128
|
+
|
|
129
|
+
WindowBgColor = Color3.fromRGB(240, 240, 240),
|
|
130
|
+
WindowBgTransparency = 0,
|
|
131
|
+
PopupBgColor = Color3.fromRGB(255, 255, 255),
|
|
132
|
+
PopupBgTransparency = 0.02,
|
|
133
|
+
|
|
134
|
+
TitleBgColor = Color3.fromRGB(245, 245, 245),
|
|
135
|
+
TitleBgTransparency = 0,
|
|
136
|
+
TitleBgActiveColor = Color3.fromRGB(209, 209, 209),
|
|
137
|
+
TitleBgActiveTransparency = 0,
|
|
138
|
+
TitleBgCollapsedColor = Color3.fromRGB(255, 255, 255),
|
|
139
|
+
TitleBgCollapsedTransparency = 0.5,
|
|
140
|
+
|
|
141
|
+
MenubarBgColor = Color3.fromRGB(219, 219, 219),
|
|
142
|
+
MenubarBgTransparency = 0,
|
|
143
|
+
|
|
144
|
+
ScrollbarGrabColor = Color3.fromRGB(176, 176, 176),
|
|
145
|
+
ScrollbarGrabTransparency = 0.2,
|
|
146
|
+
|
|
147
|
+
FrameBgColor = Color3.fromRGB(255, 255, 255),
|
|
148
|
+
FrameBgTransparency = 0.6,
|
|
149
|
+
FrameBgHoveredColor = Color3.fromRGB(66, 150, 250),
|
|
150
|
+
FrameBgHoveredTransparency = 0.6,
|
|
151
|
+
FrameBgActiveColor = Color3.fromRGB(66, 150, 250),
|
|
152
|
+
FrameBgActiveTransparency = 0.33,
|
|
153
|
+
|
|
154
|
+
ButtonColor = Color3.fromRGB(66, 150, 250),
|
|
155
|
+
ButtonTransparency = 0.6,
|
|
156
|
+
ButtonHoveredColor = Color3.fromRGB(66, 150, 250),
|
|
157
|
+
ButtonHoveredTransparency = 0,
|
|
158
|
+
ButtonActiveColor = Color3.fromRGB(15, 135, 250),
|
|
159
|
+
ButtonActiveTransparency = 0,
|
|
160
|
+
|
|
161
|
+
ImageColor = Color3.fromRGB(255, 255, 255),
|
|
162
|
+
ImageTransparency = 0,
|
|
163
|
+
|
|
164
|
+
HeaderColor = Color3.fromRGB(66, 150, 250),
|
|
165
|
+
HeaderTransparency = 0.31,
|
|
166
|
+
HeaderHoveredColor = Color3.fromRGB(66, 150, 250),
|
|
167
|
+
HeaderHoveredTransparency = 0.2,
|
|
168
|
+
HeaderActiveColor = Color3.fromRGB(66, 150, 250),
|
|
169
|
+
HeaderActiveTransparency = 0,
|
|
170
|
+
|
|
171
|
+
TabColor = Color3.fromRGB(195, 203, 213),
|
|
172
|
+
TabTransparency = 0.07,
|
|
173
|
+
TabHoveredColor = Color3.fromRGB(66, 150, 250),
|
|
174
|
+
TabHoveredTransparency = 0.2,
|
|
175
|
+
TabActiveColor = Color3.fromRGB(152, 186, 255),
|
|
176
|
+
TabActiveTransparency = 0,
|
|
177
|
+
|
|
178
|
+
SliderGrabColor = Color3.fromRGB(61, 133, 224),
|
|
179
|
+
SliderGrabTransparency = 0,
|
|
180
|
+
SliderGrabActiveColor = Color3.fromRGB(117, 138, 204),
|
|
181
|
+
SliderGrabActiveTransparency = 0,
|
|
182
|
+
|
|
183
|
+
SelectionImageObjectColor = Color3.fromRGB(0, 0, 0),
|
|
184
|
+
SelectionImageObjectTransparency = 0.8,
|
|
185
|
+
SelectionImageObjectBorderColor = Color3.fromRGB(0, 0, 0),
|
|
186
|
+
SelectionImageObjectBorderTransparency = 0,
|
|
187
|
+
|
|
188
|
+
TableBorderStrongColor = Color3.fromRGB(145, 145, 163),
|
|
189
|
+
TableBorderStrongTransparency = 0,
|
|
190
|
+
TableBorderLightColor = Color3.fromRGB(173, 173, 189),
|
|
191
|
+
TableBorderLightTransparency = 0,
|
|
192
|
+
TableRowBgColor = Color3.fromRGB(0, 0, 0),
|
|
193
|
+
TableRowBgTransparency = 1,
|
|
194
|
+
TableRowBgAltColor = Color3.fromRGB(77, 77, 77),
|
|
195
|
+
TableRowBgAltTransparency = 0.91,
|
|
196
|
+
TableHeaderColor = Color3.fromRGB(199, 222, 250),
|
|
197
|
+
TableHeaderTransparency = 0,
|
|
198
|
+
|
|
199
|
+
NavWindowingHighlightColor = Color3.fromRGB(179, 179, 179),
|
|
200
|
+
NavWindowingHighlightTransparency = 0.3,
|
|
201
|
+
NavWindowingDimBgColor = Color3.fromRGB(51, 51, 51),
|
|
202
|
+
NavWindowingDimBgTransparency = 0.8,
|
|
203
|
+
|
|
204
|
+
SeparatorColor = Color3.fromRGB(99, 99, 99),
|
|
205
|
+
SeparatorTransparency = 0.38,
|
|
206
|
+
|
|
207
|
+
CheckMarkColor = Color3.fromRGB(66, 150, 250),
|
|
208
|
+
CheckMarkTransparency = 0,
|
|
209
|
+
|
|
210
|
+
PlotLinesColor = Color3.fromRGB(99, 99, 99),
|
|
211
|
+
PlotLinesTransparency = 0,
|
|
212
|
+
PlotLinesHoveredColor = Color3.fromRGB(255, 110, 89),
|
|
213
|
+
PlotLinesHoveredTransparency = 0,
|
|
214
|
+
PlotHistogramColor = Color3.fromRGB(230, 179, 0),
|
|
215
|
+
PlotHistogramTransparency = 0,
|
|
216
|
+
PlotHistogramHoveredColor = Color3.fromRGB(255, 153, 0),
|
|
217
|
+
PlotHistogramHoveredTransparency = 0,
|
|
218
|
+
|
|
219
|
+
ResizeGripColor = Color3.fromRGB(89, 89, 89),
|
|
220
|
+
ResizeGripTransparency = 0.83,
|
|
221
|
+
ResizeGripHoveredColor = Color3.fromRGB(66, 150, 250),
|
|
222
|
+
ResizeGripHoveredTransparency = 0.33,
|
|
223
|
+
ResizeGripActiveColor = Color3.fromRGB(66, 150, 250),
|
|
224
|
+
ResizeGripActiveTransparency = 0.05,
|
|
225
|
+
},
|
|
226
|
+
|
|
227
|
+
sizeDefault = { -- Dear, ImGui default
|
|
228
|
+
ItemWidth = UDim.new(1, 0),
|
|
229
|
+
ContentWidth = UDim.new(0.65, 0),
|
|
230
|
+
ContentHeight = UDim.new(0, 0),
|
|
231
|
+
|
|
232
|
+
WindowPadding = Vector2.new(8, 8),
|
|
233
|
+
WindowResizePadding = Vector2.new(6, 6),
|
|
234
|
+
FramePadding = Vector2.new(4, 3),
|
|
235
|
+
ItemSpacing = Vector2.new(8, 4),
|
|
236
|
+
ItemInnerSpacing = Vector2.new(4, 4),
|
|
237
|
+
CellPadding = Vector2.new(4, 2),
|
|
238
|
+
DisplaySafeAreaPadding = Vector2.new(0, 0),
|
|
239
|
+
SeparatorTextPadding = Vector2.new(20, 3),
|
|
240
|
+
IndentSpacing = 21,
|
|
241
|
+
|
|
242
|
+
TextFont = Font.fromEnum(Enum.Font.Code),
|
|
243
|
+
TextSize = 13,
|
|
244
|
+
FrameBorderSize = 0,
|
|
245
|
+
FrameRounding = 0,
|
|
246
|
+
GrabRounding = 0,
|
|
247
|
+
WindowRounding = 0, -- these don't actually work but it's nice to have them.
|
|
248
|
+
WindowBorderSize = 1,
|
|
249
|
+
WindowTitleAlign = Enum.LeftRight.Left,
|
|
250
|
+
PopupBorderSize = 1,
|
|
251
|
+
PopupRounding = 0,
|
|
252
|
+
ScrollbarSize = 7,
|
|
253
|
+
GrabMinSize = 10,
|
|
254
|
+
SeparatorTextBorderSize = 3,
|
|
255
|
+
ImageBorderSize = 2,
|
|
256
|
+
},
|
|
257
|
+
sizeClear = { -- easier to read and manuveure
|
|
258
|
+
ItemWidth = UDim.new(1, 0),
|
|
259
|
+
ContentWidth = UDim.new(0.65, 0),
|
|
260
|
+
ContentHeight = UDim.new(0, 0),
|
|
261
|
+
|
|
262
|
+
WindowPadding = Vector2.new(12, 8),
|
|
263
|
+
WindowResizePadding = Vector2.new(8, 8),
|
|
264
|
+
FramePadding = Vector2.new(6, 4),
|
|
265
|
+
ItemSpacing = Vector2.new(8, 8),
|
|
266
|
+
ItemInnerSpacing = Vector2.new(8, 8),
|
|
267
|
+
CellPadding = Vector2.new(4, 4),
|
|
268
|
+
DisplaySafeAreaPadding = Vector2.new(8, 8),
|
|
269
|
+
SeparatorTextPadding = Vector2.new(24, 6),
|
|
270
|
+
IndentSpacing = 25,
|
|
271
|
+
|
|
272
|
+
TextFont = Font.fromEnum(Enum.Font.Ubuntu),
|
|
273
|
+
TextSize = 15,
|
|
274
|
+
FrameBorderSize = 1,
|
|
275
|
+
FrameRounding = 4,
|
|
276
|
+
GrabRounding = 4,
|
|
277
|
+
WindowRounding = 4,
|
|
278
|
+
WindowBorderSize = 1,
|
|
279
|
+
WindowTitleAlign = Enum.LeftRight.Center,
|
|
280
|
+
PopupBorderSize = 1,
|
|
281
|
+
PopupRounding = 4,
|
|
282
|
+
ScrollbarSize = 9,
|
|
283
|
+
GrabMinSize = 14,
|
|
284
|
+
SeparatorTextBorderSize = 4,
|
|
285
|
+
ImageBorderSize = 4,
|
|
286
|
+
},
|
|
287
|
+
|
|
288
|
+
utilityDefault = {
|
|
289
|
+
UseScreenGUIs = true,
|
|
290
|
+
IgnoreGuiInset = false,
|
|
291
|
+
ScreenInsets = Enum.ScreenInsets.CoreUISafeInsets,
|
|
292
|
+
Parent = nil,
|
|
293
|
+
RichText = false,
|
|
294
|
+
TextWrapped = false,
|
|
295
|
+
DisplayOrderOffset = 127,
|
|
296
|
+
ZIndexOffset = 0,
|
|
297
|
+
|
|
298
|
+
MouseDoubleClickTime = 0.30, -- Time for a double-click, in seconds.
|
|
299
|
+
MouseDoubleClickMaxDist = 6.0, -- Distance threshold to stay in to validate a double-click, in pixels.
|
|
300
|
+
|
|
301
|
+
HoverColor = Color3.fromRGB(255, 255, 0),
|
|
302
|
+
HoverTransparency = 0.1,
|
|
303
|
+
},
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
return TemplateConfig
|