freeciv21
freeciv21 copied to clipboard
grey out the buy button on city's first turn
Is your feature request related to a problem? Please describe. It is not clear that cities can't buy their production on the turn they're created.
Describe the solution you'd like Grey out the buying button on the city's first turn. Add a tool-tip on hovering that explains the city can't rush production on the turn it is built (text can be flourished to look nicer e.g. "Your citizens are still busy settling down, they can't rush production this turn!")
https://github.com/longturn/freeciv21/blob/2e8becf3955bf6b10d8b6a0f66dfa507d86256b1/client/citydlg.cpp#L1490-L1496
It looks like buy_cost
comes straight from the server (and is just some very large constant when buying is not possible). I would support a patch where the server sends the "no buy" constant on the city's first turn. This way the client doesn't need to make assumptions about the rules.
Does that mean it is time to call Wieder? :sweat_smile: