Expand description
High-level UI primitive drawing functions.
These convenience functions wrap UiLayer to provide common UI patterns:
stat displays, combat HUD, menus, status bars, labeled panels, etc.
Structs§
- UiColors
- Common UI color palette.
Functions§
- draw_
combat_ log - Draw a combat log panel with scrolling text lines.
- draw_
floating_ damage - Draw a damage number floating up from a position.
- draw_
fps_ overlay - Draw FPS and frame stats in the top-right corner.
- draw_
hp_ bar - Draw an HP bar with label.
- draw_
menu - Draw a menu with a list of options, highlighting the selected one.
- draw_
mp_ bar - Draw an MP bar with label.
- draw_
notification - Draw a notification banner centered at the top of the screen.
- draw_
separator - Draw a horizontal separator line.
- draw_
stamina_ bar - Draw a stamina bar with label.
- draw_
stat_ line - Draw a stat line: “Label: Value” with colored value.
- draw_
stat_ line_ justified - Draw a key-value pair right-aligned within a given width.
- draw_
titled_ panel - Draw a labeled panel with a title in the top border.
- draw_
tooltip - Draw a tooltip box near (x, y) with text content.
- draw_
xp_ bar - Draw an XP bar with label.