Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 23, 2009, 8:45:56 PM (15 years ago)
Author:
rgrieder
Message:

Mood changes should now be working and with immediate (but delayed because of loading) effect.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/presentation2/data/gui/scripts/AudioMenu.lua

    r6403 r6406  
    4545        item:setSelectionBrushImage("TaharezLook", "MultiListSelectionBrush")
    4646        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)
    4752    end
    4853end
     
    166171function P.AudioThemeListbox_changed(e)
    167172    if listboxwindow:isItemSelected(1) then
    168         orxonox.execute("setMood dnb")
     173        orxonox.config("MoodManager", "mood_", "dnb")
    169174    else
    170         orxonox.execute("setMood default")
     175        orxonox.config("MoodManager", "mood_", "default")
    171176    end
    172177end
Note: See TracChangeset for help on using the changeset viewer.