shedaniel / cloth-config

Client-Sided API for Minecraft 1.14
Other
185 stars 70 forks source link

(SUGGESTION) Ability to use suppliers for displayed config values #235

Open AViewFromTheTop opened 9 months ago

AViewFromTheTop commented 9 months ago

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!