Class GuiOpacity

java.lang.Object
net.ixdarklord.coolcatcanvas.internal.client.gui.GuiOpacity

public final class GuiOpacity extends Object
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 Classes
    Modifier and Type
    Class
    Description
    static interface 
    A GUI item's render state that knows the opacity it was drawn at.
  • Method Summary

    Modifier and Type
    Method
    Description
    static float
    The opacity text and rectangles drawn now are at (what withOpacity asked for).
    static int
    fade(int argb, boolean text)
    A color with its alpha scaled by everything(); text drops what would be too faint to draw well.
    static float
    The opacity an item drawn now is at.
    static void
    pop()
     
    static void
    push(float opacity, boolean itemsOnly)
     

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 (what withOpacity asked for).
    • fade

      public static int fade(int argb, boolean text)
      A color with its alpha scaled by everything(); text drops what would be too faint to draw well.