HomeWildfire Games

Change the visuals of the counters in the top panel.

Description

Change the visuals of the counters in the top panel.

  • Abbreviate large numbers (fixes #6063).
  • Added popMax to the population counter.
  • Also show 0 gatherers, highlights and changes the font.

Patch by: @Langbart
Differential revision: https://code.wildfiregames.com/D3911
Reviewed by: @Angen, @Freagarach
Comments by: @asterix, @nwtour, @s0600204, @wraitii

Event Timeline

Silier added inline comments.May 23 2021, 2:00 PM
/ps/trunk/binaries/data/mods/public/gui/session/top_panel/CounterPopulation.js
26

0 should be colored as well

/ps/trunk/binaries/data/mods/public/gui/session/top_panel/CounterResource.js
20

same

Do you think I should color it in "gold" as well, or use the current style color ("200 200 200") and color it there instead of being defined in the styles.xml file?

Silier added a comment.EditedMay 23 2021, 7:22 PM

CounterPopulation.prototype.DefaultTotalGatherersColor

In rP25470#52062, @Angen wrote:

CounterPopulation.prototype.DefaultTotalGatherersColor

The different color for the "zeros" was chosen on purpose to make it clearer when there are no gatherers working on that number.