Class StudioSectionHeader

java.lang.Object
me.hackware.api.gui.studio.StudioSectionHeader

public final class StudioSectionHeader extends Object
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

    Fields
    Modifier and Type
    Field
    Description
    static final int
    Mob-green, the shared "add / create" hover accent across Studio screens.
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    draw(UiContext ui, String label, String count, int x, int y, int sectionH)
    Label + count only — no "Add +" affordance (screens with a dedicated add control).
    static int[]
    draw(UiContext ui, String label, String count, int x, int y, int w, int sectionH, boolean addEnabled)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • ADD_HOVER

      public static final int ADD_HOVER
      Mob-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

      public static void draw(UiContext ui, String label, String count, int x, int y, int sectionH)
      Label + count only — no "Add +" affordance (screens with a dedicated add control).