Class RichTextView
java.lang.Object
org.rusherhack.client.api.ui.window.content.WindowContent
org.rusherhack.client.api.ui.window.view.WindowView
org.rusherhack.client.api.ui.window.view.SimpleView
org.rusherhack.client.api.ui.window.view.ScrollableView
org.rusherhack.client.api.ui.window.view.RichTextView
- All Implemented Interfaces:
org.rusherhack.core.interfaces.IClickable,org.rusherhack.core.interfaces.IHoverable,org.rusherhack.core.interfaces.INamed,org.rusherhack.core.interfaces.IScrollable,org.rusherhack.core.interfaces.ITickable,org.rusherhack.core.interfaces.ITypeable
A scrollable view meant for displaying logs
TODO: add selection copying
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.rusherhack.client.api.ui.window.view.SimpleView
SimpleView.Alignment -
Field Summary
Fields inherited from class org.rusherhack.client.api.ui.window.view.ScrollableView
dragDeltaYFields inherited from class org.rusherhack.client.api.ui.window.view.SimpleView
alignment, contentPadding, leftPadding, topPaddingFields inherited from class org.rusherhack.client.api.ui.window.view.WindowView
contentListFields inherited from class org.rusherhack.client.api.ui.window.content.WindowContent
contextMenu, x, y -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidadd(net.minecraft.network.chat.Component text, int color) voidclear()protected voidnewComponent(RichTextView.RichTextComponent c, int color) voidrenderViewContent(double mouseX, double mouseY) protected booleanMethods inherited from class org.rusherhack.client.api.ui.window.view.ScrollableView
getContentHeight, getScrollbar, getTopOffset, isDraggingScrollbarGrip, isScrollable, mouseReleased, mouseScrolled, setDraggingGripMethods inherited from class org.rusherhack.client.api.ui.window.view.SimpleView
getLeftOffset, getViewHeight, getViewWidth, setAlignment, setContentPadding, setLeftPadding, setTopPadding, setViewWidthModifierMethods inherited from class org.rusherhack.client.api.ui.window.view.WindowView
charTyped, getContent, getHandler, getHeight, getName, getViewHandler, getWidth, keyTyped, mouseClicked, renderContent, setContentList, setViewHeight, setViewWidth, tick, unfocusMethods inherited from class org.rusherhack.client.api.ui.window.content.WindowContent
getContextMenu, getFontRenderer, getRenderer, getWindow, getX, getY, isHovered, setContextMenu, setX, setYMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.rusherhack.core.interfaces.INamed
getAliases, getDisplayName
-
Constructor Details
-
RichTextView
-
RichTextView
-
-
Method Details
-
add
-
add
public void add(net.minecraft.network.chat.Component text, int color) -
renderViewContent
public void renderViewContent(double mouseX, double mouseY) - Overrides:
renderViewContentin classScrollableView
-
newComponent
-
clear
public void clear() -
shouldClampToBottom
protected boolean shouldClampToBottom()- Overrides:
shouldClampToBottomin classScrollableView
-