-
Notifications
You must be signed in to change notification settings - Fork 0
Graphical Interface and Localization
Config Overhauled automates graphical interface rendering for the active configuration hierarchy. Implementations must register the provided screen factory and export localization keys for client-side translation.
Graphical interfaces are generated dynamically at runtime via ConfigManager::createScreen(parent). This method traverses the active structural hierarchy and constructs discrete widgets for mapped properties.
Client-side graphical interfaces mandate translation keys for structural titles, property names, and tooltips.
Execute the following command in-game:
/config_lang_gen <modid>
The framework compiles the active memory state and outputs a structured JSON file containing all required translation keys to the root configuration directory. Transfer these generated key-value pairs into the primary en_us.json language file of the host mod to map the translation definitions.