Skip to content

Add sidebar stat suffixes and compact value formatting toggle in options#9868

Merged
LocalIdentity merged 2 commits into
PathOfBuildingCommunity:devfrom
KenManDev:add-stat-suffixes-and-compact-values-toggle
Jul 24, 2026
Merged

Add sidebar stat suffixes and compact value formatting toggle in options#9868
LocalIdentity merged 2 commits into
PathOfBuildingCommunity:devfrom
KenManDev:add-stat-suffixes-and-compact-values-toggle

Conversation

@KenManDev

Copy link
Copy Markdown
Contributor

Adds support for optional suffixes on sidebar display values, such as showing (Immune) or (Guard) after a formatted stat value when a condition is met.

Adds an Options menu toggle to compact large sidebar values, for example displaying 15,000,000 as 15M.

Fixes # .

Description of the problem being solved:

Some sidebar values can be difficult to read at a glance when they become very large. This is especially noticeable for values like DPS and Effective Hit Pool, where full numeric formatting can take up a lot of horizontal space. This also creates a problem if trying to display additional information next to these values, such as (Guard) or (Immune).

This change adds an optional compact display mode for large sidebar values while preserving the existing formatting behavior by default.

This also adds reusable suffix support for sidebar stats, allowing certain values to display short contextual labels when specific conditions are active. For example, Effective Hit Pool can display (Guard) when a guard skill is active, similar to how Chaos Resistance can display (Immune) when Chaos Inoculation is active.

An intentionally exaggerated Energy Shield value was used to verify compact formatting and suffix display behavior. The 15,000,000 Energy Shield shown in testing screenshots was used only to make the compact-value behavior easier to confirm, and is not intended to represent a normal build value. If 15,000,000 Energy Shield ever becomes common, this can be revisited.

Steps taken to verify a working solution:

  • Verified that the compact values option can be toggled from the Options menu.
  • Verified the new option can be saved and loaded.
  • Verified that existing sidebar values continue to display normally when compact values are disabled.
  • Verified that large sidebar values are compacted when the option is enabled.
  • Verified that conditional suffixes only display when their suffix condition is met.
  • Verified that overcap suffixes can be displayed or hidden.
  • Verified that Effective Hit Pool displays the guard suffix only when a guard skill is active.

Link to a build that showcases this PR:

https://maxroll.gg/poe/pob/n02g90hl

Before screenshot:

image

After screenshot:

image

Adds the ability to add a suffix to sidebar display

Adds toggle in Options menu to compact values in sidebar display
@majochem

Copy link
Copy Markdown
Contributor

Have you tested this with the changes from #9807 ? I vaguely remember leaving a comment in the code that something (small) might have to be changed, if further options were added.

@KenManDev

KenManDev commented May 23, 2026

Copy link
Copy Markdown
Contributor Author

Have you tested this with the changes from #9807 ? I vaguely remember leaving a comment in the code that something (small) might have to be changed, if further options were added.

I created my branch from the latest dev branch about 3 days ago, so it should already include the changes from #9807 if that was merged around 2 weeks ago.

That said, I haven’t specifically tested against that change yet. I’ll take a look later this evening and get back to you 👍

Edit:
image

It looks like the single option added here fit without issue, but future options may require adjusting the options window size/layout.

Edit2:

image image

Tested adding way more options, and it appears it adjusts on its own ok 👍

Max-hit values now show (Guard) or (Immune), with immunity taking priority.
Fixed compact formatting applying color/number formatting twice.
Compact values remain disabled by default
Added compact support for player pools and minion damage values.
Cleaned up the option label and formatting.
Added focused regression tests
@LocalIdentity LocalIdentity added the enhancement New feature, calculation, or mod label Jul 23, 2026

@LocalIdentity LocalIdentity left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I fixed some issues and made it apply to minion stats too + max hit values
It was also turned on by default, which I changed to be off by default

@LocalIdentity
LocalIdentity merged commit 927ba50 into PathOfBuildingCommunity:dev Jul 24, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature, calculation, or mod

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants