-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsb_settings.lua
34 lines (30 loc) · 999 Bytes
/
sb_settings.lua
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
local UIWidgets = {"Resource Bar Display", "AdvPlayersList", "Red Tooltip", "How to play info",
"Keybind/Mouse Info", "Music Player", "Options", "Commands info",
}
return {
startStop = {
x = "48.5%",
bottom = 80,
},
OnStopEditingUnsynced = function()
for _, widgetName in ipairs(UIWidgets) do
widgetHandler:EnableWidget(widgetName)
end
end,
OnStartEditingUnsynced = function()
for _, widgetName in ipairs(UIWidgets) do
widgetHandler:DisableWidget(widgetName)
end
Spring.SendCommands("tooltip 0")
end,
OnStartEditingSynced = function()
if GG.TechGrant then
for _, teamID in ipairs(Spring.GetTeamList()) do
GG.TechGrant("tech0", teamID)
GG.TechGrant("tech1", teamID)
GG.TechGrant("tech2", teamID)
GG.TechGrant("tech3", teamID)
end
end
end,
}