Changeset 9348 for code/trunk/data/gui/scripts
- Timestamp:
- Aug 30, 2012, 11:08:17 PM (12 years ago)
- Location:
- code/trunk
- Files:
-
- 5 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
code/trunk
- 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/trunk/data/gui/scripts/AudioMenu.lua
r8351 r9348 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/trunk/data/gui/scripts/PickupInventory.lua
r7504 r9348 108 108 109 109 function P.createPickupEntry(index, pickup) 110 local representation = orxonox.PickupManager:getInstance():get PickupRepresentation(pickup.pickup)110 local representation = orxonox.PickupManager:getInstance():getRepresentation(pickup.representationName) 111 111 112 112 local name = "orxonox/PickupInventory/Box/Pickup" .. index … … 176 176 for k,v in pairs(P.detailsWindows) do 177 177 if v ~= nil then 178 winMgr:destroyWindow(v)178 P.destroyDetailWindow(k) 179 179 end 180 180 end … … 193 193 function P.createDetailsWindow(pickupIndex) 194 194 local pickup = P.pickupsList[pickupIndex] 195 local representation = orxonox.PickupManager:getInstance():get PickupRepresentation(pickup.pickup)195 local representation = orxonox.PickupManager:getInstance():getRepresentation(pickup.representationName) 196 196 197 197 local index = P.getNewDetailNumber() … … 323 323 local detailNr = tonumber(match()) 324 324 325 P.destroyDetailWindow(detailNr) 326 end 327 328 function P.destroyDetailWindow(detailNr) 325 329 local window = P.detailsWindows[detailNr] 326 330 winMgr:destroyWindow(window) -
code/trunk/data/gui/scripts/SingleplayerConfigMenu.lua
- Property svn:eol-style set to native
-
code/trunk/data/gui/scripts/SingleplayerMenu.lua
r9251 r9348 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() 10 11 P.createLevelList() 11 12 12 13 -- create tabs with desired tab as argument (nil for all) 13 14 P.createFilterTab("Gametypes", "gametype") … … 18 19 P.createFilterTab("Tests", "test") 19 20 P.createFilterTab("Show All", nil) 20 21 21 22 -- update description and screenshot boxes 22 23 P.SingleplayerSelectionChanged() 23 24 24 25 --buttons are arranged in a 1x3 matrix 25 26 P:setButton(1, 1, { … … 46 47 while index < size do 47 48 level = orxonox.LevelManager:getInstance():getAvailableLevelListItem(index) 48 if level ~= nilthen49 if (level ~= nil and level:getXMLFilename() ~= "_temp.oxw") then 49 50 local levelXMLFilename = level:getXMLFilename() 50 51 -- create an imageset for each screenshot … … 141 142 142 143 function P.SingleplayerStartButton_clicked(e) 143 local level = P.SingleplayerGetSelectedLevel() 144 if level ~= nil then 145 orxonox.execute("startGame " .. level:getXMLFilename()) 146 hideAllMenuSheets() 144 selectedlevel = P.SingleplayerGetSelectedLevel() 145 if selectedlevel ~= nil then 146 if selectedlevel:hasTag("shipselection") then 147 local shipSelectionMenu = showMenuSheet("ShipSelectionMenu", true) 148 shipSelectionMenu:update() 149 else 150 orxonox.execute("startGame " .. selectedlevel:getXMLFilename()) 151 hideAllMenuSheets() 152 end 147 153 end 148 154 end
Note: See TracChangeset
for help on using the changeset viewer.