local team = Spring.GetMyTeamID()function widget:GetInfo() return { name = "ShowAllCommands", desc = "Acts like CTRL-A SHIFT all the time", author = "tombom", date = "Jan 8, 2007", license = "GNU GPL, v2 or later", layer = 0, enabled = false -- loaded by default? }endfunction widget:DrawScreen() local units = Spring.GetTeamUnits(team) for i, v in pairs(units) do if (i ~= nil) then Spring.DrawUnitCommands(v) end endendfunction widget:TextCommand(command) if (string.find(command, 'team ') == 1) then team = tonumber(string.sub(command, 5)) endend