CQUI-Org / cqui

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

Real housing fix, lowercase City panel text to fit housing info #556

Closed bollbas closed 7 years ago

bollbas commented 7 years ago

Fixes issue when the game shows wrong "real housing" values sometimes on citybanners when waiting for the next turn or for a short period of time when load an autosaved game. Now we can always see correct values on citybanners. When load an autosaved game it doesn't show growth info at all for a short period of time instead of showing wrong values. City panel text is now lowercase to fit info fields including housing capacity info when it contains two-digit fractional numbers (10/10.5 for example).

Update: all 5 affected files reworked. Now we don't calculate values for the second time when open cityview or reportscreen as soon as it's already done for citybanner and we get these values via lua.events.

bollbas commented 7 years ago

Citypanel, citypaneloverview and reportscreen contain the same functions and lua.events here. Can it be simplified?

chaorace commented 7 years ago

@bolbass Yes, I see no harm in unifying these functions