Changeset 11180 for code/branches/bindermFS16/data
- Timestamp:
- May 10, 2016, 12:09:09 PM (9 years ago)
- Location:
- code/branches/bindermFS16/data/gui
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/bindermFS16/data/gui/layouts/CampaignMenu.layout
r11173 r11180 13 13 <Property Name="Visible" Value="False"/> 14 14 <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}}" /> 17 16 <Event Name="Clicked" Function="CampaignMenu.Mission1Button_clicked"/> 18 17 </Window> -
code/branches/bindermFS16/data/gui/scripts/CampaignMenu.lua
r11173 r11180 26 26 27 27 function 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 29 30 button:setProperty("Visible", "True") 30 31 button:setProperty("Disabled", "False") 32 elseif (test==2) then 33 button:setProperty("Visible", "True") 34 button:setProperty("Disabled", "True") 31 35 else 36 button:setProperty("Visible", "False") 32 37 button:setProperty("Disabled", "True") 33 38 end
Note: See TracChangeset
for help on using the changeset viewer.