Undocumented locale file features

Place to get help with not working mods / modding interface.
PFQNiet
Filter Inserter
Filter Inserter
Posts: 290
Joined: Sat Sep 05, 2020 7:48 pm
Contact:

Undocumented locale file features

Post by PFQNiet »

I found this in base.cfg:

Code: Select all

__CONTROL_STYLE_BEGIN__/unlock-tips__CONTROL_STYLE_END__
This __CONTROL_STYLE_BEGIN/END__ tag is totally undocumented on the Wiki. Are there any other such undocumented features or is this the only one?
User avatar
boskid
Factorio Staff
Factorio Staff
Posts: 4056
Joined: Thu Dec 14, 2017 6:56 pm
Contact:

Re: Undocumented locale file features

Post by boskid »

I am not sure what is and what is not documented. Here is the current list of macro replacers:
- CONTROL (1 parameter)
- CONTROL_MODIFIER (1 parameter)
- CONTROL_STYLE_BEGIN (no parameters)
- CONTROL_STYLE_END (no parameters)
- REMARK_COLOR_BEGIN (no parameters)
- REMARK_COLOR_END (no parameters)
- ALT_CONTROL (2 parameters)
- CONTROL_MOVE (no parameters)
- ENTITY (1 parameter)
- ITEM (1 parameter)
- TILE (1 parameter)

and possibly in slightly different contexts, there may be also `PATH` (1 parameter).

CONTROL_STYLE_BEGIN is nothing super special. It is replaced by `[font=..][color=..]` with values obtained from gui-style "control_input_shortcut_label"
Post Reply

Return to “Modding help”