Skip to content

Graphical Interface and Localization

JohnSmith474 edited this page Jun 12, 2026 · 3 revisions

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.

Dynamic Rendering

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.

Localization Data Export

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.

Clone this wiki locally