{{Template:GUI_Object|text|[wiki:GUI_-_Properties#buffer_zone buffer_zone], caption, cell_id, font, scrollbar, scrollbar_style, sprite, text_align, text_valign, textcolor, tooltip, tooltip_style|none}}

A text box is used to draw text on top of an optional sprite, if you have no text to draw, then the Image control will suffice.

Notice that when scrollbar is true, text_valign is ignored and always considered "top". Along the same lines, buffer_zone is always ignored if both text_align and text_valign is set to "center".

Image:gui-object-text.png?

To learn more about how to change the font, color, and add icons and images, see Text Renderer.

Code of example texts:

  <object type="text"
          name="the_one_to_the_left"
          size="20 20 260 130"
          font="verdana12"
          sprite="gd-input"
          textcolor="0 0 0"
          scrollbar="true"
          scrollbar_style="gd-scrollbar"
          buffer_zone="5"
  >Fire is a form of [color="50 70 120"]combustion[/color] ...
  </object>
  
  <object type="text"
          name="the_one_to_the_right"
          size="300 60 380 110"
          text_align="center"
          text_valign="center"
          font="verdana12"
          sprite="gd-input"
          textcolor="0 0 0"
          scrollbar="false"
  >Centered
  </object>
Last modified 12 years ago Last modified on Feb 23, 2008, 4:18:58 AM