CQUI-Org / cqui

Civilization 6 - Chao's Quick UI. Reduce clicks and manage your empire faster!
MIT License
318 stars 64 forks source link

Unit purchase button disabled and tooltip added #587

Closed ghost closed 7 years ago

ghost commented 7 years ago

Resolves #551

This is accomplished by dimming the purchase button if there is no space in the city to spawn the unit.

A tooltip has also been added so if the purchase button is clicked the tooltip will explain there is no suitable location to place the unit.

Note: The purchase button is not actually disabled but is only dimmed so the tooltip will only appear if the button is clicked.

Screenshots: https://imgur.com/a/pr6Iw