Changeset 9269 for code/branches/presentation2012merge/data/gui
- Timestamp:
- Jun 3, 2012, 4:33:13 PM (13 years ago)
- Location:
- code/branches/presentation2012merge
- Files:
-
- 3 edited
- 2 copied
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentation2012merge
- Property svn:ignore
-
old new 1 .project 1 2 build 2 3 codeblocks 4 dependencies 3 5 vs 4 dependencies
-
- Property svn:mergeinfo changed
- Property svn:ignore
-
code/branches/presentation2012merge/data/gui/scripts/AudioMenu.lua
r8351 r9269 34 34 table.insert(themeList, "8-Bit Style") 35 35 table.insert(themeList, "Corny Jazz") 36 table.insert(themeList, "Metal") 36 37 for k,v in pairs(themeList) do 37 38 item = CEGUI.createListboxTextItem(v) … … 45 46 elseif orxonox.getConfig("MoodManager", "mood_") == "jazzy" then 46 47 listboxwindow:setItemSelectState(3,true) 48 elseif orxonox.getConfig("MoodManager", "mood_") == "metal" then 49 listboxwindow:setItemSelectState(4,true) 47 50 else 48 51 listboxwindow:setItemSelectState(0,true) … … 178 181 elseif listboxwindow:isItemSelected(3) then 179 182 orxonox.config("MoodManager", "mood_", "jazzy") 183 elseif listboxwindow:isItemSelected(4) then 184 orxonox.config("MoodManager", "mood_", "metal") 180 185 else 181 186 orxonox.config("MoodManager", "mood_", "default") -
code/branches/presentation2012merge/data/gui/scripts/SingleplayerMenu.lua
r9251 r9269 2 2 3 3 local P = createMenuSheet("SingleplayerMenu") 4 4 P.loadAlong = {"ShipSelectionMenu"} 5 5 P.levelList = {} 6 6 P.activeTabIndexes = {} 7 7 P.scrollbarWidth = 13 8 selectedlevel = {} -- level for ship selection 8 9 9 10 function P.onLoad() … … 46 47 while index < size do 47 48 level = orxonox.LevelManager:getInstance():getAvailableLevelListItem(index) 48 if level ~= nil then 49 if (level ~= nil and level:getXMLFilename() ~= "_temp.oxw") then 50 --os.execute("echo " .. level:getXMLFilename() .." >> ~/outputorx") 49 51 local levelXMLFilename = level:getXMLFilename() 50 52 -- create an imageset for each screenshot … … 141 143 142 144 function P.SingleplayerStartButton_clicked(e) 143 local level = P.SingleplayerGetSelectedLevel() 144 if level ~= nil then 145 orxonox.execute("startGame " .. level:getXMLFilename()) 146 hideAllMenuSheets() 145 selectedlevel = P.SingleplayerGetSelectedLevel() 146 if selectedlevel ~= nil then 147 if selectedlevel:hasTag("shipselection") then 148 local shipSelectionMenu = showMenuSheet("ShipSelectionMenu", true) 149 shipSelectionMenu:update() 150 else 151 orxonox.execute("startGame " .. selectedlevel:getXMLFilename()) 152 hideAllMenuSheets() 153 end 147 154 end 148 155 end
Note: See TracChangeset
for help on using the changeset viewer.