GUI Labels
App: apps/gui_labels/
Shows every label variant side by side: default, colored (0–255), aligned (left/center/right), and word-wrapping. Colored separators are used to divide sections.
Run from root
Section titled “Run from root”% ./plume3d gui_labelsWhat it shows
Section titled “What it shows”| Variant | Method |
|---|---|
| Default left-aligned | label(text) |
| Colored | labelColored(text, r, g, b, a) — colors 0–255 |
| Colored + wrapping | labelColoredWrap(text, r, g, b, a) |
| Word-wrapping | labelWrap(text) |
| Left-aligned | labelAligned(text, 0x11) |
| Center-aligned | labelAligned(text, 0x12) |
| Right-aligned | labelAligned(text, 0x14) |
| Colored separator | separator(r, g, b, a, true) |
Key patterns
Section titled “Key patterns”Gui.labelColored("Red warning", 255, 80, 80, 255)Gui.labelColored("Semi-transparent", 255, 255, 0, 128)
// Alignment constants (Nuklear NK_TEXT_* flags):// 0x11 = left, 0x12 = centered, 0x14 = rightGui.labelAligned("Centered text", 0x12)Gui.labelAligned("Right text", 0x14)
// Word wrap (long text wraps within column width)Gui.labelWrap("This is a long label that will wrap onto the next line automatically.")
// Colored separator (rounded = true)Gui.separator(200, 100, 100, 120, true)