Changeset 12180 for code/branches/Merge_HS18
- Timestamp:
- Dec 11, 2018, 2:52:30 PM (6 years ago)
- Location:
- code/branches/Merge_HS18
- Files:
-
- 12 edited
- 9 copied
Legend:
- Unmodified
- Added
- Removed
-
code/branches/Merge_HS18
- Property svn:mergeinfo changed
/code/branches/WorldMap_HS18 (added) merged: 12036,12053-12055,12058-12060,12101,12106,12110,12131,12151-12152,12166
- Property svn:mergeinfo changed
-
code/branches/Merge_HS18/data/gui/layouts/CampaignMenu.layout
r11803 r12180 7 7 <Property name="Area" value="{{0,0},{0,0},{1.0,0},{1.0,0}}" /> 8 8 <Property name="BackgroundEnabled" value="False" /> 9 10 11 12 9 13 <Window name="Mission1Text" type="MenuWidgets/Button"> 10 14 <Property name="Text" value="Mission One" /> … … 13 17 <Event function="CampaignMenu.Mission1Button_clicked" name="Clicked" /> 14 18 </Window> 19 15 20 <Window name="Mission1Button" type="MenuWidgets/JuuButton"> 16 21 <Property name="Visible" value="False" /> … … 19 24 <Event function="CampaignMenu.Mission1Button_clicked" name="Clicked" /> 20 25 </Window> 26 21 27 <Window name="Mission2Text" type="MenuWidgets/Button"> 22 28 <Property name="Text" value="Fight in our Back" /> 23 <Property name="Visible" value=" False" />29 <Property name="Visible" value="True" /> 24 30 <Property name="Area" value="{{0.35,0},{0.6,0},{0.55,0},{0.65,0}}" /> 25 31 <Property name="Disabled" value="True" /> 26 32 <Event function="CampaignMenu.Mission2Button_clicked" name="Clicked" /> 27 33 </Window> 34 28 35 <Window name="Mission2Button" type="MenuWidgets/JuuButton"> 29 <Property name="Visible" value=" False" />36 <Property name="Visible" value="True" /> 30 37 <Property name="MaxSize" value="{{1,0},{1,0}}" /> 31 38 <Property name="Area" value="{{0.4,0},{0.7,0},{0.5,0},{0.85,0}}" /> … … 33 40 <Event function="CampaignMenu.Mission2Button_clicked" name="Clicked" /> 34 41 </Window> 42 35 43 <Window name="Mission3Text" type="MenuWidgets/Button"> 36 44 <Property name="Text" value="Pirate Attack" /> … … 47 55 <Event function="CampaignMenu.Mission3Button_clicked" name="Clicked" /> 48 56 </Window> 57 49 58 <Window name="Mission4Text" type="MenuWidgets/Button"> 50 59 <Property name="Text" value="Trip to Area 51" /> … … 61 70 <Event function="CampaignMenu.Mission4Button_clicked" name="Clicked" /> 62 71 </Window> 72 63 73 <Window name="Mission5Text" type="MenuWidgets/Button"> 64 74 <Property name="Text" value="Area 51 under Fire" /> … … 75 85 <Event function="CampaignMenu.Mission5Button_clicked" name="Clicked" /> 76 86 </Window> 87 77 88 <Window name="Mission6Text" type="MenuWidgets/Button"> 78 89 <Property name="Text" value="Escape the Bastards" /> … … 85 96 <Property name="Visible" value="False" /> 86 97 <Property name="MaxSize" value="{{1,0},{1,0}}" /> 98 87 99 <Property name="Area" value="{{0.6,0},{0.17,0},{0.65,0},{0.27,0}}" /> 88 <Property name="Disabled" value="True" /> 100 101 <Property name="Disabled" value="True" /> 89 102 <Event function="CampaignMenu.Mission6Button_clicked" name="Clicked" /> 90 103 </Window> … … 96 109 <Property name="Area" value="{{0.4,0},{0.025,0},{0.6,0},{0.075,0}}" /> 97 110 </Window> 111 98 112 <Window name="Mission7Button" type="MenuWidgets/JuuButton"> 99 113 <Property name="Visible" value="False" /> … … 117 131 <Event function="CampaignMenu.Mission8Button_clicked" name="Clicked" /> 118 132 </Window> 133 119 134 <Window name="Mission9Text" type="MenuWidgets/Button"> 120 135 <Property name="Text" value="Retaliation" /> … … 131 146 <Event function="CampaignMenu.Mission9Button_clicked" name="Clicked" /> 132 147 </Window> 148 133 149 <Window name="CampaignMenuBackButton" type="MenuWidgets/Button"> 134 150 <Property name="Text" value="Back" /> … … 137 153 <Event function="CampaignMenu.CampaignMenuBackButton_clicked" name="Clicked" /> 138 154 </Window> 155 156 139 157 <Window name="CampaignMenuCongratulation" type="MenuWidgets/StaticText"> 140 158 <Property name="Text" value="Campaign Completed!!!" /> … … 146 164 <Property name="Area" value="{{0.4,0},{0.15,0},{0.6,0},{0.2,0}}" /> 147 165 </Window> 166 148 167 </Window> 149 168 </GUILayout> -
code/branches/Merge_HS18/data/gui/scripts/CampaignMenu.lua
r11805 r12180 2 2 3 3 local P = createMenuSheet("CampaignMenu") 4 4 5 5 6 function P:onShow() … … 33 34 end 34 35 end 35 36 --Updated Buttons der levels 36 37 function P.updateButton(index, button) 38 --Wenn genuegend Levels vorhanden sind, wird der Butten angezeigt 37 39 if (P.shouldDisplayButton(index)) then 38 40 button:setProperty("Visible", "True") 39 41 42 --wenn genuegend levels bestanden sind, wird er benutzbar 40 43 if (P.shouldEnableButton(index)) then 41 44 button:setProperty("Disabled", "False") 42 45 end 43 46 end 47 end 48 49 function P.Test(e) 50 orxonox.execute("startMainMenu") 44 51 end 45 52 … … 69 76 end 70 77 78 79 80 71 81 function P.Mission1Button_clicked(e) 82 P.loadLevel(P.FindLevel(0)) 83 end 84 function P.KeyPressed(e) 72 85 P.loadLevel(P.FindLevel(0)) 73 86 end … … 110 123 end 111 124 125 function P.loadMap() 126 orxonox.execute("changeGame dynamicMatch.oxw") 127 hideAllMenuSheets() 128 end 129 112 130 function P.FindLevel(index) 113 131 local filename = orxonox.LevelManager:getInstance():getCampaignMission(index) -
code/branches/Merge_HS18/data/levels/StoryModeMap.oxw
r11783 r12180 11 11 include("StoryModeHUD.oxo") 12 12 include("templates/lodInformation.oxt") 13 include("templates/spaceshipAssff.oxt") 13 14 include("templates/StoryMode.oxt") 14 15 ?> … … 21 22 <Template link=lodtemplate_default /> 22 23 </templates> 24 25 26 23 27 <?lua include("includes/notifications.oxi") ?> 24 28 … … 27 31 skybox = "Orxonox/Starbox" 28 32 > 33 34 35 36 29 37 30 31 <StaticEntity position="0,0,0" direction="0,0,0" > 38 <StaticEntity position="0,0,0" direction="0,0,-1" > 32 39 <attached> 33 40 34 <Model position="600,370,0" mesh="planets/moon.mesh" scale=100 /> 41 <Model name="a" position="550,300,0" mesh="planets/moon.mesh" scale=100 visible="true" /> 42 <Billboard colour="1,0,0.05" position="550,300,-80" material="Flares/lensflare" scale=4.5 /> 43 44 <Model name="a" position="600,370,0" mesh="planets/moon.mesh" scale=100 visible="true" /> 45 46 47 <Model position="550,300,0" mesh="assff.mesh" scale=20 visible="false" orientation="-0.015,0.091,0.038,-0.995"/> 48 35 49 <Billboard colour="1,1,0.05" position="600,370,-80" material="Flares/lensflare" scale=4.5 /> 36 37 <Model position="100,350,-250" mesh="planets/moon.mesh" scale=100 /> 50 51 52 <Model position="100,350,-250" mesh="planets/moon.mesh" scale=100 visible="true"/> 53 38 54 <Billboard colour="1,1,0.05" position="100,350,-330" material="Flares/lensflare" scale=4.5 /> 39 55 40 <Model position="-600,250,-500" mesh="planets/moon.mesh" scale=100 />56 <Model position="-600,250,-500" mesh="planets/moon.mesh" scale=100 visible="true"/> 41 57 <Billboard colour="1,1,0.05" position="-600,250,-580" material="Flares/lensflare" scale=5 /> 42 58 … … 62 78 </StaticEntity> 63 79 80 81 64 82 <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"/> 65 83 66 <SpawnPoint position="000.000, 000.000, 1000.000" orientation="0, 0, 0, -1" pawndesign=StoryMode /> 84 <SpawnPoint position="000.000, 000.000, 1000.000" orientation="0, 0, 0, -1" spawnclass=StoryMode pawndesign=StoryMode /> 85 67 86 68 87 </Scene> -
code/branches/Merge_HS18/data/levels/templates/StoryMode.oxt
r11783 r12180 1 1 <Template name=StoryMode> 2 < Pawn2 <StoryModeController 3 3 hudtemplate = StoryModeMap 4 4 /> -
code/branches/Merge_HS18/data/levels/templates/StoryModeEscort.oxt
r11783 r12180 43 43 </engines> 44 44 <attached> 45 <Model position="0,0,0" yaw=90 pitch=0 roll=0 scale= 4mesh="escortShip.mesh" />45 <Model position="0,0,0" yaw=90 pitch=0 roll=0 scale=20 mesh="escortShip.mesh" /> 46 46 <Model position="0,0,0" yaw=180 pitch=90 roll=0 scale=4 mesh="escortWeapon.mesh" /> 47 47 <!--Model mesh="cube.mesh" mass=10 position="0,0,3" scale3D="10,4,8" /> -
code/branches/Merge_HS18/data/overlays/StoryModeHUD.oxo
r11783 r12180 11 11 </OverlayGroup> 12 12 </Template> 13 <Template name="spectatorhud"> 14 <OverlayGroup name = "spectatorhud" scale = "1, 1"> 15 </OverlayGroup> 16 </Template> -
code/branches/Merge_HS18/src/modules/flappyorx/FlappyOrxShip.cc
r11781 r12180 38 38 #include "graphics/Camera.h" 39 39 #include "graphics/ParticleSpawner.h" 40 #include "worldentities/pawns/SpaceShip.h" 40 41 #include <math.h> 41 42 #include <ctime> -
code/branches/Merge_HS18/src/modules/towerdefense/TowerDefense.cc
r11716 r12180 272 272 if (hasStarted() == false || player_ == nullptr) 273 273 { 274 orxout(internal_warning) << "Heere" << endl; 274 275 return; 275 276 } 277 278 orxout(internal_warning) << "2" << endl; 276 279 timeUntilNextWave_ -= dt; 277 280 timeSinceLastSpawn_ += dt; … … 280 283 if (selecter != nullptr && selecter->buildTower_ == true) 281 284 { 285 orxout(internal_warning) << "3" << endl; 282 286 selecter->buildTower_ = false; 283 287 -
code/branches/Merge_HS18/src/modules/towerdefense/TowerDefenseSelecter.cc
r11071 r12180 108 108 void TowerDefenseSelecter::moveFrontBack(const Vector2& value) 109 109 { 110 110 111 if (value.x > 0) 111 112 { -
code/branches/Merge_HS18/src/orxonox/controllers/CMakeLists.txt
r12028 r12180 1 1 ADD_SOURCE_FILES(ORXONOX_SRC_FILES 2 2 Controller.cc 3 StoryModeController.cc 4 SMCoord.cc 3 5 HumanController.cc 4 6 NewHumanController.cc … … 20 22 MasterController.cc 21 23 ArrowController.cc; 22 AutonomousDroneController.cc; 24 AutonomousDroneController.cc; 25 StoryModeController.cc; 23 26 24 27 ) -
code/branches/Merge_HS18/src/orxonox/gametypes/StoryMode.cc
r11783 r12180 47 47 StoryMode::StoryMode(Context* context) : Gametype(context) 48 48 { 49 49 50 RegisterObject(StoryMode); 50 51 … … 65 66 void StoryMode::exit() 66 67 { 67 orxout() << "s funktioniert"<< endl;68 68 69 for (StoryMode* mission : ObjectList<StoryMode>()) 69 70 { //TODO: make sure that only the desired mission is ended !! This is a dirty HACK, that would end ALL missions!
Note: See TracChangeset
for help on using the changeset viewer.