Add sidebar stat suffixes and compact value formatting toggle in options#9868
Conversation
Adds the ability to add a suffix to sidebar display Adds toggle in Options menu to compact values in sidebar display
|
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 👍 It looks like the single option added here fit without issue, but future options may require adjusting the options window size/layout. Edit2:
Tested adding way more options, and it appears it adjusts on its own ok 👍 |



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,000as15M.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,000Energy 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. If15,000,000Energy Shield ever becomes common, this can be revisited.Steps taken to verify a working solution:
Link to a build that showcases this PR:
https://maxroll.gg/poe/pob/n02g90hl
Before screenshot:
After screenshot: