Class ModListScreen.InfoPanel
- java.lang.Object
-
- net.minecraft.client.gui.AbstractGui
-
- net.minecraft.client.gui.FocusableGui
-
- net.minecraftforge.client.gui.ScrollPanel
-
- net.minecraftforge.fml.client.gui.screen.ModListScreen.InfoPanel
-
- All Implemented Interfaces:
IGuiEventListener
,INestedGuiEventHandler
,IRenderable
- Enclosing class:
- ModListScreen
class ModListScreen.InfoPanel extends ScrollPanel
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<IReorderingProcessor>
lines
private Size2i
logoDims
private ResourceLocation
logoPath
-
Fields inherited from class net.minecraftforge.client.gui.ScrollPanel
border, bottom, captureMouse, height, left, right, scrollDistance, top, width
-
Fields inherited from class net.minecraft.client.gui.AbstractGui
BACKGROUND_LOCATION, GUI_ICONS_LOCATION, STATS_ICON_LOCATION
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) void
clearInfo()
protected void
drawBackground()
protected void
drawPanel(MatrixStack mStack, int entryRight, int relativeY, Tessellator tess, int mouseX, int mouseY)
Draw anything special on the screen.private Style
findTextLine(int mouseX, int mouseY)
int
getContentHeight()
protected int
getScrollAmount()
boolean
mouseClicked(double mouseX, double mouseY, int button)
private java.util.List<IReorderingProcessor>
resizeContent(java.util.List<java.lang.String> lines)
(package private) void
setInfo(java.util.List<java.lang.String> lines, ResourceLocation logoPath, Size2i logoDims)
-
Methods inherited from class net.minecraftforge.client.gui.ScrollPanel
children, clickPanel, drawGradientRect, isMouseOver, mouseDragged, mouseReleased, mouseScrolled, render
-
Methods inherited from class net.minecraft.client.gui.FocusableGui
getFocused, isDragging, setDragging, setFocused
-
Methods inherited from class net.minecraft.client.gui.AbstractGui
blit, blit, blit, blit, blit, blitOutlineBlack, drawCenteredString, drawCenteredString, drawString, drawString, fill, fillGradient, fillGradient, getBlitOffset, hLine, setBlitOffset, vLine
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.minecraft.client.gui.IGuiEventListener
mouseMoved
-
Methods inherited from interface net.minecraft.client.gui.INestedGuiEventHandler
changeFocus, charTyped, getChildAt, keyPressed, keyReleased, magicalSpecialHackyFocus, setInitialFocus
-
-
-
-
Field Detail
-
logoPath
private ResourceLocation logoPath
-
logoDims
private Size2i logoDims
-
lines
private java.util.List<IReorderingProcessor> lines
-
-
Constructor Detail
-
InfoPanel
InfoPanel(Minecraft mcIn, int widthIn, int heightIn, int topIn)
-
-
Method Detail
-
setInfo
void setInfo(java.util.List<java.lang.String> lines, ResourceLocation logoPath, Size2i logoDims)
-
clearInfo
void clearInfo()
-
resizeContent
private java.util.List<IReorderingProcessor> resizeContent(java.util.List<java.lang.String> lines)
-
getContentHeight
public int getContentHeight()
- Specified by:
getContentHeight
in classScrollPanel
-
getScrollAmount
protected int getScrollAmount()
- Overrides:
getScrollAmount
in classScrollPanel
-
drawPanel
protected void drawPanel(MatrixStack mStack, int entryRight, int relativeY, Tessellator tess, int mouseX, int mouseY)
Description copied from class:ScrollPanel
Draw anything special on the screen. GL_SCISSOR is enabled for anything that is rendered outside of the view box. Do not mess with SCISSOR unless you support this.- Specified by:
drawPanel
in classScrollPanel
-
findTextLine
private Style findTextLine(int mouseX, int mouseY)
-
mouseClicked
public boolean mouseClicked(double mouseX, double mouseY, int button)
- Specified by:
mouseClicked
in interfaceIGuiEventListener
- Specified by:
mouseClicked
in interfaceINestedGuiEventHandler
- Overrides:
mouseClicked
in classScrollPanel
-
drawBackground
protected void drawBackground()
- Overrides:
drawBackground
in classScrollPanel
-
-