Skip to content

Commit

Permalink
The base building button no longer shows up if the automatic battles …
Browse files Browse the repository at this point in the history
…one is marked
  • Loading branch information
Andrettin committed Apr 10, 2016
1 parent 2d05784 commit 914d58d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scripts/grand_strategy/grand_strategy.lua
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,7 @@ function RunGrandStrategyGameSetupMenu()
function()
wyr.preferences.AutomaticBattles = automatic_battles:isMarked()
SavePreferences()
battle_base_building:setVisible(wyr.preferences.AutomaticBattles == false)
end
)
automatic_battles:setMarked(wyr.preferences.AutomaticBattles)
Expand All @@ -314,6 +315,7 @@ function RunGrandStrategyGameSetupMenu()
end
)
battle_base_building:setMarked(wyr.preferences.GrandStrategyBattleBaseBuilding)
battle_base_building:setVisible(wyr.preferences.AutomaticBattles == false)

no_randomness = menu:addImageCheckBox(_("No Randomness"), offx + 40, offy + 10 + 220 + 3,
function()
Expand Down

0 comments on commit 914d58d

Please sign in to comment.