Package me.hackware.api.gui.studio
Class StudioSectionHeader
java.lang.Object
me.hackware.api.gui.studio.StudioSectionHeader
A Studio sidebar section header: a muted
label, a dimmer count
beside it, and a right-aligned "Add +" affordance (mob-green on hover). Pure
renderer — it returns the add button's hit rect for the host to wire up.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intMob-green, the shared "add / create" hover accent across Studio screens. -
Method Summary
-
Field Details
-
ADD_HOVER
public static final int ADD_HOVERMob-green, the shared "add / create" hover accent across Studio screens.- See Also:
-
-
Method Details
-
draw
public static int[] draw(UiContext ui, String label, String count, int x, int y, int w, int sectionH, boolean addEnabled) - Parameters:
addEnabled- whether the "Add +" reacts to hover (suppressed while a popup owns the pointer)- Returns:
{x, y, w, h}of the "Add +" hit region
-
draw
Label + count only — no "Add +" affordance (screens with a dedicated add control).
-