Skip to reading
GUI Styling, Shaders & Effects

Alignment, placeholder text and long captions

Edition 0.86.4.1 HF1

0.86.4.1 Hotfix 1 edition. Earlier lessons and screenshots retain their original version context; revised references and supplements describe the newer behavior.

Download PDFView illustrations

Figure 10. Text Color, Text Opacity and alignment are separate from the element’s surface.

Center short Button captions. Use left alignment for instructions, descriptions and most lists. Left-center and right-center are useful when text needs vertical centering inside a tall control.

A Text Box has its own placeholder appearance in Type Settings. The placeholder is a prompt before the player types; it should be readable without looking identical to entered text. The example uses #9CB2BC against a dark input surface.

Long translations need room. Test the longest actual caption in the intended font. Do not solve every overflow by making the text smaller: a wider Button, taller description or shorter caption can be the better edit.

A shader on a Button can process its caption too. If a decorative treatment makes text hard to read, put the art on a separate element and keep the caption unshaded.

Page 16 of 70Permalink
Go to page