Class StudioAssignList

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

public final class StudioAssignList extends Object
Membership panel in the wheel-editor style: a labelled list of the currently assigned rows (each removable), then an "Add …" button that opens a searchable picker of candidates (drops down from the top add button). Selecting a candidate assigns it. Stateful — owns the picker's search field + selection; the host supplies a StudioAssignList.Model each frame and forwards key/char/mouse events.
  • Constructor Details

    • StudioAssignList

      public StudioAssignList()
  • Method Details

    • isPickerOpen

      public boolean isPickerOpen()
    • blur

      public void blur()
    • render

      public void render(UiContext ui, int x, int y, int w, int h, StudioAssignList.Model model)
      Fills the column h as a card: a darkened header (matching the steps "Command" card), then the add button at the top of the body (its picker drops down), then the removable rows filling the rest.
    • mouseClicked

      public boolean mouseClicked(double mx, double my, int button, net.minecraft.client.gui.Font font)
      Returns:
      whether the event was consumed.
    • mouseReleased

      public void mouseReleased()
      Fades the add button's ripple out — hosts must call this from their mouseReleased.
    • keyPressed

      public boolean keyPressed(net.minecraft.client.input.KeyEvent event)
    • charTyped

      public boolean charTyped(int codepoint)
    • mouseScrolled

      public boolean mouseScrolled(double mx, double my, double amount)