Package me.hackware.api.gui.studio
Class Tab
java.lang.Object
me.hackware.api.gui.studio.Tab
A single tab within a
Tabs strip: a Tabs.PADDING_H-padded label,
drawn white when active else grey with a drop shadow, vertically centred in the caller's rowH row.
Stateless renderer — the strip owns spacing, the sliding hover background and the
active-underline indicator.-
Method Summary
Modifier and TypeMethodDescriptionstatic voiddraw(net.minecraft.client.gui.GuiGraphics g, net.minecraft.client.gui.Font font, String label, int x, int top, int rowH, boolean active, float opacity) Draws the tab's label atx, centred in arowH-tall row whose top istop.static intFull width of a tab forlabel(label +Tabs.PADDING_Hon each side).
-
Method Details
-
width
Full width of a tab forlabel(label +Tabs.PADDING_Hon each side). -
draw
public static void draw(net.minecraft.client.gui.GuiGraphics g, net.minecraft.client.gui.Font font, String label, int x, int top, int rowH, boolean active, float opacity) Draws the tab's label atx, centred in arowH-tall row whose top istop.
-