Changeset 8351 for code/trunk/data
- Timestamp:
- Apr 28, 2011, 7:15:14 AM (14 years ago)
- Location:
- code/trunk/data
- Files:
-
- 1 deleted
- 8 edited
- 10 copied
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/data/CMakeLists.txt
r7163 r8351 59 59 DIRECTORY ${EXTERNAL_DATA_DIRECTORY}/ 60 60 DESTINATION ${DATA_INSTALL_DIRECTORY} 61 REGEX "\\.svn$|_svn$| resources\\.oxr|AUTHORS|LICENSE" EXCLUDE61 REGEX "\\.svn$|_svn$|AUTHORS|LICENSE" EXCLUDE 62 62 ) 63 # Configure the install scripts (variables not available during installation)64 CONFIGURE_FILE(DataInstallScript.cmake ${CMAKE_CURRENT_BINARY_DIR}/DataInstallScript.cmake @ONLY)65 # Join both resources.oxr files66 INSTALL(SCRIPT ${CMAKE_CURRENT_BINARY_DIR}/DataInstallScript.cmake) -
code/trunk/data/gui/scripts/AudioMenu.lua
r8079 r8351 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) … … 168 174 if listboxwindow:isItemSelected(1) then 169 175 orxonox.config("MoodManager", "mood_", "dnb") 176 elseif listboxwindow:isItemSelected(2) then 177 orxonox.config("MoodManager", "mood_", "eightbit") 178 elseif listboxwindow:isItemSelected(3) then 179 orxonox.config("MoodManager", "mood_", "jazzy") 170 180 else 171 181 orxonox.config("MoodManager", "mood_", "default") -
code/trunk/data/gui/scripts/GUITools.lua
r8079 r8351 31 31 32 32 local lookAndFeel = CEGUI.WidgetLookManager:getSingleton():getWidgetLook(window:getLookNFeel()) 33 local height = window:getFont():getLineSpacing() + window:getUnclipped PixelRect():getHeight() - lookAndFeel:getNamedArea("WithFrameTextRenderArea"):getArea():getPixelRect(window):getHeight()34 local width = window:getFont():getTextExtent(window:getText()) + window:getUnclipped PixelRect():getWidth() - lookAndFeel:getNamedArea("WithFrameTextRenderArea"):getArea():getPixelRect(window):getWidth()33 local height = window:getFont():getLineSpacing() + window:getUnclippedOuterRect():getHeight() - lookAndFeel:getNamedArea("WithFrameTextRenderArea"):getArea():getPixelRect(window):getHeight() 34 local width = window:getFont():getTextExtent(window:getText()) + window:getUnclippedOuterRect():getWidth() - lookAndFeel:getNamedArea("WithFrameTextRenderArea"):getArea():getPixelRect(window):getWidth() 35 35 36 36 table.insert(size, height) … … 40 40 41 41 function getScrollingStepSize(window) 42 local height = window:getUnclipped PixelRect():getHeight()43 local maxHeight = CEGUI.System:getSingleton():getGUISheet():getUnclipped PixelRect():getHeight()42 local height = window:getUnclippedOuterRect():getHeight() 43 local maxHeight = CEGUI.System:getSingleton():getGUISheet():getUnclippedOuterRect():getHeight() 44 44 local ratio = height/maxHeight 45 45 return 0.008*ratio/0.3204 … … 47 47 48 48 function getStaticTextWindowHeight(window) 49 -- Get the area the text is formatted and drawn into. 49 50 local lookAndFeel = CEGUI.WidgetLookManager:getSingleton():getWidgetLook(window:getLookNFeel()) 50 51 local formattedArea = lookAndFeel:getNamedArea("WithFrameTextRenderArea"):getArea():getPixelRect(window) 51 local frameHeight = window:getUnclippedPixelRect():getHeight() - formattedArea:getHeight() 52 local lines = window:getFont():getFormattedLineCount(window:getText(), formattedArea, CEGUI.WordWrapLeftAligned) 53 local height = lines * window:getFont():getLineSpacing() + frameHeight 52 -- Calculate the pixel height of the frame by subtracting the height of the area above from the total height of the window. 53 local frameHeight = window:getUnclippedOuterRect():getHeight() - formattedArea:getHeight() 54 55 local height = 0 56 if ORXONOX_OLD_CEGUI then 57 local lines = window:getFont():getFormattedLineCount(window:getText(), formattedArea, CEGUI.WordWrapLeftAligned) 58 height = lines * window:getFont():getLineSpacing() + frameHeight 59 else 60 height = math.floor(CEGUI.PropertyHelper:stringToFloat(window:getProperty("VertExtent")) + frameHeight) + 1 61 end 54 62 return height 55 63 end -
code/trunk/data/gui/scripts/InitialiseGUI.lua
r7801 r8351 7 7 local scheme = orxonox.CommandExecutor:query("getConfig GUIManager guiScheme_") 8 8 -- Load all required skins 9 --schemeMgr: loadScheme("TaharezGreenLook.scheme")10 schemeMgr: loadScheme(scheme .. "Look.scheme")11 --schemeMgr: loadScheme("TaharezLook.scheme")12 --schemeMgr: loadScheme("WindowsLook.scheme")13 --schemeMgr: loadScheme("VanillaLook.scheme")14 --schemeMgr: loadScheme("SleekSpaceLook.scheme")9 --schemeMgr:create("TaharezGreenLook.scheme") 10 schemeMgr:create(scheme .. "Look.scheme") 11 --schemeMgr:create("TaharezLook.scheme") 12 --schemeMgr:create("WindowsLook.scheme") 13 --schemeMgr:create("VanillaLook.scheme") 14 --schemeMgr:create("SleekSpaceLook.scheme") 15 15 16 16 -- Connect skin specific window types with our own window types 17 17 -- By loading a different file (if there is) you can change the skin 18 18 -- of the menus or the HUD independently 19 --schemeMgr: loadScheme("TaharezGreenMenuWidgets.scheme")19 --schemeMgr:create("TaharezGreenMenuWidgets.scheme") 20 20 --menuImageSet = "TaharezGreenLook" 21 --schemeMgr: loadScheme("TaharezGreenHUDWidgets.scheme")21 --schemeMgr:create("TaharezGreenHUDWidgets.scheme") 22 22 --hudImageSet = "TaharezGreenLook" 23 schemeMgr: loadScheme(scheme .. "MenuWidgets.scheme")23 schemeMgr:create(scheme .. "MenuWidgets.scheme") 24 24 menuImageSet = scheme .. "Look" 25 schemeMgr: loadScheme(scheme .. "HUDWidgets.scheme")25 schemeMgr:create(scheme .. "HUDWidgets.scheme") 26 26 hudImageSet = scheme .. "Look" 27 27 28 28 -- Just a remaining test hack 29 schemeMgr: loadScheme("OrxonoxGUIScheme.scheme")29 schemeMgr:create("OrxonoxGUIScheme.scheme") 30 30 31 31 local system = CEGUI.System:getSingleton() -
code/trunk/data/gui/scripts/NotificationLayer.lua
r8079 r8351 484 484 local lookAndFeel = CEGUI.WidgetLookManager:getSingleton():getWidgetLook(queue:getLookNFeel()) 485 485 local formattedArea = lookAndFeel:getNamedArea("ItemRenderingArea"):getArea():getPixelRect(queue) 486 local frameHeight = queue:getUnclipped PixelRect():getHeight() - formattedArea:getHeight()486 local frameHeight = queue:getUnclippedOuterRect():getHeight() - formattedArea:getHeight() 487 487 listbox:removeItem(item) 488 488 return frameHeight + singleItemHeight*size -
code/trunk/data/gui/scripts/SettingsMenu.lua
r8079 r8351 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/trunk/data/levels/lastTeamStandingII.oxw
- Property svn:eol-style set to native
-
code/trunk/data/overlays/lastTeamStandingHUD.oxo
- Property svn:eol-style set to native
Note: See TracChangeset
for help on using the changeset viewer.