Class Chip

java.lang.Object
me.hackware.api.gui.Chip

public final class Chip extends Object
A small pill label. Used for keybind chips ([R], [...]) and for "in wheels" membership toggles. Draws at the given left/top and returns its total width so callers can flow chips in a row.
  • Field Details

  • Method Details

    • draw

      public static int draw(UiContext ui, int x, int y, String label, boolean hovered)
      Neutral (bordered) chip. Returns the drawn width.
    • draw

      public static int draw(UiContext ui, int x, int y, String label, boolean hovered, float alpha)
      Neutral chip with an opacity multiplier (fading rows). Returns the drawn width.
    • drawAccent

      public static int drawAccent(UiContext ui, int x, int y, String label)
      Accent-filled chip (active / selected). Returns the drawn width.
    • width

      public static int width(UiContext ui, String label)