Changeset 7767
- Timestamp:
- Dec 15, 2010, 5:45:16 PM (14 years ago)
- Location:
- code/branches/ois_update
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/ois_update/data/gui/scripts/AudioMenu.lua
r6746 r7767 32 32 table.insert(themeList, "Default") 33 33 table.insert(themeList, "Drum n' Bass") 34 table.insert(themeList, "8-Bit Style") 35 table.insert(themeList, "Corny Jazz") 34 36 for k,v in pairs(themeList) do 35 37 item = CEGUI.createListboxTextItem(v) … … 39 41 if orxonox.getConfig("MoodManager", "mood_") == "dnb" then 40 42 listboxwindow:setItemSelectState(1,true) 43 elseif orxonox.getConfig("MoodManager", "mood_") == "eightbit" then 44 listboxwindow:setItemSelectState(2,true) 45 elseif orxonox.getConfig("MoodManager", "mood_") == "jazzy" then 46 listboxwindow:setItemSelectState(3,true) 41 47 else 42 48 listboxwindow:setItemSelectState(0,true) … … 163 169 if listboxwindow:isItemSelected(1) then 164 170 orxonox.config("MoodManager", "mood_", "dnb") 171 elseif listboxwindow:isItemSelected(2) then 172 orxonox.config("MoodManager", "mood_", "eightbit") 173 elseif listboxwindow:isItemSelected(3) then 174 orxonox.config("MoodManager", "mood_", "jazzy") 165 175 else 166 176 orxonox.config("MoodManager", "mood_", "default") -
code/branches/ois_update/src/external/ois/mac/MacKeyboard.cpp
r7691 r7767 199 199 char macChar; 200 200 201 // @TODO clean this up202 201 if (mTextMode == Unicode) 203 202 { 204 203 //get string size 205 204 UInt32 stringsize; 206 //status = GetEventParameter( theEvent, 'kuni', typeUnicodeText, NULL, 0, &stringsize, NULL);207 //status = GetEventParameter( theEvent, 'kuni', typeUnicodeText, NULL, sizeof(UniChar)*10, NULL, &text );208 205 status = GetEventParameter( theEvent, 'kuni', typeUnicodeText, NULL, sizeof(UniChar) * 10, &stringsize, &text ); 209 std::cout << "OIS: MacKeyboard::_keyDownCallback(): String length: " << stringsize << std::endl;210 211 //wstring unitext;212 //for (int i=0;i<10;i++) unitext += (wchar_t)text[i];213 //wcout << "Unicode out: " << unitext << endl;214 206 215 207 if(stringsize > 0) -
code/branches/ois_update/src/libraries/core/GUIManager.cc
r7719 r7767 345 345 void GUIManager::buttonPressed(MouseButtonCode::ByEnum id) 346 346 { 347 //guiSystem_->injectMouseButtonDown(convertButton(id)); 347 348 this->protectedCall(boost::bind(&CEGUI::System::injectMouseButtonDown, _1, convertButton(id))); 348 349 } -
code/branches/ois_update/src/orxonox/MoodManager.cc
r7284 r7767 50 50 51 51 // Checking for the existence of the folder for the default mood 52 const std::string& path = "ambient/" + MoodManager::defaultMood_ + "/.";53 if (!Resource::exists(path ))52 const std::string& patha = "ambient/" + MoodManager::defaultMood_ + "/."; 53 if (!Resource::exists(patha)) 54 54 { 55 55 // TODO: Non-fatal error handling (non-critical resource missing) 56 56 COUT(2) << "Mood Warning: Folder for default mood (" << MoodManager::defaultMood_ << ") does not exist!" << std::endl; 57 57 } 58 59 // @TODO 60 // Creating a vector of the available moods to enable easy mood selection by Lua/CEGUI 58 61 } 59 62 -
code/branches/ois_update/src/orxonox/sound/AmbientSound.cc
r6417 r7767 48 48 49 49 // Ambient sounds always fade in 50 this->setVolume(0 );50 this->setVolume(0.0f); 51 51 this->registerVariables(); 52 52 } -
code/branches/ois_update/src/orxonox/sound/SoundManager.cc
r7701 r7767 83 83 SetConfigValue(bDisableSound_, false); 84 84 if (bDisableSound_) 85 ThrowException(InitialisationAborted, "Sound: Not loading at all"); 86 85 ThrowException(InitialisationAborted, "Sound: Not loading at all"); 87 86 if (!alutInitWithoutContext(NULL, NULL)) 88 87 ThrowException(InitialisationFailed, "Sound Error: ALUT initialisation failed: " << alutGetErrorString(alutGetError())); … … 132 131 GameMode::setPlaysSound(true); 133 132 Loki::ScopeGuard resetPlaysSoundGuard = Loki::MakeGuard(&GameMode::setPlaysSound, false); 134 133 135 134 // Get some information about the sound 136 135 if (const char* version = alGetString(AL_VERSION)) 137 COUT(4) << "Sound: --- OpenAL Version: " << version << std::endl; 136 COUT(4) << "Sound: --- OpenAL Version: " << version << std::endl; 138 137 if (const char* vendor = alGetString(AL_VENDOR)) 139 138 COUT(4) << "Sound: --- OpenAL Vendor : " << vendor << std::endl;
Note: See TracChangeset
for help on using the changeset viewer.