Changeset 10739 for code/branches/fabienHS15/data/gui
- Timestamp:
- Nov 1, 2015, 1:05:54 PM (9 years ago)
- Location:
- code/branches/fabienHS15/data/gui
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/fabienHS15/data/gui/layouts/InGameMenu.layout
r7801 r10739 9 9 <Property Name="Text" Value="Return to Game" /> 10 10 <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" /> 11 <Property Name="UnifiedAreaRect" Value="{{0.4,0},{0. 3625,0},{0.6,0},{0.4125,0}}" />11 <Property Name="UnifiedAreaRect" Value="{{0.4,0},{0.2875,0},{0.6,0},{0.3375,0}}" /> 12 12 <Property Name="Alpha" Value="0.9" /> 13 13 <Event Name="Clicked" Function="InGameMenu.button_return_clicked"/> 14 14 </Window> 15 <Window Type="MenuWidgets/Button" Name="orxonox/InGameMenu_ReloadLevelButton" > 16 <Property Name="Text" Value="Reload level" /> 17 <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" /> 18 <Property Name="UnifiedAreaRect" Value="{{0.4,0},{0.3625,0},{0.6,0},{0.4125,0}}" /> 19 <Property Name="Alpha" Value="0.9" /> 20 <Event Name="Clicked" Function="InGameMenu.button_reloadLevel_clicked"/> 21 </Window> 15 22 <Window Type="MenuWidgets/Button" Name="orxonox/InGameMenu_MainMenuButton" > 16 23 <Property Name="Text" Value="Main Menu" /> 17 24 <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" /> 18 <Property Name="UnifiedAreaRect" Value="{{0.4,0},{0.4 625,0},{0.6,0},{0.5125,0}}" />25 <Property Name="UnifiedAreaRect" Value="{{0.4,0},{0.4375,0},{0.6,0},{0.4875,0}}" /> 19 26 <Property Name="Alpha" Value="0.9" /> 20 27 <Event Name="Clicked" Function="InGameMenu.button_mainmenu_clicked"/> … … 23 30 <Property Name="Text" Value="Settings" /> 24 31 <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" /> 25 <Property Name="UnifiedAreaRect" Value="{{0.4,0},{0.5 625,0},{0.6,0},{0.6125,0}}" />32 <Property Name="UnifiedAreaRect" Value="{{0.4,0},{0.5125,0},{0.6,0},{0.5625,0}}" /> 26 33 <Property Name="Alpha" Value="0.9" /> 27 34 <Event Name="Clicked" Function="InGameMenu.button_settings_clicked"/> … … 30 37 <Property Name="Text" Value="Quit" /> 31 38 <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" /> 32 <Property Name="UnifiedAreaRect" Value="{{0.4,0},{0. 6625,0},{0.6,0},{0.7125,0}}" />39 <Property Name="UnifiedAreaRect" Value="{{0.4,0},{0.5875,0},{0.6,0},{0.6375,0}}" /> 33 40 <Property Name="Alpha" Value="0.9" /> 34 41 <Event Name="Clicked" Function="InGameMenu.button_quit_clicked"/> -
code/branches/fabienHS15/data/gui/scripts/InGameMenu.lua
r9016 r10739 7 7 P.multiplayerMode = "startClient" 8 8 9 --button are arranged in a 4x1 matrix, the left lower item is nil9 --button are arranged in a 5x1 matrix, the left lower item is nil 10 10 P:setButton(1, 1, { 11 11 ["button"] = winMgr:getWindow("orxonox/InGameMenu_ReturnButton"), … … 14 14 15 15 P:setButton(2, 1, { 16 ["button"] = winMgr:getWindow("orxonox/InGameMenu_ReloadLevelButton"), 17 ["callback"] = P.button_reloadLevel_clicked 18 }) 19 20 P:setButton(3, 1, { 16 21 ["button"] = winMgr:getWindow("orxonox/InGameMenu_MainMenuButton"), 17 22 ["callback"] = P.button_mainmenu_clicked 18 23 }) 19 24 20 P:setButton( 3, 1, {25 P:setButton(4, 1, { 21 26 ["button"] = winMgr:getWindow("orxonox/InGameMenu_SettingsButton"), 22 27 ["callback"] = P.button_settings_clicked 23 28 }) 24 29 25 P:setButton( 4, 1, {30 P:setButton(5, 1, { 26 31 ["button"] = winMgr:getWindow("orxonox/InGameMenu_QuitButton"), 27 32 ["callback"] = P.button_quit_clicked … … 54 59 end 55 60 61 function P.button_reloadLevel_clicked(e) 62 hideMenuSheet("InGameMenu") 63 orxonox.execute("reloadLevel") 64 end 65 56 66 function P.button_return_clicked(e) 57 67 hideMenuSheet("InGameMenu")
Note: See TracChangeset
for help on using the changeset viewer.