2.1.8 <box>
Tag: <box>
Child tags: <color>
With the <box> tag you can draw a simple rectangle with or without a
border (foreground) colour and with or without a background colour.
If you link the box to a target, Silverjuke may draw some text using the
foreground colour.
If no background colour is given using the <color>-tag, the box is
transparent.
Attributes:
- target - Most common targets are Line00, Line01 etc. and
DisplayCover. See the chapter Targets for a complete list.
- x, y, w, h - The position and the size of the box, See
<img> for more information about these attributes.
- border - "1" draws a border, "0" doesn't
(default)
- centerOffset - If text should be drawn centered (this is
decided by Silverjuke, not by the skin) you can move the center origin to the
left (negative pixel count) or to the right (positive pixel count) by this
option.
- inactive - See <button>.
- hideCreditInDisplay - special flag for the target CurrCredit,
if set to "1", the display does not show the credit changes
- text - The box will display the given line of text. Useful
only if no target is set; the text should be encoded as UTF-8. Available in
Silverjuke 2.10.
- id - If you have defined a text using the text-Attribute, you
may also want to change it afterwards. For this purpose, you can define an ID;
then you can change the text of the box later using Program.setSkinText().
Available in Silverjuke 2.52beta2.
- font - With this attribute, you can use different font for
different box items. Please specify the font name of an installed font here.
You can also specify more than one name by using a comma separated list;
Silverjuke will use the first match then. If the font cannot be found, a
default font is used. Available in Silverjuke 2.73.