Changeset 7732
- Timestamp:
- Dec 8, 2010, 3:29:28 PM (14 years ago)
- Location:
- code/trunk/data/gui
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/data/gui/layouts/CreditsMenu.layout
r6746 r7732 2 2 3 3 <GUILayout > 4 <Window Type="MenuWidgets/StaticImage" Name="orxonox/CreditsBackground" > 5 <Property Name="FrameEnabled" Value="False" /> 4 <Window Type="DefaultWindow" Name="orxonox/CreditsMenu/Background" > 6 5 <Property Name="InheritsAlpha" Value="False" /> 7 6 <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" /> 8 7 <Property Name="UnifiedAreaRect" Value="{{0,0},{0,0},{1,0},{1,0}}" /> 9 <Property Name="BackgroundEnabled" Value="False" />10 8 <Window Type="MenuWidgets/StaticText" Name="orxonox/CreditsWindow" > 11 <Property Name="Text" Value=" Credits" />9 <Property Name="Text" Value="Keybindings" /> 12 10 <Property Name="Alpha" Value="0.8" /> 11 <Property Name="InheritsAlpha" Value="False" /> 13 12 <Property Name="HorzFormatting" Value="HorzCentred" /> 14 <Property Name="InheritsAlpha" Value="False" />15 13 <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" /> 16 14 <Property Name="VertFormatting" Value="TopAligned" /> 17 <Property Name="UnifiedAreaRect" Value="{{0.25,0},{0.3625,0},{0.75,0},{0.6375,0}}" /> 18 <Window Type="MenuWidgets/StaticText" Name="orxonox/CreditsText" > 19 <Property Name="Text">Orxonox version 0.0.3 15 <Property Name="UnifiedAreaRect" Value="{{0.15,0},{0.2125,0},{0.85,0},{0.6375,0}}" /> 16 <Window Type="MenuWidgets/StaticText" Name="orxonox/CreditsMenuWrapper" > 17 <Property Name="TextColours" Value="FF4444FF" /> 18 <Property Name="InheritsAlpha" Value="False" /> 19 <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" /> 20 <Property Name="HorzFormatting" Value="HorzCentred" /> 21 <Property Name="VertFormatting" Value="TopAligned" /> 22 <Property Name="UnifiedAreaRect" Value="{{0.05,0},{0.15,0},{0.95,0},{0.92,0}}" /> 23 <Window Type="MenuWidgets/ScrollablePane" Name="orxonox/CreditsMenuPane" > 24 <Property Name="ContentArea" Value="l:0 t:0 r:0 b:0" /> 25 <Property Name="HorzStepSize" Value="0.005" /> 26 <Property Name="VertStepSize" Value="0.005" /> 27 <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" /> 28 <Property Name="HorzOverlapSize" Value="0.01" /> 29 <Property Name="UnifiedAreaRect" Value="{{0.005,0},{0.01,0},{0.995,0},{0.99,0}}" /> 30 <Property Name="VertOverlapSize" Value="0.01" /> 31 <Property Name="HorzScrollPosition" Value="0" /> 32 <Property Name="VertScrollPosition" Value="0" /> 33 <Window Type="MenuWidgets/StaticText" Name="orxonox/CreditsText" > 34 <Property Name="TextColours" Value="FF4444FF" /> 35 <Property Name="InheritsAlpha" Value="False" /> 36 <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" /> 37 <Property Name="HorzFormatting" Value="HorzCentred" /> 38 <Property Name="VertFormatting" Value="TopAligned" /> 39 <Property Name="UnifiedAreaRect" Value="{{0,0},{0,0},{1,0},{1,0}}" /> 40 <Property Name="Text">Orxonox version 0.0.3 20 41 21 42 Programming Language: C++ - lua - tcl … … 23 44 Licence: GNU General Public Licence - Creative Commons 24 45 25 http://www.orxonox.net</Property> 26 <Property Name="TextColours" Value="FF4444FF" /> 27 <Property Name="InheritsAlpha" Value="False" /> 28 <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" /> 29 <Property Name="HorzFormatting" Value="HorzCentred" /> 30 <Property Name="VertFormatting" Value="TopAligned" /> 31 <Property Name="UnifiedAreaRect" Value="{{0.05,0},{0.2,0},{0.95,0},{0.9,0}}" /> 46 http://www.orxonox.net 47 n 48 n 49 n 50 n 51 n 52 n 53 n 54 n 55 n </Property> 56 </Window> 57 </Window> 32 58 </Window> 33 59 </Window> … … 40 66 </Window> 41 67 </GUILayout> 68 69 70 71 72 -
code/trunk/data/gui/layouts/MultiplayerMenu.layout
r7689 r7732 20 20 <Property Name="UnifiedAreaRect" Value="{{0.05,0},{0.15,0},{0.95,0},{0.8,0}}" /> 21 21 </Window> 22 <Window Type="MenuWidgets/RadioButton" Name="orxonox/MultiplayerLanButton" > 23 <Property Name="Text" Value="LAN"/> 24 <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" /> 25 <Property Name="UnifiedAreaRect" Value="{{0.2,0},{0.87,0},{0.4,0},{0.97,0}}" /> 26 <Event Name="SelectStateChanged" Function="MultiplayerMenu.LanButton_clicked"/> 27 </Window> 28 <Window Type="MenuWidgets/RadioButton" Name="orxonox/MultiplayerInternetButton" > 29 <Property Name="Text" Value="Internet" /> 30 <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" /> 31 <Property Name="UnifiedAreaRect" Value="{{0.6,0},{0.87,0},{0.8,0},{0.97,0}}" /> 32 <Event Name="SelectStateChanged" Function="MultiplayerMenu.InternetButton_clicked"/> 33 </Window> 34 35 22 36 </Window> 23 37 <Window Type="MenuWidgets/Button" Name="orxonox/MultiplayerBackButton" > -
code/trunk/data/gui/scripts/CreditsMenu.lua
r7689 r7732 4 4 5 5 P.buttonList = {} 6 P.scrollbarWidth = 13 6 7 7 8 function P.onLoad() … … 17 18 P.oldindex = -2 18 19 P.index = -1 20 21 local description = winMgr:getWindow("orxonox/CreditsText") 22 description:setProperty("HorzFormatting", "WordWrapLeftAligned") 23 description:setProperty("VertFormatting", "TopAligned") 24 description:setText(" Orxonox version 0.0.3 \n\n Programming Language: C++ - lua - tcl \n Environment: OpenAL - Ogre - OIS - CEGUI - enet - ODE \n Licence: GNU General Public Licence - Creative Commons \n http://www.orxonox.net \n \n Credits:") 25 26 description:setSize(CEGUI.UVector2(CEGUI.UDim(1.0, -P.scrollbarWidth), CEGUI.UDim(1.0, 0))) 27 height = getStaticTextWindowHeight(description) 28 description:setHeight(CEGUI.UDim(0, height)) 19 29 end 20 30 -
code/trunk/data/gui/scripts/MultiplayerMenu.lua
r7690 r7732 4 4 5 5 P.buttonList = {} 6 7 --joinMode is 1 for choice "LAN" and 2 for "Internet" 8 --initial status 0 9 P.joinMode = 0 6 10 7 11 function P.onLoad() … … 26 30 } 27 31 P.buttonList[4] = item 28 29 32 end 30 33 … … 37 40 end 38 41 42 function P.LanButton_clicked(e) 43 P.joinMode = 1 44 end 45 46 function P.InternetButton_clicked(e) 47 P.joinMode = 2 48 end 49 39 50 function P.MultiplayerHostButton_clicked(e) 40 51 showMenuSheet("HostMenu", true) … … 43 54 44 55 function P.MultiplayerJoinButton_clicked(e) 45 local choice = winMgr:getWindow("orxonox/MultiplayerListbox"):getFirstSelectedItem() 46 if choice then 47 local client = orxonox.Client:getInstance() 48 local index = tolua.cast(choice, "CEGUI::ListboxItem"):getID() 49 client:setDestination( P.serverList[index][2], 55556 ) 56 local choice = winMgr:getWindow("orxonox/MultiplayerListbox"):getFirstSelectedItem() 57 58 if P.joinMode == 2 then 59 if choice then 60 local client = orxonox.Client:getInstance() 61 local index = tolua.cast(choice, "CEGUI::ListboxItem"):getID() 62 client:setDestination( P.serverList[index][2], 55556 ) 63 else 64 return 65 end 66 orxonox.execute("startClient") 67 hideAllMenuSheets() 50 68 else 51 return69 --wait for Sandro's function 52 70 end 53 orxonox.execute("startClient") 54 hideAllMenuSheets() 71 55 72 end 56 73 -
code/trunk/data/gui/scripts/QuestGUI.lua
r7456 r7732 21 21 22 22 P.player = orxonox.GUIManager:getInstance():getPlayer(P.name) 23 P.rootWindow = P.createQuestGUI() ;23 P.rootWindow = P.createQuestGUI() 24 24 25 25 questsList:addChildWindow(P.rootWindow) … … 74 74 end 75 75 76 return index ;76 return index 77 77 end 78 78 … … 140 140 offset = offset + height 141 141 142 local descriptionTitle = winMgr:createWindow("MenuWidgets/StaticText", name .. "/Description/Title") ;142 local descriptionTitle = winMgr:createWindow("MenuWidgets/StaticText", name .. "/Description/Title") 143 143 window:addChildWindow(descriptionTitle) 144 144 descriptionTitle:setProperty("HorzFormatting", "HorzCentred") … … 151 151 offset = offset + height 152 152 153 local description = winMgr:createWindow("MenuWidgets/StaticText", name .. "/Description") ;153 local description = winMgr:createWindow("MenuWidgets/StaticText", name .. "/Description") 154 154 window:addChildWindow(description) 155 155 description:setProperty("HorzFormatting", "WordWrapLeftAligned") … … 165 165 local numHints = orxonox.QuestManager:getInstance():getNumHints(quest, P.player) 166 166 if numHints > 0 then 167 local hintsTitle = winMgr:createWindow("MenuWidgets/StaticText", name .. "/Hints/Title") ;167 local hintsTitle = winMgr:createWindow("MenuWidgets/StaticText", name .. "/Hints/Title") 168 168 window:addChildWindow(hintsTitle) 169 169 hintsTitle:setProperty("HorzFormatting", "HorzCentred") … … 247 247 local offset = 0 248 248 249 local descriptionTitle = winMgr:createWindow("MenuWidgets/StaticText", name .. "/Description/Title") ;249 local descriptionTitle = winMgr:createWindow("MenuWidgets/StaticText", name .. "/Description/Title") 250 250 window:addChildWindow(descriptionTitle) 251 251 descriptionTitle:setProperty("HorzFormatting", "HorzCentred") … … 258 258 offset = offset + height 259 259 260 local description = winMgr:createWindow("MenuWidgets/StaticText", name .. "/Description") ;260 local description = winMgr:createWindow("MenuWidgets/StaticText", name .. "/Description") 261 261 window:addChildWindow(description) 262 262 description:setProperty("HorzFormatting", "WordWrapLeftAligned")
Note: See TracChangeset
for help on using the changeset viewer.