Changeset 6406 for code/branches/presentation2/data
- Timestamp:
- Dec 23, 2009, 8:45:56 PM (15 years ago)
- Location:
- code/branches/presentation2/data/gui
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentation2/data/gui/layouts/AudioMenu.layout
r6363 r6406 111 111 </Window> 112 112 <Window Type="TaharezLook/StaticText" Name="orxonox/AudioInfo" > 113 <Property Name="Text" >Theme changes require114 a game restart.</Property>113 <Property Name="Text" >Theme changes might take 114 up to a minute.</Property> 115 115 <Property Name="TextColours" Value="FF4444FF" /> 116 116 <Property Name="InheritsAlpha" Value="False" /> -
code/branches/presentation2/data/gui/scripts/AudioMenu.lua
r6403 r6406 45 45 item:setSelectionBrushImage("TaharezLook", "MultiListSelectionBrush") 46 46 CEGUI.toListbox(listboxwindow):addItem(item) 47 end 48 if orxonox.getConfig("MoodManager", "mood_") == "dnb" then 49 listboxwindow:setItemSelectState(1,true) 50 else 51 listboxwindow:setItemSelectState(0,true) 47 52 end 48 53 end … … 166 171 function P.AudioThemeListbox_changed(e) 167 172 if listboxwindow:isItemSelected(1) then 168 orxonox. execute("setMooddnb")173 orxonox.config("MoodManager", "mood_", "dnb") 169 174 else 170 orxonox. execute("setMooddefault")175 orxonox.config("MoodManager", "mood_", "default") 171 176 end 172 177 end
Note: See TracChangeset
for help on using the changeset viewer.