BlindMindStudios / StarRuler2-Source

4X Space Strategy game Star Ruler 2's open source distribution.
http://starruler2.com
Other
1.46k stars 246 forks source link

When Terraforming a planet without enough money #61

Open jonesmz opened 5 years ago

jonesmz commented 5 years ago

The dialog to choose the type of planet to terraform to has the "Terraform" button disabled, as it should.

However, when enough money is available (e.g. next budget cycle) the button won't re-enable until the user selects a different type of terraforming, and then they can go back to their original selection.

It looks like the condition to disable / enable the button is only chosen when the terraforming type is selected. To address this, a callback on the quantity of available funds changing could be used to re-enable the button.

DaloLorn commented 5 years ago

Dunno, could be a bit too much extra updating for a limited amount of extra benefit... the budget can change pretty frequently at times.

jonesmz commented 5 years ago

shrug.

Just reporting the bug as I see it.

Just because the fix would be too expensive doesn't mean the bug isn't valid :-)

There's also quite a number of other UI widgets that do update based on budget changes. E.g. the shipbuilding menu.