Changeset 10739 for code/branches/fabienHS15/data
- Timestamp:
- Nov 1, 2015, 1:05:54 PM (9 years ago)
- Location:
- code/branches/fabienHS15/data
- Files:
-
- 3 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") -
code/branches/fabienHS15/data/overlays/HUDTemplates3.oxo
r10724 r10739 34 34 name = "HealthBar1" 35 35 background = "Orxonox/HealthBarBackground" 36 size = "0. 35, 0.0875"36 size = "0.40, 0.08" 37 37 position = "0.0 , 0.9 " 38 38 pickpoint = "0, 1" … … 40 40 textfont = "VeraMono" 41 41 textusebarcolour = true 42 texts ize = 0.03943 textoffset = "0.3 15, 0.05"42 textscale = 0.4 43 textoffset = "0.325, -0.825" 44 44 textpickpoint = "0, 0" 45 45 textalign = "right" 46 correctaspect = false47 textcorrectaspect = false46 correctaspect = true 47 iconmaterial = "Orxonox/BarIconHealth" 48 48 > 49 49 <BarColour position = 0.0 colour = "0.7,0.2,0.2" /> … … 55 55 name = "SpeedBar1" 56 56 background = "Orxonox/BarBackground" 57 size = "0. 35, 0.05"57 size = "0.40, 0.04" 58 58 position = "0.0 , 0.95 " 59 59 pickpoint = "0, 1" 60 correctaspect = false 60 correctaspect = true 61 iconmaterial = "Orxonox/BarIconSpeed" 61 62 > 62 63 <BarColour position = 0.0 colour = "0.7,0.5,0.2" /> … … 67 68 <HUDBoostBar 68 69 name = "BoostBar1" 69 background tex = "bar1.png"70 size = "0. 35, 0.05"70 background = "Orxonox/BarBackground" 71 size = "0.40, 0.04" 71 72 position = "0.0 , 1.0 " 72 73 pickpoint = "0, 1" 73 correctaspect = false 74 correctaspect = true 75 iconmaterial = "Orxonox/BarIconBoost" 74 76 > 75 77 <BarColour position = 0.0 colour = "0.7,0.2,0.2" /> … … 81 83 name = "EnemyHealthBar" 82 84 background = "Orxonox/HealthBarBackground" 83 size = "0. 35, 0.0875"84 position = "1 ,0 .1"85 pickpoint = "1, 1"85 size = "0.4, 0.08" 86 position = "1 ,0" 87 pickpoint = "1, 0" 86 88 bartexture = "healthbar_bar.png" 87 89 textfont = "VeraMono" 88 90 textusebarcolour = true 89 texts ize = 0.03990 textoffset = " 0.315, 0.05"91 textscale = 0.4 92 textoffset = "-0.675, 0.175" 91 93 textpickpoint = "0, 0" 92 94 textalign = "right" 93 correctaspect = false94 textcorrectaspect = false95 correctaspect = true 96 iconmaterial = "Orxonox/BarIconHealth" 95 97 > 96 98 <BarColour position = 0.0 colour = "0.7,0.2,0.2" /> … … 131 133 name = "WeaponSystem" 132 134 correctaspect = true 133 position = "0.0 , 0.0"135 position = "0.01, 0.01" 134 136 pickpoint = "0, 0" 135 137 visible = "true"
Note: See TracChangeset
for help on using the changeset viewer.