Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Mar 7, 2011, 9:57:13 AM (13 years ago)
Author:
dafrick
Message:

Developer's mode. Is a ConfigValue, by default on except in release mode. If on it should help the developer, if off, it should obscure things we don't want the user to have to deal with.
So far it ticks the showAll button in the Singleplayer and Host menu, if on. It also sets the start countdown to 0 if on.
If you have some more ideas on how to make life easier for both developers and users, feel free to implement it yourself ot mention it to me.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/usability/data/gui/scripts/HostMenu.lua

    r7928 r8040  
    2828
    2929function P.onShow()
     30    if P.showAll ~= orxonox.GUIManager:inDevMode() then
     31        local window = winMgr:getWindow("orxonox/SingleplayerShowAllCheckbox")
     32        local button = tolua.cast(window,"CEGUI::Checkbox")
     33        P.showAll = not P.showAll
     34        button:setSelected(P.showAll)
     35        P.createLevelList()
     36    end
     37end
     38
     39function P.onShow()
     40    if P.showAll ~= orxonox.GUIManager:inDevMode() then
     41        local window = winMgr:getWindow("orxonox/SingleplayerShowAllCheckbox")
     42        local button = tolua.cast(window,"CEGUI::Checkbox")
     43        P.showAll = not P.showAll
     44        button:setSelected(P.showAll)
     45    end
     46
    3047    if P.multiplayerMode == "startServer" then
    3148        local window = winMgr:getWindow("orxonox/HostMenuHostButton")
Note: See TracChangeset for help on using the changeset viewer.