Class GuideTooltips

java.lang.Object
net.ixdarklord.folios.internal.client.GuideTooltips

public final class GuideTooltips extends Object
  • Method Details

    • of

      public static List<net.minecraft.network.chat.Component> of(net.minecraft.network.chat.Component title, @Nullable @Nullable net.minecraft.network.chat.Component detail)
      A name, and a line under it saying more; null for none.
    • titleColor

      public static int titleColor(GuideBook book)
      The text colour of a tooltip's name in a book's colours.
    • backgroundColor

      public static int backgroundColor(GuideBook book)
      A tooltip's ground in a book's colours: its own, else its cover's darkened.
    • frameColor

      public static int frameColor(GuideBook book)
      A tooltip's frame in a book's colours: its own, else gilt warmed by its accent.
    • detailColor

      public static int detailColor(GuideBook book)
      The text colour of a tooltip's quieter lines in a book's colours.
    • frame

      public static void frame(GuiGraphicsExtractor graphics, int x, int y, int width, int height, GuideBook book)
      A tooltip's ground and gilt frame in the book's colours, round content from (x, y), width by height: for anything shown as the books' tooltips are (a hint, say).
    • frame

      public static void frame(GuiGraphicsExtractor graphics, int x, int y, int width, int height, GuideBook book, int alpha)
    • frame

      public static void frame(GuiGraphicsExtractor graphics, int x, int y, int width, int height, GuideBook book, int alpha, int inset)
      As the others, the frame inset pixels out from the content each way (12 for a tooltip's).
    • show

      public static void show(GuiGraphicsExtractor graphics, net.minecraft.client.gui.Font font, List<net.minecraft.network.chat.Component> lines, int mouseX, int mouseY, GuideBook book)
      Shows tooltip lines in the book's colours, over everything drawn so far: the first as a name, the rest quieter.
    • show

      public static void show(GuiGraphicsExtractor graphics, net.minecraft.client.gui.Font font, List<net.minecraft.network.chat.Component> lines, int mouseX, int mouseY, GuideBook book, int ruleBefore)
      As show(GuiGraphicsExtractor, Font, List, int, int, GuideBook), with a soft rule above the line at ruleBefore (none for -1): what is said set apart from what to do.
    • show

      public static void show(GuiGraphicsExtractor graphics, net.minecraft.client.gui.Font font, List<net.minecraft.network.chat.Component> lines, int mouseX, int mouseY, GuideBook book, int ruleBefore, float scale)
      As show(GuiGraphicsExtractor, Font, List, int, int, GuideBook, int), drawn scale times larger (no smaller than as it is): to match a book drawn larger than the GUI scale, kept on the screen all the same.