Skip to content

Commit

Permalink
hide most of UI widgets; close Spring-SpringBoard/SpringBoard-Core#261
Browse files Browse the repository at this point in the history
  • Loading branch information
gajop committed Aug 11, 2017
1 parent 4a03eed commit f2ae0c0
Showing 1 changed file with 17 additions and 3 deletions.
20 changes: 17 additions & 3 deletions sb_settings.lua
Original file line number Diff line number Diff line change
@@ -1,13 +1,27 @@
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%",
y = 52,
bottom = 80,
},

OnStartUnsynced = function()
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,

OnStartSynced = function()
OnStartEditingSynced = function()
if GG.TechGrant then
for _, teamID in ipairs(Spring.GetTeamList()) do
GG.TechGrant("tech0", teamID)
Expand Down

0 comments on commit f2ae0c0

Please sign in to comment.