Changeset 8325 for code/branches/kicklib2
- Timestamp:
- Apr 25, 2011, 10:09:04 AM (14 years ago)
- Location:
- code/branches/kicklib2
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/kicklib2/data/gui/scripts/SettingsMenu.lua
r8079 r8325 35 35 end 36 36 37 function P.onShow() 38 local window = winMgr:getWindow("orxonox/SettingsMenu/AudioButton") 39 if not orxonox.SoundManager:exists() then 40 window:setProperty("Disabled", "true") 41 else 42 window:setProperty("Disabled", "false") 43 end 44 end 45 37 46 function P.SettingsGameplayButton_clicked(e) 38 47 showMenuSheet("GameplayMenu", true) -
code/branches/kicklib2/src/orxonox/sound/SoundManager.h
r7858 r8325 72 72 // tolua_begin 73 73 static SoundManager& getInstance() { return Singleton<SoundManager>::getInstance(); } 74 static bool exists() { return Singleton<SoundManager>::exists(); } 74 75 75 76 std::string getDeviceName(unsigned int index) const
Note: See TracChangeset
for help on using the changeset viewer.