Here's a simple widget to disable all the apparent default UI elements.
Code: Select all
function widget:GetInfo()
return {
name = "Clean slate",
desc = "Get rid of default UI",
author = "Funk",
date = "Feb, 2015",
license = "Public Domain",
layer = 0,
enabled = true,
}
end
function widget:Initialize()
-- get rid of engine UI
Spring.SendCommands("resbar 0", "tooltip 0","fps 0","console 0","info 0")
-- leaves rendering duty to widget (we won't)
gl.SlaveMiniMap(true)
-- a hitbox remains for the minimap, unless you do this
gl.ConfigMiniMap(0,0,0,0)
end
-- sets status to ready; avoiding any pre-game UI
function widget:GameSetup()
return true, true
end