Class GuiOpacity
java.lang.Object
net.ixdarklord.coolcatcanvas.internal.client.gui.GuiOpacity
The opacity
ItemOpacityRenderer draws at now: the GUI items made while it is under 1 remember it and are
blitted with it (GuiItemRenderStateMixin, GuiRendererMixin), and, for its withOpacity, the
text and filled rectangles made then are faded by it (GuiTextRenderStateMixin,
ColoredRectangleRenderStateMixin).
Render thread only.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceA GUI item's render state that knows the opacity it was drawn at. -
Method Summary
Modifier and TypeMethodDescriptionstatic floatThe opacity text and rectangles drawn now are at (whatwithOpacityasked for).static intfade(int argb, boolean text) A color with its alpha scaled byeverything();textdrops what would be too faint to draw well.static floatitems()The opacity an item drawn now is at.static voidpop()static voidpush(float opacity, boolean itemsOnly)
-
Method Details
-
push
public static void push(float opacity, boolean itemsOnly) -
pop
public static void pop() -
items
public static float items()The opacity an item drawn now is at. -
everything
public static float everything()The opacity text and rectangles drawn now are at (whatwithOpacityasked for). -
fade
public static int fade(int argb, boolean text) A color with its alpha scaled byeverything();textdrops what would be too faint to draw well.
-