Edit

From TrillWiki

Jump to: navigation, search

Edit boxes are used all over the place. They are where you type your text - in the channel window / message window etc etc. Their basic format is as below:

<control name="<name>" type="<type>">
<font source="" type="" size=""/>
<forecolor red="" green="" blue=""/>
<backcolor red="" green="" blue=""/>
</control>

The name="" is generally an arbitrary name, as with most controls, unless it's a template type control.

The 'type' can be "edit", "edit-multiline" or "chat-edit". The first two are for the template controls, the "chat-edit" being for consoles, channel window, and message window.

The font is as everywhere, and the background/foreground colo(u)rs are normal RGB colo(u)rs. (see topics for more info).

Alternatively, we can also use the color tag instead of the forecolor and backcolor tag, for example:

<color name="normal-back" red="..." green="..." blue="..." />
<color name="normal-fore" red="..." green="..." blue="..." />
Personal tools