Skip to content
Version 2.11.0
↓ Get the launcher

SurfaceStyle enumeration

Render surface style for a window’s leaf elements (Text / Bar / Pill), selected via Surface. Independent of WindowPanelStyle chrome: it controls how the window RENDERER draws those three leaf types, not the frame drawn around them.

public enum SurfaceStyle
name value description
Menu 0 Default. Leaves render with the window theme chrome — themed TextElement, a rounded menu bar track with a numeric column, and an accent pill chip — exactly as every existing window does. Unchanged behaviour.
HudOverlay 1 Reproduces the borderless HUD look for Text / Bar / Pill: shadowed offset-twin text over the world (honouring FontSize / DynamicFontSize / ShadowDistance), a rounded 9-slice HP-bar track with a per-frame smoothed fill and a shadowed label / prefix, and a transparent 9-slice pill chip with shadowed centred text — byte-identical to the native HUD renderer (HudElementBuilder). Lets a HUD-path plugin migrate onto the window path with pixel-exact fidelity. Only these three leaf types are affected; every other widget renders identically to Menu.