Cloth Config API (Fabric/Forge/NeoForge)

Cloth Config API (Fabric/Forge/NeoForge)

168M Downloads

(SUGGESTION) Ability to use suppliers for displayed config values

AViewFromTheTop opened this issue · 0 comments

commented

Hello!! It’s me again, the one who was mixed up about the config issue a short while ago. Luckily that’s all been fixed now.
Either way, this is essentially a part 2 to that. I wanted to suggest the ability to use suppliers for the displayed config value as that would help tremendously with our config syncing, seeing the values update live (like how you have the display/enabled requirements in a tick method) instead of needing to close and re-open the config GUI to see the updated value. I think this could be done by setting the displayed value in that tick method, which ticks the supplier to update it. The current methods could be kept with some slight alterations, and a new one could be implemented for setting a custom supplier.
I’m not sure if it’s worth your time or not but it would be cool to see implemented for our use case.
-Thank you!