Class GuideTooltips
java.lang.Object
net.ixdarklord.folios.internal.client.GuideTooltips
-
Method Summary
Modifier and TypeMethodDescriptionstatic intbackgroundColor(GuideBook book) A tooltip's ground in a book's colours: its own, else its cover's darkened.static intdetailColor(GuideBook book) The text colour of a tooltip's quieter lines in a book's colours.static voidframe(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),widthbyheight: for anything shown as the books' tooltips are (a hint, say).static voidframe(GuiGraphicsExtractor graphics, int x, int y, int width, int height, GuideBook book, int alpha) Asframe(GuiGraphicsExtractor, int, int, int, int, GuideBook), faded toalpha(0 to 255).static voidframe(GuiGraphicsExtractor graphics, int x, int y, int width, int height, GuideBook book, int alpha, int inset) As the others, the frameinsetpixels out from the content each way (12 for a tooltip's).static intframeColor(GuideBook book) A tooltip's frame in a book's colours: its own, else gilt warmed by its accent.static List<net.minecraft.network.chat.Component>of(net.minecraft.network.chat.Component title, @Nullable net.minecraft.network.chat.Component detail) A name, and a line under it saying more; null for none.static voidshow(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.static voidshow(GuiGraphicsExtractor graphics, net.minecraft.client.gui.Font font, List<net.minecraft.network.chat.Component> lines, int mouseX, int mouseY, GuideBook book, int ruleBefore) Asshow(GuiGraphicsExtractor, Font, List, int, int, GuideBook), with a soft rule above the line atruleBefore(none for -1): what is said set apart from what to do.static voidshow(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) Asshow(GuiGraphicsExtractor, Font, List, int, int, GuideBook, int), drawnscaletimes larger (no smaller than as it is): to match a book drawn larger than the GUI scale, kept on the screen all the same.static inttitleColor(GuideBook book) The text colour of a tooltip's name in a book's colours.
-
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
The text colour of a tooltip's name in a book's colours. -
backgroundColor
A tooltip's ground in a book's colours: its own, else its cover's darkened. -
frameColor
A tooltip's frame in a book's colours: its own, else gilt warmed by its accent. -
detailColor
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),widthbyheight: 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) Asframe(GuiGraphicsExtractor, int, int, int, int, GuideBook), faded toalpha(0 to 255). -
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 frameinsetpixels 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) Asshow(GuiGraphicsExtractor, Font, List, int, int, GuideBook), with a soft rule above the line atruleBefore(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) Asshow(GuiGraphicsExtractor, Font, List, int, int, GuideBook, int), drawnscaletimes larger (no smaller than as it is): to match a book drawn larger than the GUI scale, kept on the screen all the same.
-