s7092910/PlayerStatController

Feature Request: Formatting support

RyanfaeScotland opened this issue · 0 comments

Hi Christopher,

Just getting started with this mod as part of a tweak I'm working on for AGF's Hud Plus mod. It looks really good; I've managed to add an additional binding without too much effort and have successfully pulled that into the UI adjustments I've made.

I've not had a lot of time to look into this feature I'm about to request, so my apologies if it is something that already exists or is capable via other means. I figured I'd ask about it first so that you can maybe give a little bit of input before I go too far down this rabbit hole!

Would it be possible to add formatting support to the binding definitions?

Use Case
I have a value that is stored in game as a decimal, and I want to add a binding so that modders can access it. However, some modders may want it to 2 decimal places, others to 1, others again to 0. It would be useful if, rather than me providing multiple bindings for different formats, or using aliases to provide them, if users could pass in the formatting they want and have the binding automatically use it.

I'm happy to create a fork and work on an implementation of this, but was curious if it is something you've already considered?