Changeset 11499 for code/branches/HUD_HS16/data
- Timestamp:
- Oct 23, 2017, 2:56:00 PM (7 years ago)
- Location:
- code/branches/HUD_HS16
- Files:
-
- 19 deleted
- 18 edited
- 4 copied
Legend:
- Unmodified
- Added
- Removed
-
code/branches/HUD_HS16
- Property svn:mergeinfo changed
-
code/branches/HUD_HS16/data/gui/layouts/CampaignMenu.layout
r11497 r11499 8 8 <Property Name="UnifiedAreaRect" Value="{{0,0},{0,0},{1.0,0},{1.0,0}}" /> 9 9 <Property Name="BackgroundEnabled" Value="False" /> 10 11 <!-- Misson 1************************************* --> 12 <Window Type="MenuWidgets/Button" Name="orxonox/Mission1Text" > 10 <Window Type="MenuWidgets/Button" Name="orxonox/Mission1Button" > 13 11 <Property Name="Text" Value="Mission One" /> 14 12 <Property Name="Visible" Value="False"/> 15 <Property Name="UnifiedAreaRect" Value="{{0.1,0},{0.6,0},{0.3,0},{0.65,0}}" /> 13 <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" /> 14 <Property Name="UnifiedAreaRect" Value="{{0.35,0},{0.1,0},{0.65,0},{0.15,0}}" /> 16 15 <Event Name="Clicked" Function="CampaignMenu.Mission1Button_clicked"/> 17 16 </Window> 18 19 <Window Type="MenuWidgets/JuuButton" Name="orxonox/Mission1Button">17 <Window Type="MenuWidgets/Button" Name="orxonox/Mission2Button" > 18 <Property Name="Text" Value="Fight in our Back" /> 20 19 <Property Name="Visible" Value="False"/> 21 20 <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" /> 22 <Property Name="UnifiedAreaRect" Value="{{0.1,0},{0.75,0},{0.25,0},{0.95,0}}" /> 23 <Event Name="Clicked" Function="CampaignMenu.Mission1Button_clicked"/> 24 </Window> 25 26 <!-- Misson 2************************************* --> 27 <Window Type="MenuWidgets/Button" Name="orxonox/Mission2Text" > 28 <Property Name="Text" Value="Fight in our Back" /> 29 <Property Name="Visible" Value="False"/> 30 <Property Name="UnifiedAreaRect" Value="{{0.35,0},{0.6,0},{0.55,0},{0.65,0}}" /> 21 <Property Name="UnifiedAreaRect" Value="{{0.35,0},{0.18,0},{0.65,0},{0.23,0}}" /> 31 22 <Property Name="Disabled" Value="True" /> 32 23 <Event Name="Clicked" Function="CampaignMenu.Mission2Button_clicked"/> 33 24 </Window> 34 35 <Window Type="MenuWidgets/JuuButton" Name="orxonox/Mission2Button">25 <Window Type="MenuWidgets/Button" Name="orxonox/Mission3Button" > 26 <Property Name="Text" Value="Pirate Attack" /> 36 27 <Property Name="Visible" Value="False"/> 37 28 <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" /> 38 <Property Name="UnifiedAreaRect" Value="{{0.4,0},{0.7,0},{0.5,0},{0.85,0}}" /> 39 <Property Name="Disabled" Value="True" /> 40 <Event Name="Clicked" Function="CampaignMenu.Mission2Button_clicked"/> 41 </Window> 42 43 <!-- Misson 3************************************* --> 44 <Window Type="MenuWidgets/Button" Name="orxonox/Mission3Text" > 45 <Property Name="Text" Value="Pirate Attack" /> 46 <Property Name="Visible" Value="False"/> 47 <Property Name="UnifiedAreaRect" Value="{{0.6,0},{0.75,0},{0.8,0},{0.8,0}}" /> 29 <Property Name="UnifiedAreaRect" Value="{{0.35,0},{0.26,0},{0.65,0},{0.31,0}}" /> 48 30 <Property Name="Disabled" Value="True" /> 49 31 <Event Name="Clicked" Function="CampaignMenu.Mission3Button_clicked"/> 50 32 </Window> 51 <Window Type="MenuWidgets/ JuuButton" Name="orxonox/Mission3Button" >52 33 <Window Type="MenuWidgets/Button" Name="orxonox/Mission4Button" > 34 <Property Name="Text" Value="Trip to Area 51" /> 53 35 <Property Name="Visible" Value="False"/> 54 36 <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" /> 55 <Property Name="UnifiedAreaRect" Value="{{0.685,0},{0.605,0},{0.75,0},{0.71,0}}" /> 56 <Property Name="Disabled" Value="True" /> 57 <Event Name="Clicked" Function="CampaignMenu.Mission3Button_clicked"/> 58 </Window> 59 60 <!-- Misson 4************************************* --> 61 <Window Type="MenuWidgets/Button" Name="orxonox/Mission4Text" > 62 <Property Name="Text" Value="Trip to Area 51" /> 63 <Property Name="Visible" Value="False"/> 64 <Property Name="UnifiedAreaRect" Value="{{0.575,0},{0.5,0},{0.775,0},{0.55,0}}" /> 37 <Property Name="UnifiedAreaRect" Value="{{0.35,0},{0.34,0},{0.65,0},{0.39,0}}" /> 65 38 <Property Name="Disabled" Value="True" /> 66 39 <Event Name="Clicked" Function="CampaignMenu.Mission4Button_clicked"/> 67 40 </Window> 68 <Window Type="MenuWidgets/ JuuButton" Name="orxonox/Mission4Button" >69 41 <Window Type="MenuWidgets/Button" Name="orxonox/Mission5Button" > 42 <Property Name="Text" Value="Area 51 under Fire" /> 70 43 <Property Name="Visible" Value="False"/> 71 44 <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" /> 72 <Property Name="UnifiedAreaRect" Value="{{0.78,0},{0.48,0},{0.87,0},{0.59,0}}" /> 73 <Property Name="Disabled" Value="True" /> 74 <Event Name="Clicked" Function="CampaignMenu.Mission4Button_clicked"/> 75 </Window> 76 77 <!-- Misson 5************************************* --> 78 <Window Type="MenuWidgets/Button" Name="orxonox/Mission5Text" > 79 <Property Name="Text" Value="Area 51 under Fire" /> 80 <Property Name="Visible" Value="False"/> 81 <Property Name="UnifiedAreaRect" Value="{{0.625,0},{0.4,0},{0.825,0},{0.45,0}}" /> 45 <Property Name="UnifiedAreaRect" Value="{{0.35,0},{0.42,0},{0.65,0},{0.47,0}}" /> 82 46 <Property Name="Disabled" Value="True" /> 83 47 <Event Name="Clicked" Function="CampaignMenu.Mission5Button_clicked"/> 84 48 </Window> 85 <Window Type="MenuWidgets/ JuuButton" Name="orxonox/Mission5Button" >86 49 <Window Type="MenuWidgets/Button" Name="orxonox/Mission6Button" > 50 <Property Name="Text" Value="Escape the Bastards" /> 87 51 <Property Name="Visible" Value="False"/> 88 52 <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" /> 89 <Property Name="UnifiedAreaRect" Value="{{0.725,0},{0.27,0},{0.775,0},{0.37,0}}" /> 90 <Property Name="Disabled" Value="True" /> 91 <Event Name="Clicked" Function="CampaignMenu.Mission5Button_clicked"/> 92 </Window> 93 94 <!-- Misson 6************************************* --> 95 <Window Type="MenuWidgets/Button" Name="orxonox/Mission6Text" > 96 <Property Name="Text" Value="Escape the Bastards" /> 97 <Property Name="Visible" Value="False"/> 98 <Property Name="UnifiedAreaRect" Value="{{0.525,0},{0.1,0},{0.725,0},{0.15,0}}" /> 53 <Property Name="UnifiedAreaRect" Value="{{0.35,0},{0.50,0},{0.65,0},{0.55,0}}" /> 99 54 <Property Name="Disabled" Value="True" /> 100 55 <Event Name="Clicked" Function="CampaignMenu.Mission6Button_clicked"/> 101 56 </Window> 102 <Window Type="MenuWidgets/ JuuButton" Name="orxonox/Mission6Button" >103 57 <Window Type="MenuWidgets/Button" Name="orxonox/Mission7Button" > 58 <Property Name="Text" Value="Expedition to Sector 5C" /> 104 59 <Property Name="Visible" Value="False"/> 105 60 <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" /> 106 <Property Name="UnifiedAreaRect" Value="{{0.6,0},{0.17,0},{0.65,0},{0.27,0}}" /> 107 <Property Name="Disabled" Value="True" /> 108 <Event Name="Clicked" Function="CampaignMenu.Mission6Button_clicked"/> 109 </Window> 110 111 <!-- Misson 7************************************* --> 112 <Window Type="MenuWidgets/Button" Name="orxonox/Mission7Text" > 113 <Property Name="Text" Value="Expedition to Sector 5C" /> 114 <Property Name="Visible" Value="False"/> 115 <Property Name="Disabled" Value="True" /> 116 <Event Name="Clicked" Function="CampaignMenu.Mission7Button_clicked"/> 117 <Property Name="UnifiedAreaRect" Value="{{0.4,0},{0.025,0},{0.6,0},{0.075,0}}" /> 118 </Window> 119 <Window Type="MenuWidgets/JuuButton" Name="orxonox/Mission7Button" > 120 121 <Property Name="Visible" Value="False"/> 122 <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" /> 123 <Property Name="UnifiedAreaRect" Value="{{0.47,0},{0.13,0},{0.525,0},{0.23,0}}" /> 61 <Property Name="UnifiedAreaRect" Value="{{0.35,0},{0.58,0},{0.65,0},{0.63,0}}" /> 124 62 <Property Name="Disabled" Value="True" /> 125 63 <Event Name="Clicked" Function="CampaignMenu.Mission7Button_clicked"/> 126 64 </Window> 127 128 <!-- Misson 8************************************* --> 129 <Window Type="MenuWidgets/Button" Name="orxonox/Mission8Text" > 65 <Window Type="MenuWidgets/Button" Name="orxonox/Mission8Button" > 130 66 <Property Name="Text" Value="Shuttle under Attack" /> 131 67 <Property Name="Visible" Value="False"/> 132 <Property Name="Disabled" Value="True" />133 <Property Name="UnifiedAreaRect" Value="{{0.25,0},{0.2,0},{0.45,0},{0.25,0}}" />134 <Event Name="Clicked" Function="CampaignMenu.Mission8Button_clicked"/>135 </Window>136 <Window Type="MenuWidgets/JuuButton" Name="orxonox/Mission8Button" >137 138 <Property Name="Visible" Value="False"/>139 68 <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" /> 140 <Property Name="UnifiedAreaRect" Value="{{0.3 3,0},{0.1,0},{0.38,0},{0.18,0}}" />69 <Property Name="UnifiedAreaRect" Value="{{0.35,0},{0.66,0},{0.65,0},{0.71,0}}" /> 141 70 <Property Name="Disabled" Value="True" /> 142 71 <Event Name="Clicked" Function="CampaignMenu.Mission8Button_clicked"/> 143 72 </Window> 144 145 <!-- Misson 9************************************* --> 146 <Window Type="MenuWidgets/Button" Name="orxonox/Mission9Text" > 73 <Window Type="MenuWidgets/Button" Name="orxonox/Mission9Button" > 147 74 <Property Name="Text" Value="Retaliation" /> 148 75 <Property Name="Visible" Value="False"/> 149 <Property Name="Disabled" Value="True" />150 <Property Name="UnifiedAreaRect" Value="{{0.1,0},{0.145,0},{0.3,0},{0.195,0}}" />151 <Event Name="Clicked" Function="CampaignMenu.Mission9Button_clicked"/>152 </Window>153 <Window Type="MenuWidgets/JuuButton" Name="orxonox/Mission9Button" >154 155 <Property Name="Visible" Value="False"/>156 76 <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" /> 157 <Property Name="UnifiedAreaRect" Value="{{0. 18,0},{0.07,0},{0.24,0},{0.145,0}}" />77 <Property Name="UnifiedAreaRect" Value="{{0.35,0},{0.74,0},{0.65,0},{0.79,0}}" /> 158 78 <Property Name="Disabled" Value="True" /> 159 79 <Event Name="Clicked" Function="CampaignMenu.Mission9Button_clicked"/> 160 80 </Window> 161 81 162 <!-- Back Button************************************* --> 82 163 83 <Window Type="MenuWidgets/Button" Name="orxonox/CampaignMenuBackButton" > 164 84 <Property Name="Text" Value="Back" /> 165 85 <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" /> 166 <Property Name="UnifiedAreaRect" Value="{{0. 75,0},{0.9,0},{0.95,0},{0.95,0}}" />86 <Property Name="UnifiedAreaRect" Value="{{0.35,0},{0.85,0},{0.65,0},{0.9,0}}" /> 167 87 <Event Name="Clicked" Function="CampaignMenu.CampaignMenuBackButton_clicked"/> 168 88 </Window> -
code/branches/HUD_HS16/data/gui/layouts/MainMenu.layout
r11497 r11499 11 11 <Property Name="Text" Value="Quickstart" /> 12 12 <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" /> 13 <Property Name="UnifiedAreaRect" Value="{{0.4,0},{0.2 5,0},{0.6,0},{0.3,0}}" />13 <Property Name="UnifiedAreaRect" Value="{{0.4,0},{0.2875,0},{0.6,0},{0.3375,0}}" /> 14 14 <Event Name="Clicked" Function="MainMenu.QuickGameTestButton_clicked"/> 15 15 </Window> … … 17 17 <Property Name="Text" Value="Singleplayer" /> 18 18 <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" /> 19 <Property Name="UnifiedAreaRect" Value="{{0.4,0},{0.3 25,0},{0.6,0},{0.375,0}}" />19 <Property Name="UnifiedAreaRect" Value="{{0.4,0},{0.3625,0},{0.6,0},{0.4125,0}}" /> 20 20 <Event Name="Clicked" Function="MainMenu.SingleplayerButton_clicked"/> 21 21 </Window> … … 23 23 <Property Name="Text" Value="Multiplayer" /> 24 24 <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" /> 25 <Property Name="UnifiedAreaRect" Value="{{0.4,0},{0.4 ,0},{0.6,0},{0.45,0}}" />25 <Property Name="UnifiedAreaRect" Value="{{0.4,0},{0.4375,0},{0.6,0},{0.4875,0}}" /> 26 26 <Event Name="Clicked" Function="MainMenu.MultiplayerButton_clicked"/> 27 </Window>28 <Window Type="MenuWidgets/Button" Name="orxonox/HighscoreButton" >29 <Property Name="Text" Value="Highscore" />30 <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />31 <Property Name="UnifiedAreaRect" Value="{{0.4,0},{0.475,0},{0.6,0},{0.525,0}}" />32 <Event Name="Clicked" Function="MainMenu.HighscoreButton_clicked"/>33 27 </Window> 34 28 <Window Type="MenuWidgets/Button" Name="orxonox/SettingsButton" > 35 29 <Property Name="Text" Value="Settings" /> 36 30 <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" /> 37 <Property Name="UnifiedAreaRect" Value="{{0.4,0},{0.5 5,0},{0.6,0},{0.6,0}}" />31 <Property Name="UnifiedAreaRect" Value="{{0.4,0},{0.5125,0},{0.6,0},{0.5625,0}}" /> 38 32 <Event Name="Clicked" Function="MainMenu.SettingsButton_clicked"/> 39 33 </Window> … … 41 35 <Property Name="Text" Value="Credits" /> 42 36 <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" /> 43 <Property Name="UnifiedAreaRect" Value="{{0.4,0},{0. 625,0},{0.6,0},{0.675,0}}" />37 <Property Name="UnifiedAreaRect" Value="{{0.4,0},{0.5875,0},{0.6,0},{0.6375,0}}" /> 44 38 <Event Name="Clicked" Function="MainMenu.CreditsButton_clicked"/> 45 39 </Window> … … 47 41 <Property Name="Text" Value="Exit" /> 48 42 <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" /> 49 <Property Name="UnifiedAreaRect" Value="{{0.4,0},{0. 7,0},{0.6,0},{0.75,0}}" />43 <Property Name="UnifiedAreaRect" Value="{{0.4,0},{0.6625,0},{0.6,0},{0.7125,0}}" /> 50 44 <Event Name="Clicked" Function="MainMenu.ExitButton_clicked"/> 51 45 </Window> -
code/branches/HUD_HS16/data/gui/schemes/OrxonoxHUDWidgets.scheme
r11497 r11499 40 40 <WindowAlias Alias="HUDWidgets/Tooltip" Target="OrxonoxLook/Tooltip" /> 41 41 <WindowAlias Alias="HUDWidgets/Tree" Target="OrxonoxLook/Tree" /> 42 43 <WindowAlias Alias="HUDWidgets/ImageButton" Target="OrxonoxLook/JuuButton" />44 42 </GUIScheme> -
code/branches/HUD_HS16/data/gui/schemes/OrxonoxLook.scheme
r11497 r11499 50 50 <FalagardMapping WindowType="OrxonoxLook/VUMeter" TargetType="CEGUI/ProgressBar" Renderer="Falagard/ProgressBar" LookNFeel="OrxonoxLook/VUMeter" /> 51 51 <FalagardMapping WindowType="OrxonoxLook/LargeVerticalScrollbar" TargetType="CEGUI/Scrollbar" Renderer="Falagard/Scrollbar" LookNFeel="OrxonoxLook/LargeVerticalScrollbar" /> 52 <FalagardMapping WindowType="OrxonoxLook/LargeVerticalScrollbarThumb" TargetType="CEGUI/Thumb" Renderer="Falagard/Button" LookNFeel="OrxonoxLook/LargeVerticalScrollbarThumb" /> 53 54 <!-- Special Button for CampaignMenu --> 55 <FalagardMapping WindowType="OrxonoxLook/JuuButton" TargetType="CEGUI/PushButton" Renderer="Falagard/Button" LookNFeel="OrxonoxLook/JuuButton" /> 56 52 <FalagardMapping WindowType="OrxonoxLook/LargeVerticalScrollbarThumb" TargetType="CEGUI/Thumb" Renderer="Falagard/Button" LookNFeel="OrxonoxLook/LargeVerticalScrollbarThumb" /> 57 53 </GUIScheme> -
code/branches/HUD_HS16/data/gui/schemes/OrxonoxMenuWidgets.scheme
r11497 r11499 40 40 <WindowAlias Alias="MenuWidgets/Tooltip" Target="OrxonoxLook/Tooltip" /> 41 41 <WindowAlias Alias="MenuWidgets/Tree" Target="OrxonoxLook/Tree" /> 42 43 <WindowAlias Alias="MenuWidgets/JuuButton" Target="OrxonoxLook/JuuButton" />44 42 </GUIScheme> -
code/branches/HUD_HS16/data/gui/schemes/TaharezGreenHUDWidgets.scheme
r11497 r11499 40 40 <WindowAlias Alias="HUDWidgets/Tooltip" Target="TaharezGreenLook/Tooltip" /> 41 41 <WindowAlias Alias="HUDWidgets/Tree" Target="TaharezGreenLook/Tree" /> 42 43 <WindowAlias Alias="HUDWidgets/ImageButton" Target="TaharezGreenLook/JuuButton" />44 42 </GUIScheme> -
code/branches/HUD_HS16/data/gui/schemes/TaharezGreenLook.scheme
r11497 r11499 51 51 <FalagardMapping WindowType="TaharezGreenLook/LargeVerticalScrollbar" TargetType="CEGUI/Scrollbar" Renderer="Falagard/Scrollbar" LookNFeel="TaharezGreenLook/LargeVerticalScrollbar" /> 52 52 <FalagardMapping WindowType="TaharezGreenLook/LargeVerticalScrollbarThumb" TargetType="CEGUI/Thumb" Renderer="Falagard/Button" LookNFeel="TaharezGreenLook/LargeVerticalScrollbarThumb" /> 53 54 <!-- Special Button for CampaignMenu -->55 <FalagardMapping WindowType="TaharezGreenLook/JuuButton" TargetType="CEGUI/PushButton" Renderer="Falagard/Button" LookNFeel="TaharezGreenLook/JuuButton" />56 53 </GUIScheme> -
code/branches/HUD_HS16/data/gui/schemes/TaharezGreenMenuWidgets.scheme
r11497 r11499 40 40 <WindowAlias Alias="MenuWidgets/Tooltip" Target="TaharezGreenLook/Tooltip" /> 41 41 <WindowAlias Alias="MenuWidgets/Tree" Target="TaharezGreenLook/Tree" /> 42 43 <WindowAlias Alias="MenuWidgets/JuuButton" Target="TaharezGreenLook/JuuButton" />44 42 </GUIScheme> -
code/branches/HUD_HS16/data/gui/schemes/TaharezLook.scheme
r11497 r11499 51 51 <FalagardMapping WindowType="TaharezLook/LargeVerticalScrollbar" TargetType="CEGUI/Scrollbar" Renderer="Falagard/Scrollbar" LookNFeel="TaharezLook/LargeVerticalScrollbar" /> 52 52 <FalagardMapping WindowType="TaharezLook/LargeVerticalScrollbarThumb" TargetType="CEGUI/Thumb" Renderer="Falagard/Button" LookNFeel="TaharezLook/LargeVerticalScrollbarThumb" /> 53 54 53 </GUIScheme> -
code/branches/HUD_HS16/data/gui/scripts/CampaignMenu.lua
r11497 r11499 9 9 function P.updateButtons() 10 10 P.updateButton(0, winMgr:getWindow("orxonox/Mission1Button")) 11 P.updateButton(0, winMgr:getWindow("orxonox/Mission1Text"))12 11 P.updateButton(1, winMgr:getWindow("orxonox/Mission2Button")) 13 P.updateButton(1, winMgr:getWindow("orxonox/Mission2Text"))14 12 P.updateButton(2, winMgr:getWindow("orxonox/Mission3Button")) 15 P.updateButton(2, winMgr:getWindow("orxonox/Mission3Text"))16 13 P.updateButton(3, winMgr:getWindow("orxonox/Mission4Button")) 17 P.updateButton(3, winMgr:getWindow("orxonox/Mission4Text"))18 14 P.updateButton(4, winMgr:getWindow("orxonox/Mission5Button")) 19 P.updateButton(4, winMgr:getWindow("orxonox/Mission5Text"))20 15 P.updateButton(5, winMgr:getWindow("orxonox/Mission6Button")) 21 P.updateButton(5, winMgr:getWindow("orxonox/Mission6Text"))22 16 P.updateButton(6, winMgr:getWindow("orxonox/Mission7Button")) 23 P.updateButton(6, winMgr:getWindow("orxonox/Mission7Text"))24 17 P.updateButton(7, winMgr:getWindow("orxonox/Mission8Button")) 25 P.updateButton(7, winMgr:getWindow("orxonox/Mission8Text"))26 18 P.updateButton(8, winMgr:getWindow("orxonox/Mission9Button")) 27 P.updateButton(8, winMgr:getWindow("orxonox/Mission9Text"))28 19 29 20 … … 106 97 107 98 function P.loadLevel(level) 108 orxonox.execute(" changeGame " .. level:getXMLFilename())99 orxonox.execute("startGame " .. level:getXMLFilename()) 109 100 hideAllMenuSheets() 110 101 end … … 127 118 128 119 function P.CampaignMenuBackButton_clicked(e) 129 orxonox.execute("startMainMenu") 130 hideMenuSheet("CampaignMenu") 120 hideMenuSheet(P.name) 131 121 end 132 122 -
code/branches/HUD_HS16/data/gui/scripts/MainMenu.lua
r11497 r11499 2 2 3 3 local P = createMenuSheet("MainMenu") 4 P.loadAlong = { "SingleplayerMenu", "MultiplayerMenu", " HighscoreMenu", "SettingsMenu", "CreditsMenu" }4 P.loadAlong = { "SingleplayerMenu", "MultiplayerMenu", "SettingsMenu", "CreditsMenu" } 5 5 6 6 function P.onLoad() … … 22 22 23 23 P:setButton(4, 1, { 24 ["button"] = winMgr:getWindow("orxonox/HighscoreButton"),25 ["callback"] = P.MultiplayerButton_clicked26 })27 28 P:setButton(5, 1, {29 24 ["button"] = winMgr:getWindow("orxonox/SettingsButton"), 30 25 ["callback"] = P.SettingsButton_clicked 31 26 }) 32 27 33 P:setButton( 6, 1, {28 P:setButton(5, 1, { 34 29 ["button"] = winMgr:getWindow("orxonox/CreditsButton"), 35 30 ["callback"] = P.CreditsButton_clicked 36 31 }) 37 32 38 P:setButton( 7, 1, {33 P:setButton(6, 1, { 39 34 ["button"] = winMgr:getWindow("orxonox/ExitButton"), 40 35 ["callback"] = P.ExitButton_clicked … … 56 51 end 57 52 58 function P.HighscoreButton_clicked(e)59 showMenuSheet("HighscoreMenu", true)60 end61 62 53 function P.SettingsButton_clicked(e) 63 54 showMenuSheet("SettingsMenu", true) -
code/branches/HUD_HS16/data/gui/scripts/MiscConfigMenu.lua
r11497 r11499 18 18 19 19 P.commandList = {} 20 table.insert(P.commandList, "Highscore playerName_")21 20 table.insert(P.commandList, "KeyBinder mouseSensitivity_") 22 21 table.insert(P.commandList, "KeyBinder mouseSensitivityDerived_") … … 44 43 45 44 P.nameList = {} 46 table.insert(P.nameList, "Playername")47 45 table.insert(P.nameList, "Mouse sensitivity") 48 46 table.insert(P.nameList, "Mouse acceleration") -
code/branches/HUD_HS16/data/gui/scripts/SingleplayerMenu.lua
r11497 r11499 172 172 173 173 function P.CampaignButton_clicked(e) 174 -- showMenuSheet("CampaignMenu", true) 175 hideAllMenuSheets() 176 orxonox.execute("startGame StoryModeMap.oxw") 174 showMenuSheet("CampaignMenu", true) 177 175 end 178 176 -
code/branches/HUD_HS16/data/levels/HeavyCruiser.oxw
r11497 r11499 34 34 35 35 <!-- HeavyCruiser and all its parts in one static entity --> 36 < !--StaticEntity position="-300,0,-2000" direction="0,0,0" yaw="180" collisionType=static mass=100000 friction=0.01 >36 <StaticEntity position="-300,0,-2000" direction="0,0,0" yaw="180" collisionType=static mass=100000 friction=0.01 > 37 37 <attached> 38 38 <Model mesh="HeavyCruiser_body.mesh" direction="-1,0,0" position="0,0,0" scale="40"/> … … 46 46 <Model mesh="HeavyCruiser_sidearmRfront.mesh" direction="-1,0,0" position="0,0,0" scale="40"/> 47 47 48 <!-- bay1 lights --> 48 49 <BlinkingBillboard position="75,30,-416" material="Examples/Flare" colour="0.8, 0.8, 0, 0.1" amplitude=0.05 frequency=0.3 phase=240 quadratic=1 /> 49 50 <BlinkingBillboard position="-75,30,-416" material="Examples/Flare" colour="0.8, 0.8, 0, 0.1" amplitude=0.05 frequency=0.3 phase=240 quadratic=1 /> … … 52 53 <BlinkingBillboard position="73,30,-388" material="Examples/Flare" colour="0.8, 0.8, 0, 0.1" amplitude=0.15 frequency=0.3 phase=0 quadratic=1 /> 53 54 <BlinkingBillboard position="-73,30,-388" material="Examples/Flare" colour="0.8, 0.8, 0, 0.1" amplitude=0.15 frequency=0.3 phase=0 quadratic=1 /> 54 55 <!-- front position lights --> 55 56 <BlinkingBillboard position="67,-5,-240" material="Examples/Flare" colour="0, 0.7, 0, 0.1" amplitude=0.3 frequency=0.15 phase=0 quadratic=1 /> 56 57 <BlinkingBillboard position="-67,-5,-240" material="Examples/Flare" colour="0.7, 0, 0, 0.1" amplitude=0.3 frequency=0.15 phase=360 quadratic=1 /> 57 58 <BlinkingBillboard position="72,51,-380" material="Examples/Flare" colour="0, 0.7, 0, 0.1" amplitude=0.3 frequency=0.15 phase=360 quadratic=1 /> 58 59 <BlinkingBillboard position="-72,51,-380" material="Examples/Flare" colour="0.7, 0, 0, 0.1" amplitude=0.3 frequency=0.15 phase=0 quadratic=1 /> 59 60 <!-- rear position lights --> 60 61 <BlinkingBillboard position="95,-15,483" material="Examples/Flare" colour="0, 0.7, 0, 0.1" amplitude=0.3 frequency=0.15 phase=360 quadratic=1 /> 61 62 <BlinkingBillboard position="-95,-15,483" material="Examples/Flare" colour="0.7, 0, 0, 0.1" amplitude=0.3 frequency=0.15 phase=0 quadratic=1 /> … … 292 293 <BoxCollisionShape position="0,18,69" halfExtents="23,12,1" info="HOOKBOX, wide"/> 293 294 <BoxCollisionShape position="0,18,47" halfExtents="23,12,1" info="HOOKBOX, wide"/> 295 296 <!-- <BoxCollisionShape position="-11,18,102" halfExtents="10,10,10" info="HOOK, sidearmL"/> 297 <BoxCollisionShape position="11,18,102" halfExtents="10,10,10" info="HOOK, sidearmR"/> 298 <BoxCollisionShape position="-11,18,80" halfExtents="10,10,10" info="HOOK, partL"/> 299 <BoxCollisionShape position="11,18,80" halfExtents="10,10,10" info="HOOK, partR"/> 300 <BoxCollisionShape position="-11,18,58" halfExtents="10,10,10" info="HOOK, frontL"/> 301 <BoxCollisionShape position="11,18,58" halfExtents="10,10,10" info="HOOK, frontR"/>--> 294 302 </collisionShapes> 295 </StaticEntity -->303 </StaticEntity> 296 304 297 305 <!-- Width/Height/Lenght--><!-- B=back F=front C=center--> 298 < !--StaticEntity position="300,0,-2000" direction="0,0,0" yaw="180" collisionType=static mass=100000 friction=0.01 >306 <StaticEntity position="300,0,-2000" direction="0,0,0" yaw="180" collisionType=static mass=100000 friction=0.01 > 299 307 <attached> 300 308 <Model position="80,33,-320" mesh="cube.mesh" scale3D="7,11,54" info="frontR"/> … … 350 358 <Model position="153,60,-65" roll="-15" mesh="cube.mesh" scale3D="4,3,4" info="sidearmRfront, top"/> 351 359 <Model position="153,59,-41" roll="-15" mesh="cube.mesh" scale3D="8,2,11" info="sidearmRfront, top"/> 360 361 <!--<Model position="145,21,50" mesh="cube.mesh" scale3D="10,10,20" info="sidearmRfront, HOOK"/>--> 352 362 353 363 … … 389 399 <Model position="-153,59,-41" roll="15" mesh="cube.mesh" scale3D="8,2,11" info="sidearmLfront, top"/> 390 400 401 <!--<Model position="-145,21,50" mesh="cube.mesh" scale3D="10,10,20" info="sidearmLfront, HOOK"/>--> 402 391 403 392 404 <Model position="60,35,-310" mesh="cube.mesh" scale3D="13,28,60" info="body, bay1, Rwall"/> … … 532 544 <collisionShapes> 533 545 </collisionShapes> 534 </StaticEntity -->546 </StaticEntity> 535 547 536 548 … … 726 738 </Pawn> 727 739 728 < !--Pawn team=1 health=300 initialhealth=300 maxhealth=300 position="0,300,-2000" yaw="180" direction="0,0,0" collisionType=dynamic mass=1000 name=HeavyCruiser_sidearmL radarname = "HIDDEN" >740 <Pawn team=1 health=300 initialhealth=300 maxhealth=300 position="0,300,-2000" yaw="180" direction="0,0,0" collisionType=dynamic mass=1000 name=HeavyCruiser_sidearmL radarname = "HIDDEN" > 729 741 730 742 <explosion> … … 740 752 <BoxCollisionShape position="-11,18,102" halfExtents="10,10,10" info="HOOK, sidearmL"/> 741 753 754 <!-- <BoxCollisionShape position="-109,47,87" halfExtents="29,8,26" info="sidearmL, upper connection"/> 755 <BoxCollisionShape position="-99,-1,79" roll="15" halfExtents="40,4,9" info="sidearmL, lower connection"/>--> 742 756 <BoxCollisionShape position="-151,47,115" roll="15" halfExtents="16,2,105" info="sidearmL, frontTop"/> 743 757 <BoxCollisionShape position="-136,-7,115" roll="15" halfExtents="16,2,105" info="sidearmL, frontBottom"/> … … 746 760 <BoxCollisionShape position="-145,21,12" roll="15" halfExtents="16,28,2" info="sidearmL, front"/> 747 761 <BoxCollisionShape position="-140,12,261" roll="15" halfExtents="22,41,43" info="sidearmL, back"/> 762 <!--<BoxCollisionShape position="-145,25,5" roll="15" halfExtents="10,18,5" info="sidearmL, front break"/>--> 748 763 <BoxCollisionShape position="-133,-13,29" roll="15" halfExtents="12,6,17" info="sidearmL, bottom cylinder"/> 749 764 <BoxCollisionShape position="-165,-4,31" roll="15" halfExtents="7,21,13" info="sidearmL, box"/> … … 801 816 <collisionShapes> 802 817 <BoxCollisionShape position="11,18,102" halfExtents="10,10,10" info="HOOK, sidearmR"/> 818 819 <!--<BoxCollisionShape position="109,47,87" halfExtents="29,8,26" info="sidearmR, upper connection"/> 820 <BoxCollisionShape position="99,-1,79" roll="-15" halfExtents="40,4,9" info="sidearmR, lower connection"/>--> 803 821 <BoxCollisionShape position="151,47,115" roll="-15" halfExtents="16,2,105" info="sidearmR, frontTop"/> 804 822 <BoxCollisionShape position="136,-7,115" roll="-15" halfExtents="16,2,105" info="sidearmR, frontBottom"/> … … 807 825 <BoxCollisionShape position="145,21,12" roll="-15" halfExtents="16,28,2" info="sidearmR, front"/> 808 826 <BoxCollisionShape position="140,12,261" roll="-15" halfExtents="22,41,43" info="sidearmR, back"/> 827 <!--<BoxCollisionShape position="145,25,5" roll="-15" halfExtents="10,18,5" info="sidearmR, front break"/>--> 809 828 <BoxCollisionShape position="133,-13,29" roll="-15" halfExtents="12,6,17" info="sidearmR, bottom cylinder"/> 810 829 <BoxCollisionShape position="165,-4,31" roll="-15" halfExtents="7,21,13" info="sidearmR, box"/> … … 911 930 <BoxCollisionShape position="96,33,-230" halfExtents="13,17,22" info="partR"/> 912 931 </collisionShapes> 913 </Pawn -->932 </Pawn> 914 933 915 934 … … 918 937 919 938 <SpawnPoint team=0 position="0,0,0" lookat="0,0,-100" spawnclass=SpaceShip pawndesign=HeavyCruiserBody /> 939 940 <?lua 941 --[[ 942 With this lua script, the sub-parts of HeavyCruiser can easily be inserted into a level. 943 Available functions are: 944 To place all subparts: 945 placeAllSubParts(team, posX, posY, posZ, dirX, dirY, dirZ) 946 To place individual parts: 947 placeFrontL(...) Use the same arguments as in placeAllSubParts 948 placeFrontR(...) 949 placePartL(...) 950 placePartR(...) 951 placeSidearmL(...) 952 placeSidearmLfront(...) 953 placeSidearmR(...) 954 placeSidearmRfront(...) 955 ]]-- 956 957 dofile("includes/HeavyCruiserParts.lua") 958 placeAllSubParts(0, 0,0,0, 0,0,0) 959 ?> 920 960 921 961 <!-- <SpawnPoint team=0 position="0,-200,0" lookat="0,-200,-100" spawnclass=SpaceShip pawndesign=HeavyCruiser /> --> -
code/branches/HUD_HS16/data/levels/emptyLevel.oxw
r11497 r11499 1 1 <LevelInfo 2 name = " emptyLevel"2 name = "Empty level" 3 3 description = "A level with absolutely nothing in it." 4 4 tags = "test" … … 10 10 include("HUDTemplates3.oxo") 11 11 include("templates/lodInformation.oxt") 12 include("templates/HeavyCruiser.oxt")13 12 ?> 14 13 15 14 <?lua 16 15 include("templates/spaceshipEscort.oxt") 17 include("templates/endurancetest_template.oxt")18 16 ?> 19 17 … … 31 29 <Light type=directional position="0,0,0" direction="0.253, 0.593, -0.765" diffuse="1.0, 0.9, 0.9, 1.0" specular="1.0, 0.9, 0.9, 1.0"/> 32 30 <SpawnPoint team=0 position="-200,0,0" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipescort /> 33 34 <ModularSpaceShip velocity= "20,0,0" position="0,0,200" lookat= "0,0,0" health="1000" maxhealth="1000" initialhealth="1000">35 <templates>36 <Template link=endurance />37 </templates>38 </ModularSpaceShip>39 31 40 32 </Scene> -
code/branches/HUD_HS16/data/levels/events.oxw
r11497 r11499 57 57 --> 58 58 59 <DistanceTrigger name="test" position="0,0,0" target="Pawn" distance=25 stayActive="true" /> 60 <Backlight position="0,0,0" visible=true frequency=0.6 amplitude=3 material="Flares/lensflare" colour="1,0,1"/> 61 62 <NextQuestion question="Continue?" a1="yes" a2="no" > 63 <possibleQuestions> 64 <NextQuestion question="Are you sure?" a1="yep let me continue" a2="no actually not" /> 65 <NextQuestion question="Why?" a1="Got a dentist's appointment" a2="this sucks" > 66 <possibleQuestions> 67 <NextQuestion question="Are your teeth that bad mate?" a1="yep" a2="leave me alone godammit" /> 68 <NextQuestion question="You suck" a1="..." a2="Im going now okay" /> 69 </possibleQuestions> 70 </NextQuestion> 71 </possibleQuestions> 59 60 <!-- red --> 61 <!-- 62 Standard: 63 Direct event-connection between an event-listener (Billboard) and an event source (DistanceTrigger). 64 Every fired event of the source is mapped to the "visibility" state of the listener. 65 66 This is a 1:1 mapping between event-listener and event-source. 67 --> 68 <Billboard position="300,150,0" material="Examples/Flare" colour="1.0, 1.0, 1.0" visible=0> 69 <events> 70 <visibility> 71 <DistanceTrigger position="300,100,0" distance=25 target="ControllableEntity" /> 72 </visibility> 73 </events> 74 </Billboard> 75 76 <!-- HELLO THERE ................................................................ ITS ME --> 77 <DistanceTrigger name="test" position="0,0,0" target="Pawn" distance=25 stayActive="true"/> 78 <Backlight position="0,0,0" visible=true frequency=0.6 amplitude=3 material="Flares/lensflare" colour="1,0,0"/> 79 <DDDialogue string="Hello World3" > 72 80 <events> 73 81 <execute> … … 75 83 </execute> 76 84 </events> 77 </NextQuestion> 78 79 <DistanceTrigger name="test1" position="100,300,0" target="Pawn" distance=25 stayActive="true" /> 80 <Backlight position="100,300,0" visible=true frequency=0.6 amplitude=3 material="Flares/lensflare" colour="1,1,1"/> 81 82 <NextQuestion question="Wazzp bud?" a1="yes" a2="no" > 83 <possibleQuestions> 84 <NextQuestion question="Do you like fish" a1="yep let me continue" a2="no actually not" /> 85 <NextQuestion question="Whats your favourite pastime?" a1="Got a dentist's appointment" a2="this sucks" > 86 <possibleQuestions> 87 <NextQuestion question="Whatever?" a1="yep" a2="leave me alone godammit" /> 88 <NextQuestion question="Turtles then?" a1="..." a2="Im going now okay" /> 89 </possibleQuestions> 90 </NextQuestion> 91 </possibleQuestions> 92 <events> 93 <execute> 94 <EventListener event="test1" /> 95 </execute> 96 </events> 97 </NextQuestion> 98 99 100 <!-- red --> 101 <!-- 102 Standard: 103 Direct event-connection between an event-listener (Billboard) and an event source (DistanceTrigger). 104 Every fired event of the source is mapped to the "visibility" state of the listener. 105 106 This is a 1:1 mapping between event-listener and event-source. 107 --> 108 <Billboard position="300,150,0" material="Examples/Flare" colour="1.0, 1.0, 1.0" visible=0> 109 <events> 110 <visibility> 111 <DistanceTrigger position="300,100,0" distance=25 target="ControllableEntity" /> 112 </visibility> 113 </events> 114 </Billboard> 115 116 <!-- HELLO THERE ................................................................ ITS ME --> 117 <DistanceTrigger name="test" position="0,0,0" target="Pawn" distance=25 stayActive="true"/> 118 <Backlight position="0,0,0" visible=true frequency=0.6 amplitude=3 material="Flares/lensflare" colour="1,0,0"/> 119 <DialogueManager question="Hello World3"> 120 <events> 121 <execute> 122 <EventListener event="test" /> 123 </execute> 124 </events> 125 </DialogueManager> 126 85 </DDDialogue> 127 86 128 87 <!-- orange --> -
code/branches/HUD_HS16/data/overlays/HUDTemplates3.oxo
r11497 r11499 214 214 /> 215 215 216 <GUIOverlay 217 name = "Dialogue" 218 guiname = "Dialogue" 219 visible = "false" 220 /> 221 222 </OverlayGroup> 223 </Template> 216 </OverlayGroup> 217 </Template>
Note: See TracChangeset
for help on using the changeset viewer.