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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.