Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 11, 2014, 3:55:25 PM (10 years ago)
Author:
maxima
Message:

storymodeHS14 merged. You have to change the link to campaign.txt in Mission.cc

Location:
code/branches/presentationHS14
Files:
3 edited
3 copied

Legend:

Unmodified
Added
Removed
  • code/branches/presentationHS14

  • code/branches/presentationHS14/data/gui/layouts/SingleplayerMenu.layout

    r9782 r10175  
    5353            <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
    5454            <Property Name="UnifiedAreaRect" Value="{{0.6,0},{0.725,0},{0.75,0},{0.775,0}}" />
    55             <Event Name="Clicked" Function="SingleplayerMenu.SingleplayerBackButton_clicked"/>
     55            <Event Name="Clicked" Function="SingleplayerMenu.SingleplayerBackButton_clicked"/>
     56        </Window>
     57        <Window Type="MenuWidgets/Button" Name="orxonox/CampaignButton" >
     58            <Property Name="Text" Value="Campaign" />
     59            <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
     60            <Property Name="UnifiedAreaRect" Value="{{0.4,0},{0.8,0},{0.6,0},{0.85,0}}" />
     61            <Event Name="Clicked" Function="SingleplayerMenu.CampaignButton_clicked"/>
    5662        </Window>
    5763    </Window>
  • code/branches/presentationHS14/data/gui/scripts/SingleplayerMenu.lua

    r9348 r10175  
    22
    33local P = createMenuSheet("SingleplayerMenu")
    4 P.loadAlong = {"ShipSelectionMenu"}
     4P.loadAlong = {"ShipSelectionMenu","CampaignMenu"}
    55P.levelList = {}
    66P.activeTabIndexes = {}
     
    1919    P.createFilterTab("Tests", "test")
    2020    P.createFilterTab("Show All", nil)
     21   
    2122
    2223    -- update description and screenshot boxes
    2324    P.SingleplayerSelectionChanged()
    2425
    25     --buttons are arranged in a 1x3 matrix
     26    --buttons are arranged in a 1x4 matrix
    2627    P:setButton(1, 1, {
    2728            ["button"] = winMgr:getWindow("orxonox/SingleplayerStartButton"),
     
    3738            ["button"] = winMgr:getWindow("orxonox/SingleplayerBackButton"),
    3839            ["callback"]  = P.SingleplayerBackButton_clicked
     40    })
     41    P:setButton(1, 4,{
     42                ["button"] = winMgr:getWindow("orxonox/CampaignButton"),
     43                ["callback"] = P.CampaignButton_clicked
    3944    })
    4045end
     
    166171end
    167172
     173function P.CampaignButton_clicked(e)
     174        showMenuSheet("CampaignMenu", true)
     175end
     176
    168177return P
Note: See TracChangeset for help on using the changeset viewer.