Changeset 8700 for code/branches/presentation/data/gui
- Timestamp:
- Jun 6, 2011, 8:15:38 AM (14 years ago)
- Location:
- code/branches/presentation/data/gui
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentation/data/gui/layouts/DockingDialog.layout
r8643 r8700 2 2 3 3 <GUILayout > 4 <Window Type="MenuWidgets/StaticImage" Name="orxonox/Docking Background" >4 <Window Type="MenuWidgets/StaticImage" Name="orxonox/Docking/Background" > 5 5 <Property Name="FrameEnabled" Value="False" /> 6 6 <Property Name="InheritsAlpha" Value="False" /> … … 8 8 <Property Name="UnifiedAreaRect" Value="{{0,0},{0,0},{1,0},{1,0}}" /> 9 9 <Property Name="BackgroundEnabled" Value="False" /> 10 <Window Type="MenuWidgets/StaticText" Name="orxonox/Docking Title" >10 <Window Type="MenuWidgets/StaticText" Name="orxonox/Docking/Title" > 11 11 <Property Name="Text" Value="Docking" /> 12 12 <Property Name="Alpha" Value="0.8" /> … … 16 16 <Property Name="VertFormatting" Value="TopAligned" /> 17 17 <Property Name="UnifiedAreaRect" Value="{{0.25,0},{0.2875,0},{0.75,0},{0.7,0}}" /> 18 <Window Type="MenuWidgets/Listbox" Name="orxonox/Docking Docks" >18 <Window Type="MenuWidgets/Listbox" Name="orxonox/Docking/Docks" > 19 19 <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" /> 20 20 <Property Name="UnifiedAreaRect" Value="{{0.05,0},{0.15,0},{0.95,0},{0.85,0}}" /> 21 21 </Window> 22 22 </Window> 23 <Window Type="MenuWidgets/Button" Name="orxonox/Docking DockButton" >23 <Window Type="MenuWidgets/Button" Name="orxonox/Docking/DockButton" > 24 24 <Property Name="Text" Value="Dock" /> 25 25 <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" /> … … 27 27 <Event Name="Clicked" Function="DockingDialog.dockButton_clicked"/> 28 28 </Window> 29 <Window Type="MenuWidgets/Button" Name="orxonox/Docking CancelButton" >29 <Window Type="MenuWidgets/Button" Name="orxonox/Docking/CancelButton" > 30 30 <Property Name="Text" Value="Cancel" /> 31 31 <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" /> -
code/branches/presentation/data/gui/scripts/DockingDialog.lua
r8643 r8700 9 9 --button are arranged in a 1x2 matrix 10 10 P:setButton(1, 1, { 11 ["button"] = winMgr:getWindow("orxonox/Docking DockButton"),11 ["button"] = winMgr:getWindow("orxonox/Docking/DockButton"), 12 12 ["callback"] = P.dockButton_clicked 13 13 }) 14 14 15 15 P:setButton(1, 2, { 16 ["button"] = winMgr:getWindow("orxonox/Docking CancelButton"),16 ["button"] = winMgr:getWindow("orxonox/Docking/CancelButton"), 17 17 ["callback"] = P.cancelButton_clicked 18 18 }) … … 37 37 end 38 38 39 local listbox = CEGUI.toListbox(winMgr:getWindow("orxonox/Docking Docks"))39 local listbox = CEGUI.toListbox(winMgr:getWindow("orxonox/Docking/Docks")) 40 40 listbox:resetList() 41 41 … … 51 51 52 52 function P.dockButton_clicked(e) 53 local listbox = CEGUI.toListbox(winMgr:getWindow("orxonox/Docking Docks"))53 local listbox = CEGUI.toListbox(winMgr:getWindow("orxonox/Docking/Docks")) 54 54 local choice = listbox:getFirstSelectedItem() 55 55 if choice ~= nil then
Note: See TracChangeset
for help on using the changeset viewer.