i18n_use_drawing()
The i18n_use_drawing() function is used to change the drawing preset used.
This function can only be used after the i18n_create() function is called.
Syntax
Usage
i18n_use_drawing(preset_name, [locale], [i18n]);
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
| preset_name | String | The name of the drawing preset to use (e.g. "header", "body", "title", etc.). | |
| locale | String | "" | The locale code to use the drawing preset (e.g. "en", "id", "ja", etc.). Leave it empty to mark it as dynamic locale. |
| i18n | Boolean | I18n | false | The I18n struct reference, or leave it empty to use the global i18n struct. |
Returns
I18nDrawingsorVoid(if the drawing preset is not found)
Examples
Draw/Draw GUI Event
// use the "header" drawing preset from "en" locale
i18n_use_drawing("header", "en");
// use the "body" drawing preset from "id" locale
i18n_use_drawing("body", "id");
// use the "header" drawing preset from "ja" locale in instance-scoped i18n struct
i18n_use_drawing("header", "ja", i18n);
// use the "body" drawing preset for dynamic locale
i18n_use_drawing("body");
For the detailed example of this function, you can see the Drawing section.
Table of Contents