[Orxonox-commit 4542] r9214 - code/branches/sound2012/data/gui/scripts

lukasmue at orxonox.net lukasmue at orxonox.net
Fri May 18 16:14:05 CEST 2012


Author: lukasmue
Date: 2012-05-18 16:14:05 +0200 (Fri, 18 May 2012)
New Revision: 9214

Modified:
   code/branches/sound2012/data/gui/scripts/AudioMenu.lua
Log:
enabled Metal music theme

Modified: code/branches/sound2012/data/gui/scripts/AudioMenu.lua
===================================================================
--- code/branches/sound2012/data/gui/scripts/AudioMenu.lua	2012-05-18 14:07:37 UTC (rev 9213)
+++ code/branches/sound2012/data/gui/scripts/AudioMenu.lua	2012-05-18 14:14:05 UTC (rev 9214)
@@ -33,6 +33,7 @@
     table.insert(themeList, "Drum n' Bass")
     table.insert(themeList, "8-Bit Style")
     table.insert(themeList, "Corny Jazz")
+    table.insert(themeList, "Metal")
     for k,v in pairs(themeList) do
         item = CEGUI.createListboxTextItem(v)
         item:setSelectionBrushImage(menuImageSet, "MultiListSelectionBrush")
@@ -44,6 +45,8 @@
         listboxwindow:setItemSelectState(2,true)
     elseif orxonox.getConfig("MoodManager", "mood_") == "jazzy" then
         listboxwindow:setItemSelectState(3,true)
+    elseif orxonox.getConfig("MoodManager", "mood_") == "metal" then
+        listboxwindow:setItemSelectState(4,true)
     else
         listboxwindow:setItemSelectState(0,true)
     end
@@ -177,6 +180,8 @@
         orxonox.config("MoodManager", "mood_", "eightbit")
     elseif listboxwindow:isItemSelected(3) then
         orxonox.config("MoodManager", "mood_", "jazzy")
+    elseif listboxwindow:isItemSelected(4) then
+        orxonox.config("MoodManager", "mood_", "metal")
     else
         orxonox.config("MoodManager", "mood_", "default")
     end




More information about the Orxonox-commit mailing list