-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsb_settings.lua
More file actions
37 lines (30 loc) · 838 Bytes
/
sb_settings.lua
File metadata and controls
37 lines (30 loc) · 838 Bytes
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
local UIWidgets = {
"selection_display", "resource-ui"
}
local SBHiddenWidgets = {
"Chili Selections & CursorTip"
}
return {
startStop = {
x = "48.5%",
y = 52,
},
OnStopEditingUnsynced = function()
for _, widgetName in ipairs(UIWidgets) do
widgetHandler:EnableWidget(widgetName)
end
for _, widgetName in ipairs(SBHiddenWidgets) do
widgetHandler:DisableWidget(widgetName)
end
end,
OnStartEditingUnsynced = function()
for _, widgetName in ipairs(UIWidgets) do
widgetHandler:DisableWidget(widgetName)
end
for _, widgetName in ipairs(SBHiddenWidgets) do
widgetHandler:EnableWidget(widgetName)
end
Spring.SendCommands("tooltip 0")
gl.SlaveMiniMap(true)
end,
}