Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 10, 2016, 12:09:09 PM (8 years ago)
Author:
binderm
Message:

logic to show only certain levels and not all together, also not all shown levels have to be activated

Location:
code/branches/bindermFS16/data/gui
Files:
2 edited

Legend:

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

    r11173 r11180  
    1313            <Property Name="Visible" Value="False"/>
    1414            <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
    15             <Property Name="UnifiedAreaRect" Value="{{0.35,0},{0.1,0},{0.65,0},{0.15,0}}" />
    16             <Property Name="Disabled" Value="False" />
     15            <Property Name="UnifiedAreaRect" Value="{{0.01,0},{0.01,0},{0.3,0},{0.06,0}}" />
    1716            <Event Name="Clicked" Function="CampaignMenu.Mission1Button_clicked"/>
    1817        </Window>
  • code/branches/bindermFS16/data/gui/scripts/CampaignMenu.lua

    r11173 r11180  
    2626
    2727function P.updateButton(index, button)
    28     if (orxonox.LevelManager:getInstance():missionactivate(index)) then
     28    local test =orxonox.LevelManager:getInstance():missionactivate(index)
     29    if (test==1) then
    2930        button:setProperty("Visible", "True")
    3031        button:setProperty("Disabled", "False")
     32    elseif (test==2) then
     33        button:setProperty("Visible", "True")
     34        button:setProperty("Disabled", "True")
    3135    else
     36        button:setProperty("Visible", "False")
    3237        button:setProperty("Disabled", "True")
    3338    end
Note: See TracChangeset for help on using the changeset viewer.