Page 1 of 1
Undocumented locale file features
Posted: Fri Aug 06, 2021 8:22 am
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?
Re: Undocumented locale file features
Posted: Fri Aug 06, 2021 9:26 am
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"