-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathtabs.lua
More file actions
352 lines (339 loc) · 20.8 KB
/
tabs.lua
File metadata and controls
352 lines (339 loc) · 20.8 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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
togabalatro.custom_ui = function(modNodes)
local lv = togabalatro.description_loc_vars() or {}
G.toga_card_area = CardArea(
G.ROOM.T.x + 0.2 * G.ROOM.T.w / 2, G.ROOM.T.h, 6.9 * G.CARD_W, 0.95 * G.CARD_H,
{ card_limit = 7, type = 'title', highlight_limit = 0, collection = true }
)
for i, key in ipairs({ 'j_toga_win95', 'j_toga_tomscott', 'j_toga_franziska', 'j_toga_bonusducks', 'c_toga_miningprospect', 'c_toga_furnace', 'c_toga_alloyer' }) do
local c = Card(G.toga_card_area.T.x + G.toga_card_area.T.w / 2, G.toga_card_area.T.y, G.CARD_W, G.CARD_H, G.P_CARDS.empty, G.P_CENTERS[key], {bypass_discovery_center = true, bypass_discovery_ui = true})
c.togamodarea = true
c.no_ui = true
if key == 'c_toga_furnace' then c.click = G.FUNCS.toga_alloyrecipes; c.no_ui = nil end
if key == 'c_toga_miningprospect' then c.click = G.FUNCS.toga_showminerals; c.no_ui = nil end
if key == 'c_toga_alloyer' then c.click = G.FUNCS.toga_showalloys; c.no_ui = nil end
if key == 'j_toga_bonusducks' then c.click = G.FUNCS.toga_quack end
G.toga_card_area:emplace(c)
end
modNodes[#modNodes+1] = {
n = G.UIT.R,
config = { align = "cm", padding = 0.35, no_fill = true },
nodes = {
{ n = G.UIT.O, config = { object = G.toga_card_area } }
}
}
for k, v in pairs(G.toga_card_area.cards or {}) do
v.states.drag.can = false
v.states.release_on.can = false
end
if math.random(1, 10) == 5 then
table.insert(modNodes, #modNodes+1, {n = G.UIT.R, config = {r = 0.1, align = "cm", padding = 0.1}, nodes = {
{n = G.UIT.C, config = { align = "cm", padding = 0.05 }, nodes = {
{n = G.UIT.O, config = { w = 1, h = 1, object = AnimatedSprite(0, 0, 1, 1, G.ANIMATION_ATLAS['toga_TOGAFunny'], { x = 0, y = 0 }) } },
}},
}})
end
end
togabalatro.description_loc_vars = function(self)
return {
scale = 1.25,
text_colour = HEX('FFFFFF'),
background_colour = HEX('2B2B2B')
}
end
togabalatro.config_tab = function()
return {n = G.UIT.ROOT, config = {align = "cl", outline = 1, outline_colour = HEX('C3C3C3'), padding = 0.025, colour = G.C.UI.BACKGROUND_INACTIVE, minw = 7, minh = 2}, nodes = {
{n = G.UIT.R, config = {align = "cl", colour = HEX('000082')}, nodes = {
{n = G.UIT.C, config = { align = "cl", padding = 0.05 }, nodes = {
{n = G.UIT.O, config = { w = 0.75, h = 0.75, object = Sprite(36, 36, 36, 36, G.ASSET_ATLAS['toga_TOGAMoreIcons'], { x = 0, y = 0 }) } },
}},
{n = G.UIT.C, config = { align = "cl", padding = 0 }, nodes = {
{n = G.UIT.T, config = { text = localize('toga_configtab'), scale = 0.5, colour = G.C.UI.TEXT_LIGHT }},
}},
}},
{n = G.UIT.R, config = {align = "cl", padding = 0.15 }, nodes = {
{n = G.UIT.C, config = { align = "cm", padding = 0 }, nodes = {
{n = G.UIT.T, config = { text = localize('toga_sfxwhenmain'), scale = 0.5, colour = G.C.UI.TEXT_LIGHT }},
}},
}},
{n = G.UIT.R, config = {align = "cl" }, nodes = {
{n = G.UIT.C, config = { align = "cl", padding = -0.25 }, nodes = {
create_toggle{ col = true, label = "", scale = 0.85, w = 0.15, shadow = true, ref_table = togabalatro.config, ref_value = "SFXWhenAdding" },
}},
{n = G.UIT.C, config = { align = "cl", padding = 0.2 }, nodes = {
{n = G.UIT.T, config = { text = localize('toga_sfxwhenadd'), scale = 0.5, colour = G.C.UI.TEXT_LIGHT }},
}},
{n = G.UIT.C, config = { align = "cl", padding = -0.25 }, nodes = {
create_toggle{ col = true, label = "", scale = 0.85, w = 0.15, shadow = true, ref_table = togabalatro.config, ref_value = "SFXWhenRemoving" },
}},
{n = G.UIT.C, config = { align = "cl", padding = 0.2 }, nodes = {
{n = G.UIT.T, config = { text = localize('toga_sfxwhendel'), scale = 0.5, colour = G.C.UI.TEXT_LIGHT }},
}},
{n = G.UIT.C, config = { align = "cl", padding = -0.25 }, nodes = {
create_toggle{ col = true, label = "", scale = 0.85, w = 0.15, shadow = true, ref_table = togabalatro.config, ref_value = "SFXWhenTriggered" },
}},
{n = G.UIT.C, config = { align = "cl", padding = 0.2 }, nodes = {
{n = G.UIT.T, config = { text = localize('toga_sfxwhenuse'), scale = 0.5, colour = G.C.UI.TEXT_LIGHT }},
}},
}},
{n = G.UIT.R, config = {align = "cl", padding = 0}, nodes = {
{n = G.UIT.C, config = { align = "cl", padding = -0.25 }, nodes = {
create_toggle{ col = true, label = "", scale = 0.85, w = 0.15, shadow = true, ref_table = togabalatro.config, ref_value = "StartUpSound" },
}},
{n = G.UIT.C, config = { align = "cl", padding = 0.2 }, nodes = {
{n = G.UIT.T, config = { text = localize('toga_startupsfx'), scale = 0.5, colour = G.C.UI.TEXT_LIGHT, tooltip = { title = localize('toga_description'), text = {localize('toga_desc_startupsfx1'), localize('toga_desc_startupsfx2')} } }},
}},
}},
{n = G.UIT.R, config = {align = "cl", padding = 0}, nodes = {
{n = G.UIT.C, config = { align = "cl", padding = -0.25 }, nodes = {
create_toggle{ col = true, label = "", scale = 0.85, w = 0.15, shadow = true, ref_table = togabalatro.config, ref_value = "TitleScreenCard" },
}},
{n = G.UIT.C, config = { align = "cl", padding = 0.2 }, nodes = {
{n = G.UIT.T, config = { text = localize('toga_titlescreencard'), scale = 0.5, colour = G.C.UI.TEXT_LIGHT, tooltip = { title = localize('toga_description'), text = {localize('toga_desc_titlescreen1'), localize('toga_desc_titlescreen2')} } }},
}},
}},
{n = G.UIT.R, config = {align = "cl", padding = 0}, nodes = {
{n = G.UIT.C, config = { align = "cl", padding = -0.25 }, nodes = {
create_toggle{ col = true, label = "", scale = 0.85, w = 0.15, shadow = true, ref_table = togabalatro.config, ref_value = "PLCMRetroactive" },
}},
{n = G.UIT.C, config = { align = "cl", padding = 0.2 }, nodes = {
{n = G.UIT.T, config = { text = localize('toga_applyretroactiveplcm'), scale = 0.45, colour = G.C.UI.TEXT_LIGHT }},
}},
}},
{n = G.UIT.R, config = {align = "cl", padding = 0}, nodes = {
{n = G.UIT.C, config = { align = "cl", padding = -0.25 }, nodes = {
create_toggle{ col = true, label = "", scale = 0.85, w = 0.15, shadow = true, ref_table = togabalatro.config, ref_value = "EnableQE" },
}},
{n = G.UIT.C, config = { align = "cl", padding = 0.2 }, nodes = {
{n = G.UIT.T, config = { text = localize('toga_qestuff'), scale = 0.5, colour = G.C.UI.TEXT_LIGHT }},
}},
{n = G.UIT.C, config = { align = "cl", padding = -0.25 }, nodes = {
create_toggle{ col = true, label = "", scale = 0.85, w = 0.15, shadow = true, ref_table = togabalatro.config, ref_value = "KingCDIDeck" },
}},
{n = G.UIT.C, config = { align = "cl", padding = 0.2 }, nodes = {
{n = G.UIT.T, config = { text = localize('toga_kingcdideck'), scale = 0.5, colour = G.C.UI.TEXT_LIGHT }},
}},
{n = G.UIT.C, config = { align = "cl", padding = -0.25 }, nodes = {
create_toggle{ col = true, label = "", scale = 0.85, w = 0.15, shadow = true, ref_table = togabalatro.config, ref_value = "WTFDeck" },
}},
{n = G.UIT.C, config = { align = "cl", padding = 0.2 }, nodes = {
{n = G.UIT.T, config = { text = localize('toga_wtfdecktoggle'), scale = 0.5, colour = G.C.UI.TEXT_LIGHT }},
}},
}},
{n = G.UIT.R, config = {align = "cr", padding = 0}, nodes = {
{n = G.UIT.C, config = { align = "cl", padding = 0.2 }, nodes = {
UIBox_button({label = {localize('toga_showintroagain')}, button = "toga_showintroagain", minw = 4, minh = 0.7})
}},
{n = G.UIT.C, config = { align = "cl", padding = 0.2 }, nodes = {
UIBox_button({label = {localize('toga_reseteverything')}, button = "toga_resetdialogprompt", minw = 3.5, minh = 0.7})
}},
{n = G.UIT.C, config = { align = "cl", padding = 0.2 }, nodes = {
UIBox_button({label = {localize('toga_mancrash')}, button = "toga_mancrash", minw = 2.3, minh = 0.7})
}},
}},
{n = G.UIT.R, config = {align = "cr", padding = 0}, nodes = {
{n = G.UIT.C, config = { align = "cr", padding = 0.2 }, nodes = {
{n = G.UIT.T, config = { text = localize('toga_restartrequire'), scale = 0.4, colour = G.C.UI.TEXT_LIGHT }},
}},
}},
}}
end
togabalatro.logging_tab = function()
return {n = G.UIT.ROOT, config = {align = "cl", outline = 1, outline_colour = HEX('C3C3C3'), padding = 0.025, colour = G.C.UI.BACKGROUND_INACTIVE, minw = 7, minh = 2}, nodes = {
{n = G.UIT.R, config = {align = "cl", colour = HEX('000082')}, nodes = {
{n = G.UIT.C, config = { align = "cl", padding = 0.05 }, nodes = {
{n = G.UIT.O, config = { w = 0.75, h = 0.75, object = Sprite(36, 36, 36, 36, G.ASSET_ATLAS['toga_TOGAMoreIcons'], { x = 2, y = 0 }) } },
}},
{n = G.UIT.C, config = { align = "cl", padding = 0 }, nodes = {
{n = G.UIT.T, config = { text = localize('toga_logtab'), scale = 0.5, colour = G.C.UI.TEXT_LIGHT }},
}},
}},
{n = G.UIT.R, config = {align = "cl", padding = 0 }, nodes = {
{n = G.UIT.C, config = { align = "cl", padding = -0.25 }, nodes = {
create_toggle{ col = true, label = "", scale = 0.85, w = 0.15, shadow = true, ref_table = togabalatro.config, ref_value = "DoMoreLogging" },
}},
{n = G.UIT.C, config = { align = "cl", padding = 0.2 }, nodes = {
{n = G.UIT.T, config = { text = localize('toga_verboselog'), scale = 0.5, colour = G.C.UI.TEXT_LIGHT }},
}},
}},
{n = G.UIT.R, config = {align = "cl", padding = 0 }, nodes = {
{n = G.UIT.C, config = { align = "cl", padding = -0.25 }, nodes = {
create_toggle{ col = true, label = "", scale = 0.85, w = 0.15, shadow = true, ref_table = togabalatro.config, ref_value = "DoEvenMoreLogging" },
}},
{n = G.UIT.C, config = { align = "cl", padding = 0.2 }, nodes = {
{n = G.UIT.T, config = { text = localize('toga_extraverboselog'), scale = 0.5, colour = G.C.UI.TEXT_LIGHT }},
}},
}},
{n = G.UIT.R, config = {align = "cm", colour = HEX('7A2D29')}, nodes = {
{n = G.UIT.C, config = { align = "cm", padding = 0}, nodes = {
{n = G.UIT.O, config = { w = 0.66, h = 0.66, object = Sprite(36, 36, 36, 36, G.ASSET_ATLAS['toga_TOGAMoreIcons'], { x = 1, y = 0 }) } },
}},
{n = G.UIT.C, config = { align = "cm", padding = 0.05 }, nodes = {
{n = G.UIT.T, config = { text = localize('toga_extraverboselogwarn'), scale = 0.35, colour = G.C.UI.TEXT_LIGHT }},
}},
}},
}}
end
togabalatro.startupsfx_tab = function()
return {n = G.UIT.ROOT, config = {align = "cl", outline = 1, outline_colour = HEX('C3C3C3'), padding = 0.025, colour = G.C.UI.BACKGROUND_INACTIVE, minw = 7, minh = 2}, nodes = {
{n = G.UIT.R, config = {align = "cl", colour = HEX('000082')}, nodes = {
{n = G.UIT.C, config = { align = "cl", padding = 0.05 }, nodes = {
{n = G.UIT.O, config = { w = 0.75, h = 0.75, object = Sprite(36, 36, 36, 36, G.ASSET_ATLAS['toga_TOGAMoreIcons'], { x = 3, y = 0 }) } },
}},
{n = G.UIT.C, config = { align = "cl", padding = 0 }, nodes = {
{n = G.UIT.T, config = { text = localize('toga_startsfxtab'), scale = 0.5, colour = G.C.UI.TEXT_LIGHT }},
}},
}},
not togabalatro.checksiiva() and {n = G.UIT.R, config = {align = "cl", padding = 0}, nodes = {
{n = G.UIT.C, config = { align = "cl", padding = -0.25 }, nodes = {
create_toggle{ col = true, label = "", scale = 0.85, w = 0.15, shadow = true, ref_table = togabalatro.config, ref_value = "UseCustomMMMusic" },
}},
{n = G.UIT.C, config = { align = "cl", padding = 0.2 }, nodes = {
{n = G.UIT.T, config = { text = localize('toga_mainmenumusicswap'), scale = 0.5, colour = G.C.UI.TEXT_LIGHT }},
}},
}} or nil,
not togabalatro.checksiiva() and {n = G.UIT.R, config = {align = "cl", padding = 0}, nodes = {
{n = G.UIT.C, config = { align = "cl", padding = -0.25 }, nodes = {
create_toggle{ col = true, label = "", scale = 0.85, w = 0.15, shadow = true, ref_table = togabalatro.config, ref_value = "UseCustomModTabMusic" },
}},
{n = G.UIT.C, config = { align = "cl", padding = 0.2 }, nodes = {
{n = G.UIT.T, config = { text = localize('toga_modtabmusicswap'), scale = 0.5, colour = G.C.UI.TEXT_LIGHT }},
}},
}} or nil,
not togabalatro.checksiiva() and {n = G.UIT.R, config = {align = "cl", padding = 0}, nodes = {
{n = G.UIT.C, config = { align = "cl", padding = -0.25 }, nodes = {
create_toggle{ col = true, label = "", scale = 0.85, w = 0.15, shadow = true, ref_table = togabalatro.config, ref_value = "BoosterPackMusic" },
}},
{n = G.UIT.C, config = { align = "cl", padding = 0.2 }, nodes = {
{n = G.UIT.T, config = { text = localize('toga_musicpacks'), scale = 0.5, colour = G.C.UI.TEXT_LIGHT }},
}},
}} or nil,
{n = G.UIT.R, config = {align = "cl", padding = 0}, nodes = {
{n = G.UIT.C, config = { align = "cl", padding = -0.25 }, nodes = {
create_toggle{ col = true, label = "", scale = 0.85, w = 0.15, shadow = true, ref_table = togabalatro.config.StartUpSFX, ref_value = "UseSelected" },
}},
{n = G.UIT.C, config = { align = "cl", padding = 0.2 }, nodes = {
{n = G.UIT.T, config = { text = localize('toga_startupsfxuse'), scale = 0.5, colour = G.C.UI.TEXT_LIGHT, tooltip = { title = localize('toga_description'), text = {localize('toga_desc_startupsfxsel1'), localize('toga_desc_startupsfxsel2'), localize('toga_desc_startupsfxsel3')} } }},
}},
{n = G.UIT.C, config = { align = "cl", padding = -0.2 }, nodes = {
create_option_cycle({w = 3.5, colour = HEX('808080'), scale = 0.8, options = togabalatro.startupsfx, opt_callback = 'togabalatro_startupsfx', current_option = togabalatro.config.StartUpSFX and togabalatro.config.StartUpSFX.Selected or 1}),
}},
{n = G.UIT.C, config = { align = "cl", padding = 0.2 }, nodes = {
UIBox_button({label = {localize('toga_startupsfxtest')}, button = "togabalatro_playsfx", minw = 1.3, minh = 0.7})
}},
}},
{n = G.UIT.R, config = {align = "cl", padding = 0}, nodes = {
{n = G.UIT.C, config = { align = "cl", padding = -0.25 }, nodes = {
create_toggle{ col = true, label = "", scale = 0.85, w = 0.15, shadow = true, ref_table = togabalatro.config, ref_value = "DoCrashSFX" },
}},
{n = G.UIT.C, config = { align = "cl", padding = 0.2 }, nodes = {
{n = G.UIT.T, config = { text = localize('toga_crashsfxuse'), scale = 0.5, colour = G.C.UI.TEXT_LIGHT }},
}},
}},
{n = G.UIT.R, config = {align = "cl", padding = 0}, nodes = {
{n = G.UIT.C, config = { align = "cl", padding = -0.25 }, nodes = {
create_toggle{ col = true, label = "", scale = 0.85, w = 0.15, shadow = true, ref_table = togabalatro.config, ref_value = "AchievementSFX" },
}},
{n = G.UIT.C, config = { align = "cl", padding = 0.2 }, nodes = {
{n = G.UIT.T, config = { text = localize('toga_achievementsfxuse'), scale = 0.5, colour = G.C.UI.TEXT_LIGHT }},
}},
}},
{n = G.UIT.R, config = {align = "cl", padding = 0}, nodes = {
{n = G.UIT.C, config = { align = "cl", padding = -0.25 }, nodes = {
create_toggle{ col = true, label = "", scale = 0.85, w = 0.15, shadow = true, ref_table = togabalatro.config, ref_value = "WindowSFXUse" },
}},
{n = G.UIT.C, config = { align = "cl", padding = 0.2 }, nodes = {
{n = G.UIT.T, config = { text = localize('toga_windowsfxuse'), scale = 0.5, colour = G.C.UI.TEXT_LIGHT, tooltip = { title = localize('toga_description'), text = {localize('toga_desc_windowsfx1'), localize('toga_desc_windowsfx2')} } }},
}},
{n = G.UIT.C, config = { align = "cl", padding = -0.2 }, nodes = {
create_option_cycle({w = 3.5, colour = HEX('808080'), w = 4.5, scale = 0.8, options = togabalatro.plussfxthemeregistry, opt_callback = 'togabalatro_themeselect', current_option = togabalatro.getcurtheme() or 1}),
}},
}},
{n = G.UIT.R, config = {align = "cm", padding = 0}, nodes = {
{n = G.UIT.C, config = { align = "cm", padding = 0 }, nodes = {
{n = G.UIT.T, config = { text = localize('toga_sfxswaptext'), scale = 0.5, colour = G.C.UI.TEXT_LIGHT }},
}},
{n = G.UIT.C, config = { align = "cm", padding = 0 }, nodes = {
create_option_cycle({w = 2.2, colour = HEX('808080'), scale = 0.8, options = {localize('toga_sfxswapnone'), localize('toga_sfxswapdefault'), localize('toga_sfxswapall')}, opt_callback = 'togabalatro_sfxswapcfg', current_option = togabalatro.config.SFXSwapLevel or 2}),
}},
}},
}}
end
togabalatro.getitemsforoptions = function()
local items, list = {}, {}
for i, v in ipairs(list) do
if G.P_CENTERS[v] and not G.P_CENTERS[v].no_collection then
local gencard = Card(G.CARD_W, G.CARD_H, G.CARD_W, G.CARD_H, nil, G.P_CENTERS[v], { bypass_discovery_center = true, bypass_discovery_ui = true })
gencard.no_ui = true
gencard.states.drag.can = false
items[#items+1] = gencard
end
end
return items, #list or 0
end
togabalatro.itemoptions_tab = function()
local cards, camount = togabalatro.getitemsforoptions() or {}
return {n = G.UIT.ROOT, config = {align = "cl", outline = 1, outline_colour = HEX('C3C3C3'), padding = 0.025, colour = G.C.UI.BACKGROUND_INACTIVE, minw = 6, minh = 2}, nodes = {
{n = G.UIT.R, config = {align = "cl", colour = HEX('000082'), minw = 8}, nodes = {
{n = G.UIT.C, config = { align = "cl", padding = 0.05 }, nodes = {
{n = G.UIT.O, config = { w = 0.75, h = 0.75, object = Sprite(36, 36, 36, 36, G.ASSET_ATLAS['toga_TOGAMoreIcons'], { x = 4, y = 0 }) } },
}},
{n = G.UIT.C, config = { align = "cl", padding = 0 }, nodes = {
{n = G.UIT.T, config = { text = localize('toga_itemoptionstab'), scale = 0.5, colour = G.C.UI.TEXT_LIGHT }},
}},
}},
(cards and #cards > 0 and {n = G.UIT.R, config = {align = "cm", padding = -0.2}, nodes = {
{n = G.UIT.C, config = { align = "cm", padding = 0 }, nodes = {
togabalatro.cagen(nil, nil, {cards = cards, w = #cards}),
}},
}} or nil),
(cards and #cards > 0 and {n = G.UIT.R, config = {align = "cm", padding = 0}, nodes = {
{n = G.UIT.C, config = { align = "cl", padding = -0.25 }, nodes = {
create_toggle{ col = true, label = "", scale = 0.85, w = 0.15, shadow = true, ref_table = togabalatro.config, ref_value = "UseNerfed" },
}},
{n = G.UIT.C, config = { align = "cl", padding = 0.2 }, nodes = {
{n = G.UIT.T, config = { text = localize('toga_usenerfedver'), scale = 0.5, colour = G.C.UI.TEXT_LIGHT, tooltip = { title = localize('toga_description'), text = {localize('toga_desc_nerfver')} } }},
}},
}} or nil),
not togabalatro.checksiiva() and {n = G.UIT.R, config = {align = "cl", padding = 0}, nodes = {
{n = G.UIT.C, config = { align = "cl", padding = -0.25 }, nodes = {
create_toggle{ col = true, label = "", scale = 0.85, w = 0.15, shadow = true, ref_table = togabalatro.config, ref_value = "SpecialDeckMusic" },
}},
{n = G.UIT.C, config = { align = "cl", padding = 0.2 }, nodes = {
{n = G.UIT.T, config = { text = localize('toga_specialdecktunes'), scale = 0.5, colour = G.C.UI.TEXT_LIGHT, tooltip = { title = localize('toga_description'), text = {localize('toga_desc_kartingdeckextras1'), localize('toga_desc_kartingdeckextras2')} } }},
}},
}} or nil,
{n = G.UIT.R, config = {align = "cm", padding = 0}, nodes = {
{n = G.UIT.C, config = { align = "cm", padding = 0 }, nodes = {
{n = G.UIT.T, config = { text = localize('toga_jokeactive'), scale = 0.5, colour = G.C.UI.TEXT_LIGHT, tooltip = { title = localize('toga_description'), text = {localize('toga_desc_jokeitems')} } }},
}},
{n = G.UIT.C, config = { align = "cm", padding = 0 }, nodes = {
create_option_cycle({w = 1.8, colour = HEX('808080'), scale = 0.85, options = {localize('toga_itemon'), localize('toga_itemoff')}, opt_callback = 'togabalatro_jokeitems', current_option = togabalatro.config.JokeJokersActive and 1 or 2}),
}},
}},
{n = G.UIT.R, config = {align = "cm", padding = 0}, nodes = {
{n = G.UIT.C, config = { align = "cm", padding = 0 }, nodes = {
{n = G.UIT.T, config = { text = localize('toga_strongstate'), scale = 0.5, colour = G.C.UI.TEXT_LIGHT, tooltip = { title = localize('toga_description'), text = {localize('toga_desc_poweritems')} } }},
}},
{n = G.UIT.C, config = { align = "cm", padding = 0 }, nodes = {
create_option_cycle({w = 1.8, colour = HEX('808080'), scale = 0.85, options = {localize('toga_itemon'), localize('toga_itemoff')}, opt_callback = 'togabalatro_poweritems', current_option = togabalatro.config.ShowPower and 1 or 2}),
}},
}},
togabalatro.checkbmp() and {n = G.UIT.R, config = {align = "cl", padding = 0}, nodes = {
{n = G.UIT.C, config = { align = "cl", padding = -0.25 }, nodes = {
create_toggle{ col = true, label = "", scale = 0.85, w = 0.15, shadow = true, ref_table = togabalatro.config, ref_value = "BMPAllItems" },
}},
{n = G.UIT.C, config = { align = "cl", padding = 0.2 }, nodes = {
{n = G.UIT.T, config = { text = localize('toga_bmploadall'), scale = 0.5, colour = G.C.UI.TEXT_LIGHT }},
}},
}} or nil,
}}
end
togabalatro.tabs = { togabalatro.logging_tab, togabalatro.startupsfx_tab, togabalatro.itemoptions_tab }
togabalatro.extra_tabs = function()
return {
{ label = 'Item Options', tab_definition_function = togabalatro.tabs[3] },
{ label = 'Logging', tab_definition_function = togabalatro.tabs[1] },
{ label = 'Misc. Audio', tab_definition_function = togabalatro.tabs[2] },
}
end
togabalatro.ui_config = { colour = HEX('4f4f4f'), tab_button_colour = HEX('e77938'), back_colour = HEX('a8a8a8'), bg_colour = HEX('0080809f') }