class ModListScreen.InfoPanel extends ScrollPanel
Modifier and Type | Field and Description |
---|---|
private java.util.List<ITextComponent> |
lines |
private Size2i |
logoDims |
private ResourceLocation |
logoPath |
border, bottom, captureMouse, height, left, right, scrollDistance, top, width
BACKGROUND_LOCATION, GUI_ICONS_LOCATION, STATS_ICON_LOCATION
Constructor and Description |
---|
InfoPanel(Minecraft mcIn,
int widthIn,
int heightIn,
int topIn) |
Modifier and Type | Method and Description |
---|---|
(package private) void |
clearInfo() |
protected void |
drawBackground() |
protected void |
drawPanel(int entryRight,
int relativeY,
Tessellator tess,
int mouseX,
int mouseY)
Draw anything special on the screen.
|
private ITextComponent |
findTextLine(int mouseX,
int mouseY) |
int |
getContentHeight() |
protected int |
getScrollAmount() |
boolean |
mouseClicked(double mouseX,
double mouseY,
int button) |
private java.util.List<ITextComponent> |
resizeContent(java.util.List<java.lang.String> lines) |
(package private) void |
setInfo(java.util.List<java.lang.String> lines,
ResourceLocation logoPath,
Size2i logoDims) |
children, clickPanel, drawGradientRect, isMouseOver, mouseDragged, mouseReleased, mouseScrolled, render
getFocused, isDragging, setDragging, setFocused
blit, blit, blit, blit, blit, drawCenteredString, drawRightAlignedString, drawString, fill, fill, fillGradient, getBlitOffset, hLine, innerBlit, setBlitOffset, vLine
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
changeFocus, charTyped, func_212932_b, getEventListenerForPos, keyPressed, keyReleased, setFocusedDefault
mouseMoved
private ResourceLocation logoPath
private Size2i logoDims
private java.util.List<ITextComponent> lines
InfoPanel(Minecraft mcIn, int widthIn, int heightIn, int topIn)
void setInfo(java.util.List<java.lang.String> lines, ResourceLocation logoPath, Size2i logoDims)
void clearInfo()
private java.util.List<ITextComponent> resizeContent(java.util.List<java.lang.String> lines)
public int getContentHeight()
getContentHeight
in class ScrollPanel
protected int getScrollAmount()
getScrollAmount
in class ScrollPanel
protected void drawPanel(int entryRight, int relativeY, Tessellator tess, int mouseX, int mouseY)
ScrollPanel
drawPanel
in class ScrollPanel
private ITextComponent findTextLine(int mouseX, int mouseY)
public boolean mouseClicked(double mouseX, double mouseY, int button)
mouseClicked
in interface IGuiEventListener
mouseClicked
in interface INestedGuiEventHandler
mouseClicked
in class ScrollPanel
protected void drawBackground()
drawBackground
in class ScrollPanel