Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 14, 2018, 10:01:05 AM (6 years ago)
Author:
linggj
Message:

12

Location:
code/branches/WorldMap_HS18/data
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • code/branches/WorldMap_HS18/data/gui/layouts/CampaignMenu.layout

    r12053 r12101  
    77        <Property name="Area" value="{{0,0},{0,0},{1.0,0},{1.0,0}}" />
    88        <Property name="BackgroundEnabled" value="False" />
    9        
     9             
     10        <Window name="ForwardText" type="MenuWidgets/Button">
     11            <Property name="Text" value="Forward" />
     12            <Property name="Visible" value="True" />
     13            <Property name="Area" value="{{0.1,0},{0.6,0},{0.3,0},{0.65,0}}" />
     14            <Event function="CampaignMenu.forwardButton_clicked" name="Clicked" />
     15        </Window>
     16
     17        <Window name="ForwardButton" type="MenuWidgets/JuuButton">
     18            <Property name="Visible" value="True" />
     19            <Property name="MaxSize" value="{{1,0},{1,0}}" />
     20            <Property name="Area" value="{{0.1,0},{0.75,0},{0.25,0},{0.95,0}}" />
     21            <Event function="CampaignMenu.forwardButton_clicked" name="Clicked" />
     22        </Window>
    1023
    1124        <Window name="Mission1Text" type="MenuWidgets/Button">
     
    1528            <Event function="CampaignMenu.Mission1Button_clicked" name="Clicked" />
    1629        </Window>
     30
    1731        <Window name="Mission1Button" type="MenuWidgets/JuuButton">
    1832            <Property name="Visible" value="False" />
     
    2943            <Event function="CampaignMenu.Mission2Button_clicked" name="Clicked" />
    3044        </Window>
     45       
    3146        <Window name="Mission2Button" type="MenuWidgets/JuuButton">
    3247            <Property name="Visible" value="True" />
     
    149164            <Event function="CampaignMenu.CampaignMenuBackButton_clicked" name="Clicked" />
    150165        </Window>
     166
     167
    151168        <Window name="CampaignMenuCongratulation" type="MenuWidgets/StaticText">
    152169            <Property name="Text" value="Campaign Completed!!!" />
  • code/branches/WorldMap_HS18/data/gui/scripts/CampaignMenu.lua

    r12053 r12101  
    7575end
    7676
     77function P.forwardButton_clicked(e)
     78    P.loadMap()
     79end
     80
    7781function P.Mission1Button_clicked(e)
     82    P.loadLevel(P.FindLevel(0))
     83end
     84function P.KeyPressed(e)
    7885    P.loadLevel(P.FindLevel(0))
    7986end
     
    116123end
    117124
     125function P.loadMap()
     126    orxonox.execute("change Game  NC_StoryModeLevel")
     127end
     128
    118129function P.FindLevel(index)
    119130    local filename = orxonox.LevelManager:getInstance():getCampaignMission(index)
  • code/branches/WorldMap_HS18/data/levels/NC_StoryModeLevel.oxw

    r12058 r12101  
    1 a<LevelInfo
     1<LevelInfo
    22 name = "NC StoryMode"
    33 description = "A level in which the Campaign Menu is defined, which opens other levels."
  • code/branches/WorldMap_HS18/data/levels/StoryModeMap.oxw

    r12059 r12101  
    3737       
    3838         <Model position="550,300,0" mesh="assff.mesh" scale=20  visible="true" orientation="-0.015,0.091,0.038,-0.995"/>
    39                <Model position="600,370,0" mesh="Coordinates.mesh" scale=10 />
     39        <Model position="600,370,0" mesh="Coordinates.mesh" scale=10 />
    4040        <Billboard colour="1,1,0.05" position="600,370,-80"  material="Flares/lensflare" scale=4.5 />
    4141       
  • code/branches/WorldMap_HS18/data/levels/StoryModeMapDev.oxw

    r12060 r12101  
    3838         
    3939       
    40          <Model position="550,300,0" mesh="assff.mesh" scale=20  visible="true" orientation="-0.015,0.091,0.038,-0.995"/>
    41                <Model position="600,370,0" mesh="Coordinates.mesh" scale=10 />
     40        <Model position="550,300,0" mesh="assff.mesh" scale=20  visible="true" orientation="-0.015,0.091,0.038,-0.995"/>
     41        <Model position="600,370,0" mesh="Coordinates.mesh" scale=10 />
    4242        <Billboard colour="1,1,0.05" position="600,370,-80"  material="Flares/lensflare" scale=4.5 />
    4343       
     
    7777    </templates>
    7878    <controller>
    79         <StoryModeController accuracy=10 team=3>
    80             <waypoints>
    81                 <Model mesh="cube.mesh" scale=8 position="100,350,-250" />
    82                 <Model mesh="cube.mesh" scale=8 position="-900,-400,-1000" />
    83                 <Model mesh="cube.mesh" scale=8 position="0,500,0" />
    84                 <StaticEntity position="0,0,0" />
    85             </waypoints>
    86         </StoryModeController>
     79       
    8780    </controller>
    8881</SpaceShip>
    89 
    9082
    9183
  • code/branches/WorldMap_HS18/data/levels/templates/StoryMode.oxt

    r11783 r12101  
    11<Template name=StoryMode>
    2   <Pawn
     2  <StoryModeController
    33   hudtemplate            = StoryModeMap
    44  />
Note: See TracChangeset for help on using the changeset viewer.