Changeset 12053
- Timestamp:
- Oct 24, 2018, 11:32:57 AM (6 years ago)
- Location:
- code/branches/WorldMap_HS18
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/WorldMap_HS18/data/gui/layouts/CampaignMenu.layout
r11803 r12053 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 9 11 <Window name="Mission1Text" type="MenuWidgets/Button"> 10 12 <Property name="Text" value="Mission One" /> … … 19 21 <Event function="CampaignMenu.Mission1Button_clicked" name="Clicked" /> 20 22 </Window> 23 21 24 <Window name="Mission2Text" type="MenuWidgets/Button"> 22 25 <Property name="Text" value="Fight in our Back" /> 23 <Property name="Visible" value=" False" />26 <Property name="Visible" value="True" /> 24 27 <Property name="Area" value="{{0.35,0},{0.6,0},{0.55,0},{0.65,0}}" /> 25 28 <Property name="Disabled" value="True" /> … … 27 30 </Window> 28 31 <Window name="Mission2Button" type="MenuWidgets/JuuButton"> 29 <Property name="Visible" value=" False" />32 <Property name="Visible" value="True" /> 30 33 <Property name="MaxSize" value="{{1,0},{1,0}}" /> 31 34 <Property name="Area" value="{{0.4,0},{0.7,0},{0.5,0},{0.85,0}}" /> … … 33 36 <Event function="CampaignMenu.Mission2Button_clicked" name="Clicked" /> 34 37 </Window> 38 35 39 <Window name="Mission3Text" type="MenuWidgets/Button"> 36 40 <Property name="Text" value="Pirate Attack" /> … … 47 51 <Event function="CampaignMenu.Mission3Button_clicked" name="Clicked" /> 48 52 </Window> 53 49 54 <Window name="Mission4Text" type="MenuWidgets/Button"> 50 55 <Property name="Text" value="Trip to Area 51" /> … … 61 66 <Event function="CampaignMenu.Mission4Button_clicked" name="Clicked" /> 62 67 </Window> 68 63 69 <Window name="Mission5Text" type="MenuWidgets/Button"> 64 70 <Property name="Text" value="Area 51 under Fire" /> … … 75 81 <Event function="CampaignMenu.Mission5Button_clicked" name="Clicked" /> 76 82 </Window> 83 77 84 <Window name="Mission6Text" type="MenuWidgets/Button"> 78 85 <Property name="Text" value="Escape the Bastards" /> … … 85 92 <Property name="Visible" value="False" /> 86 93 <Property name="MaxSize" value="{{1,0},{1,0}}" /> 94 87 95 <Property name="Area" value="{{0.6,0},{0.17,0},{0.65,0},{0.27,0}}" /> 88 <Property name="Disabled" value="True" /> 96 97 <Property name="Disabled" value="True" /> 89 98 <Event function="CampaignMenu.Mission6Button_clicked" name="Clicked" /> 90 99 </Window> … … 96 105 <Property name="Area" value="{{0.4,0},{0.025,0},{0.6,0},{0.075,0}}" /> 97 106 </Window> 107 98 108 <Window name="Mission7Button" type="MenuWidgets/JuuButton"> 99 109 <Property name="Visible" value="False" /> … … 117 127 <Event function="CampaignMenu.Mission8Button_clicked" name="Clicked" /> 118 128 </Window> 129 119 130 <Window name="Mission9Text" type="MenuWidgets/Button"> 120 131 <Property name="Text" value="Retaliation" /> … … 131 142 <Event function="CampaignMenu.Mission9Button_clicked" name="Clicked" /> 132 143 </Window> 144 133 145 <Window name="CampaignMenuBackButton" type="MenuWidgets/Button"> 134 146 <Property name="Text" value="Back" /> … … 146 158 <Property name="Area" value="{{0.4,0},{0.15,0},{0.6,0},{0.2,0}}" /> 147 159 </Window> 160 148 161 </Window> 149 162 </GUILayout> -
code/branches/WorldMap_HS18/data/gui/scripts/CampaignMenu.lua
r11805 r12053 33 33 end 34 34 end 35 35 --Updated Buttons der levels 36 36 function P.updateButton(index, button) 37 --Wenn genuegend Levels vorhanden sind, wird der Butten angezeigt 37 38 if (P.shouldDisplayButton(index)) then 38 39 button:setProperty("Visible", "True") 39 40 41 --wenn genuegend levels bestanden sind, wird er benutzbar 40 42 if (P.shouldEnableButton(index)) then 41 43 button:setProperty("Disabled", "False") 42 44 end 43 45 end 46 end 47 48 function P.Test(e) 49 orxonox.execute("startMainMenu") 44 50 end 45 51 -
code/branches/WorldMap_HS18/data/levels/StoryModeMap.oxw
r11783 r12053 29 29 30 30 31 <StaticEntity position="0,0,0" direction="0,0, 0" >31 <StaticEntity position="0,0,0" direction="0,0,-1" > 32 32 <attached> 33 33 34 <Model position="600,370,0" mesh="planets/moon.mesh" scale=100 /> 34 <Model position="600,370,0" mesh="planets/moon.mesh" scale=100 visible="false" /> 35 <Model position="550,300,0" mesh="assff.mesh" scale=20 visible="true" orientation="-0.015,0.091,0.038,-0.995"/> 36 <Model position="600,370,0" mesh="Coordinates.mesh" scale=10 /> 35 37 <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 /> 38 39 40 <Model position="100,350,-250" mesh="planets/moon.mesh" scale=100 visible="false"/> 41 <Model position="50,300,-250" mesh="assff.mesh" scale=20 visible="true" orientation="-0.015,0.091,0.038,-0.995"/> 38 42 <Billboard colour="1,1,0.05" position="100,350,-330" material="Flares/lensflare" scale=4.5 /> 39 43 … … 66 70 <SpawnPoint position="000.000, 000.000, 1000.000" orientation="0, 0, 0, -1" pawndesign=StoryMode /> 67 71 72 68 73 </Scene> 69 74 </Level> -
code/branches/WorldMap_HS18/data/levels/templates/StoryModeEscort.oxt
r11783 r12053 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/WorldMap_HS18/src/orxonox/LevelManager.cc
r11071 r12053 63 63 RegisterObject(LevelManager); 64 64 this->setConfigValues(); 65 65 orxout(status)<<" a "; 66 66 // check override 67 67 if (!CommandLineParser::getArgument("level")->hasDefaultValue()) … … 257 257 // Get all files matching the level criteria 258 258 Ogre::StringVectorPtr levels = Resource::findResourceNames("*.oxw"); 259 259 orxout(internal_info) << levels << "itse me"; 260 260 // We only want to load as little as possible 261 261 ClassTreeMask mask; -
code/branches/WorldMap_HS18/src/orxonox/gametypes/StoryMode.cc
r11783 r12053 47 47 StoryMode::StoryMode(Context* context) : Gametype(context) 48 48 { 49 orxout(internal_info) << levels << "itse me"; 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.