Changeset 7779 for code/branches
- Timestamp:
- Dec 19, 2010, 7:37:18 PM (14 years ago)
- Location:
- code/branches/presentation/data/gui
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentation/data/gui/layouts/AudioMenu.layout
r6746 r7779 113 113 <Property Name="Text" >Theme changes might take 114 114 up to a minute.</Property> 115 <Property Name="TextColours" Value="FF 4444FF" />115 <Property Name="TextColours" Value="FFFFFFFF" /> 116 116 <Property Name="InheritsAlpha" Value="False" /> 117 117 <Property Name="HorzFormatting" Value="HorzCentred" /> -
code/branches/presentation/data/gui/layouts/CreditsMenu.layout
r7732 r7779 32 32 <Property Name="VertScrollPosition" Value="0" /> 33 33 <Window Type="MenuWidgets/StaticText" Name="orxonox/CreditsText" > 34 <Property Name="TextColours" Value="FF 4444FF" />34 <Property Name="TextColours" Value="FFFFFFFF" /> 35 35 <Property Name="InheritsAlpha" Value="False" /> 36 36 <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" /> … … 38 38 <Property Name="VertFormatting" Value="TopAligned" /> 39 39 <Property Name="UnifiedAreaRect" Value="{{0,0},{0,0},{1,0},{1,0}}" /> 40 <Property Name="Text">Orxonox version 0.0.3 40 <Property Name="Text">wird sowieso nicht gelesen 41 Orxonox version 0.0.3 41 42 42 43 Programming Language: C++ - lua - tcl … … 45 46 46 47 http://www.orxonox.net 47 n 48 n 49 n 50 n 51 n 52 n 53 n 54 n 55 n </Property> 48 </Property> 56 49 </Window> 57 50 </Window> -
code/branches/presentation/data/gui/layouts/GraphicsMenu.layout
r6746 r7779 15 15 <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" /> 16 16 <Property Name="VertFormatting" Value="TopAligned" /> 17 <Property Name="UnifiedAreaRect" Value="{{0.25,0},{0.2 875,0},{0.75,0},{0.6375,0}}" />17 <Property Name="UnifiedAreaRect" Value="{{0.25,0},{0.2,0},{0.75,0},{0.6375,0}}" /> 18 18 <Window Type="MenuWidgets/StaticText" Name="orxonox/Resolution" > 19 19 <Property Name="Text" Value="Resolution" /> … … 22 22 <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" /> 23 23 <Property Name="VertFormatting" Value="TopAligned" /> 24 <Property Name="UnifiedAreaRect" Value="{{0.05,0},{0.1 5,0},{0.475,0},{0.92,0}}" />24 <Property Name="UnifiedAreaRect" Value="{{0.05,0},{0.10,0},{0.475,0},{0.65,0}}" /> 25 25 <Window Type="MenuWidgets/Listbox" Name="orxonox/ResolutionListbox" > 26 26 <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" /> 27 <Property Name="UnifiedAreaRect" Value="{{0.05,0},{0. 15,0},{0.95,0},{0.95,0}}" />27 <Property Name="UnifiedAreaRect" Value="{{0.05,0},{0.2,0},{0.95,0},{0.95,0}}" /> 28 28 <Event Name="ItemSelectionChanged" Function="GraphicsMenu.GraphicsResolutionListbox_changed"/> 29 </Window> 30 </Window> 31 <Window Type="MenuWidgets/StaticText" Name="orxonox/Themes" > 32 <Property Name="Text" Value="Themes" /> 33 <Property Name="InheritsAlpha" Value="False" /> 34 <Property Name="HorzFormatting" Value="HorzCentred" /> 35 <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" /> 36 <Property Name="VertFormatting" Value="TopAligned" /> 37 <Property Name="UnifiedAreaRect" Value="{{0.525,0},{0.10,0},{0.95,0},{0.35,0}}" /> 38 <Window Type="MenuWidgets/Listbox" Name="orxonox/ThemeDropBox" > 39 <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" /> 40 <Property Name="UnifiedAreaRect" Value="{{0.05,0},{0.3,0},{0.95,0},{0.95,0}" /> 41 <Event Name="ItemSelectionChanged" Function="GraphicsMenu.ThemeDropBox_changed"/> 29 42 </Window> 30 43 </Window> … … 35 48 <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" /> 36 49 <Property Name="VertFormatting" Value="TopAligned" /> 37 <Property Name="UnifiedAreaRect" Value="{{0. 525,0},{0.15,0},{0.95,0},{0.35,0}}" />50 <Property Name="UnifiedAreaRect" Value="{{0.05,0},{0.70,0},{0.475,0},{0.85,0}}" /> 38 51 <Window Type="MenuWidgets/HorizontalScrollbar" Name="orxonox/BrightnessScrollbar" > 39 52 <Property Name="Disabled" Value="true" /> … … 53 66 <Property Name="Text" Value="Fullscreen" /> 54 67 <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" /> 55 <Property Name="UnifiedAreaRect" Value="{{0.65,0},{0. 4,0},{0.85,0},{0.475,0}}" />68 <Property Name="UnifiedAreaRect" Value="{{0.65,0},{0.35,0},{0.85,0},{0.425,0}}" /> 56 69 <Event Name="CheckStateChanged" Function="GraphicsMenu.GraphicsFullscreenCheckbox_clicked"/> 57 70 </Window> … … 61 74 settings require 62 75 a game restart.</Property> 63 <Property Name="TextColours" Value="FF 4444FF" />76 <Property Name="TextColours" Value="FFFFFFFF" /> 64 77 <Property Name="InheritsAlpha" Value="False" /> 65 78 <Property Name="HorzFormatting" Value="HorzCentred" /> 66 79 <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" /> 67 80 <Property Name="VertFormatting" Value="TopAligned" /> 68 <Property Name="UnifiedAreaRect" Value="{{0.525,0},{0. 525,0},{0.95,0},{0.92,0}}" />81 <Property Name="UnifiedAreaRect" Value="{{0.525,0},{0.425,0},{0.95,0},{0.85,0}}" /> 69 82 </Window> 70 83 </Window> -
code/branches/presentation/data/gui/scripts/GraphicsMenu.lua
r7689 r7779 4 4 5 5 P.buttonList = {} 6 P.schemeList = {"TaharezGreen", "Orxonox"} 6 7 7 8 function P.onShow() … … 97 98 } 98 99 P.buttonList[1] = item 100 101 local dropbox = winMgr:getWindow("orxonox/ThemeDropBox") 102 local scheme = orxonox.CommandExecutor:query("getConfig GUIManager guiScheme_") 103 for k,v in pairs(P.schemeList) do 104 local item = CEGUI.createListboxTextItem(P.schemeList[k]) 105 item:setSelectionBrushImage(menuImageSet, "MultiListSelectionBrush") 106 CEGUI.toListbox(dropbox):addItem(item) 107 if v == scheme then 108 dropbox:setItemSelectState(item, true) 109 end 110 end 111 112 end 113 114 function P.ThemeDropBox_changed(e) 115 local dropbox = winMgr:getWindow("orxonox/ThemeDropBox") 116 local listbox = CEGUI.toListbox(dropbox) 117 local choice = listbox:getFirstSelectedItem() 118 local index = 0 119 if choice ~= nil then 120 index = listbox:getItemIndex(choice) 121 end 122 orxonox.CommandExecutor:execute("config GUIManager guiScheme_ " .. P.schemeList[index+1]) 99 123 end 100 124
Note: See TracChangeset
for help on using the changeset viewer.