ModConfigApi
An Api that enables creating a mod config accessible from the "Mods" menu.
Description
The ModConfigApi manages mod configs. It's only method creates a ConfigBuilder that offers methods for building a mod config that is automatically saved into a given file by the ModConfigApi. See ConfigBuilder for a detailed explanation on the usage.
Methods
ConfigBuilder | create_config ( String config_file = "user://mod_config/" + mod_meta["unique_id"].to_lower().replace(" ", "").replace(".", "_") + ".json", String title = mod_meta["name"], String mod_id = mod_meta["unique_id"] ) |
Method Descriptions
ConfigBuilder create_config ( String config_file = "user://mod_config/" + mod_meta["unique_id"].to_lower().replace(" ", "").replace(".", "_") + ".json", String title = mod_meta["name"], String mod_id = mod_meta["unique_id"] ):
Creates a new ConfigBuilder for the mod with id mod_id. The mod config will automatically be saved into and loaded from config_file.