You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As discussed on the Brotato Discord here, it would be good to expand the configs to add support for setting types, and perhaps min/max values too.
It adds a bit of extra complexity when parsing the default configs, but I think it's worth it, as it would make implementing a GUI much easier for modders/game developers.
Example:
Ideas for options:
All: type, default
Text: min_length, max_length, regex
Float/Int: min_value, max_value, step (ie. the amount the value should be incremented by in a mod's GUI)
The text was updated successfully, but these errors were encountered:
Ste — Yesterday at 13:45
we should also provide methods in ModLoaderConfig to get and set values in the config (with a save at the end), just so people don't have to use get_mod_config and do it themselves. then we can private all those methods as well
As discussed on the Brotato Discord here, it would be good to expand the configs to add support for setting types, and perhaps min/max values too.
It adds a bit of extra complexity when parsing the default configs, but I think it's worth it, as it would make implementing a GUI much easier for modders/game developers.
Example:
Ideas for options:
type
,default
min_length
,max_length
,regex
min_value
,max_value
,step
(ie. the amount the value should be incremented by in a mod's GUI)The text was updated successfully, but these errors were encountered: