Package me.hackware.api.gui.studio
Class IconChip
java.lang.Object
me.hackware.api.gui.studio.IconChip
A Studio row's type icon: a sprite centred on a rounded square filled with a faint
tint of the sprite's own colour.
The same chip the macro step rows and the IntelliSense draw for their kind glyphs
(see KindVisuals#drawIcon) — a list row's type icon and a step's type icon
are the same idea, so they look the same. The radius and tint are duplicated from
there rather than shared, to keep studio from depending on
intellisense; they're two literals, and this comment is the contract.
-
Method Summary
Modifier and TypeMethodDescriptionstatic voiddraw(UiContext ui, int x, int cy, int size, Icons.Icon icon, int color, float fade) Drawiconcentred in thesize×sizechip at(x, cy)(cy = vertical centre).static voiddrawGlyphOnly(UiContext ui, int x, int cy, int size, Icons.Icon icon, int color, float fade) The chip's sprite alone — same glyph size and position asdraw(me.hackware.api.gui.UiContext, int, int, int, me.hackware.api.gui.Icons.Icon, int, float), but with no tinted background square.
-
Method Details
-
drawGlyphOnly
public static void drawGlyphOnly(UiContext ui, int x, int cy, int size, Icons.Icon icon, int color, float fade) The chip's sprite alone — same glyph size and position asdraw(me.hackware.api.gui.UiContext, int, int, int, me.hackware.api.gui.Icons.Icon, int, float), but with no tinted background square. For rows (e.g. a create row's "+") that want to sit in the icon column at the chip's glyph size without the chip surface. -
draw
public static void draw(UiContext ui, int x, int cy, int size, Icons.Icon icon, int color, float fade) Drawiconcentred in thesize×sizechip at(x, cy)(cy = vertical centre).
-