You can define new variables to use in your themes.
Each <variable> must be encapsulated in a <variables> group. This group can contain as many variables as necessary. The characters accepted for defining the name of each variable are letters, numbers, and _. The period is also allowed on an exceptional basis. Numbers and periods will be accepted by the system after an alphabetic character or _.
Example:
<variables>
<variable name="testvar1" value="Test" />
</variables>
<view name="detailed">
<text name="abc" extra="true" text="${testvar1}" color="FF0000" pos="0 0" zIndex="50" />
</view>
One last point: these variables are defined outside of any <view> block.
At the end of each block (), the variables are “resolved” and all other user variables, global context variables, and system variables (in short, everything except ${game.*}) are replaced:
themes.log<include> that defines it (<includes> are parsed first)${game.*} variables) can only be used in path=“” and text=“” of <text>, <scrolltext>, and <image> components (for now). They will never be resolved elsewhere.