Changeset 7647
- Timestamp:
- Nov 13, 2010, 11:30:06 PM (14 years ago)
- Location:
- code/branches/releasetodo/data
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/releasetodo/data/gui/layouts/MultiplayerMenu.layout
r7163 r7647 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.2875,0},{0.75,0},{0. 6375,0}}" />17 <Property Name="UnifiedAreaRect" Value="{{0.25,0},{0.2875,0},{0.75,0},{0.7,0}}" /> 18 18 <Window Type="MenuWidgets/Listbox" Name="orxonox/MultiplayerListbox" > 19 19 <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" /> … … 23 23 <Property Name="Text" Value="Join" /> 24 24 <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" /> 25 <Property Name="UnifiedAreaRect" Value="{{0.1,0},{0.8 5,0},{0.3,0},{0.95,0}}" />25 <Property Name="UnifiedAreaRect" Value="{{0.1,0},{0.81,0},{0.3,0},{0.89,0}}" /> 26 26 <Event Name="SelectStateChanged" Function="MultiplayerMenu.MultiplayerJoinButton_clicked"/> 27 27 </Window> … … 29 29 <Property Name="Text" Value="Host" /> 30 30 <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" /> 31 <Property Name="UnifiedAreaRect" Value="{{0.4,0},{0.8 5,0},{0.6,0},{0.95,0}}" />31 <Property Name="UnifiedAreaRect" Value="{{0.4,0},{0.81,0},{0.6,0},{0.89,0}}" /> 32 32 <Event Name="SelectStateChanged" Function="MultiplayerMenu.MultiplayerHostButton_clicked"/> 33 33 </Window> … … 35 35 <Property Name="Text" Value="Dedicated" /> 36 36 <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" /> 37 <Property Name="UnifiedAreaRect" Value="{{0.7,0},{0.8 5,0},{0.9,0},{0.95,0}}" />37 <Property Name="UnifiedAreaRect" Value="{{0.7,0},{0.81,0},{0.9,0},{0.89,0}}" /> 38 38 <Event Name="SelectStateChanged" Function="MultiplayerMenu.MultiplayerDedicatedButton_clicked"/> 39 </Window> 40 <Window Type="MenuWidgets/Checkbox" Name="orxonox/MultiplayerShowAllCheckbox" > 41 <Property Name="Text" Value="show all" /> 42 <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" /> 43 <Property Name="UnifiedAreaRect" Value="{{0.65,0},{0.89,0},{0.8,0},{0.99,0}}" /> 44 <Property Name="Disabled" Value="True" /> 45 <Event Name="CheckStateChanged" Function="MultiplayerMenu.MultiplayerShowAll_clicked"/> 39 46 </Window> 40 47 </Window> … … 42 49 <Property Name="Text" Value="Start" /> 43 50 <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" /> 44 <Property Name="UnifiedAreaRect" Value="{{0.2875,0},{0. 6625,0},{0.4875,0},{0.7125,0}}" />51 <Property Name="UnifiedAreaRect" Value="{{0.2875,0},{0.725,0},{0.4875,0},{0.775,0}}" /> 45 52 <Event Name="Clicked" Function="MultiplayerMenu.MultiplayerStartButton_clicked"/> 46 53 </Window> … … 48 55 <Property Name="Text" Value="Back" /> 49 56 <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" /> 50 <Property Name="UnifiedAreaRect" Value="{{0.5125,0},{0. 6625,0},{0.7125,0},{0.7125,0}}" />57 <Property Name="UnifiedAreaRect" Value="{{0.5125,0},{0.725,0},{0.7125,0},{0.775,0}}" /> 51 58 <Event Name="Clicked" Function="MultiplayerMenu.MultiplayerBackButton_clicked"/> 52 59 </Window> -
code/branches/releasetodo/data/gui/scripts/MultiplayerMenu.lua
r7627 r7647 16 16 local button = tolua.cast(window,"CEGUI::RadioButton") 17 17 button:setSelected(true) 18 local checkbox = winMgr:getWindow("orxonox/MultiplayerShowAllCheckbox") 19 checkbox:setProperty("Disabled", "True") 18 20 P.showServerList() 19 21 end … … 22 24 local button = tolua.cast(window,"CEGUI::RadioButton") 23 25 button:setSelected(true) 26 local checkbox = winMgr:getWindow("orxonox/MultiplayerShowAllCheckbox") 27 checkbox:setProperty("Disabled", "False") 24 28 P.showLevelList() 25 29 end … … 28 32 local button = tolua.cast(window,"CEGUI::RadioButton") 29 33 button:setSelected(true) 34 local checkbox = winMgr:getWindow("orxonox/MultiplayerShowAllCheckbox") 35 checkbox:setProperty("Disabled", "True") 30 36 P.showLevelList() 31 37 end … … 34 40 function P.MultiplayerJoinButton_clicked(e) 35 41 P.multiplayerMode = "startClient" 42 local checkbox = winMgr:getWindow("orxonox/MultiplayerShowAllCheckbox") 43 checkbox:setProperty("Disabled", "True") 36 44 P.showServerList() 37 45 end … … 39 47 function P.MultiplayerHostButton_clicked(e) 40 48 P.multiplayerMode = "startServer" 49 local checkbox = winMgr:getWindow("orxonox/MultiplayerShowAllCheckbox") 50 checkbox:setProperty("Disabled", "False") 41 51 P.showLevelList() 42 52 end … … 44 54 function P.MultiplayerDedicatedButton_clicked(e) 45 55 P.multiplayerMode = "startDedicated" 56 local checkbox = winMgr:getWindow("orxonox/MultiplayerShowAllCheckbox") 57 checkbox:setProperty("Disabled", "True") 46 58 P.showLevelList() 59 end 60 61 function P.MultiplayerShowAll_clicked(e) 62 local checkbox = tolua.cast(winMgr:getWindow("orxonox/MultiplayerShowAllCheckbox"), "CEGUI::Checkbox") 63 local show = checkbox:isSelected() 64 if show ~= P.showAll then 65 P.showAll = show 66 P.createLevelList() 67 end 47 68 end 48 69 … … 95 116 index = index + 1 96 117 end 97 --TODO: Reintroduce sorting, if needed. 118 --TODO: Reintroduce sorting, if needed. At the moment it's sorted by filename. 98 119 --table.sort(levelList) 99 120 for k,v in pairs(P.levelList) do … … 105 126 end 106 127 P.itemList[k] = listbox:getListboxItemFromIndex(k-1) 107 --TODO: The description as tooltip would be nice.108 --local lItem = P.itemList[k]109 --lItem:setTooltipText(v:getDescription())110 128 orxonox.GUIManager:setTooltipTextHelper(P.itemList[k], v:getDescription()) 111 129 end -
code/branches/releasetodo/data/gui/scripts/SingleplayerMenu.lua
r7639 r7647 33 33 index = index + 1 34 34 end 35 --TODO: Reintroduce sorting, if needed. 35 --TODO: Reintroduce sorting, if needed. At the moment it's sorted by filename. 36 36 --table.sort(levelList) 37 37 for k,v in pairs(P.levelList) do … … 43 43 end 44 44 P.itemList[k] = listbox:getListboxItemFromIndex(k-1) 45 --TODO: The description as tooltip would be nice.46 --local lItem = tolua.cast("CEGUI::ListboxItem", P.itemList[k])47 --lItem:setTooltipText(v:getDescription())48 45 orxonox.GUIManager:setTooltipTextHelper(P.itemList[k], v:getDescription()) 49 46 end -
code/branches/releasetodo/data/levels/events.oxw
r7629 r7647 2 2 name = "Events showcase" 3 3 description = "Level to test and showcase events." 4 tags = "test, showcase , events"4 tags = "test, showcase" 5 5 /> 6 6
Note: See TracChangeset
for help on using the changeset viewer.