Class ListHudElement
java.lang.Object
org.rusherhack.client.api.ui.ElementBase
org.rusherhack.client.api.ui.ScaledElementBase
org.rusherhack.client.api.feature.hud.HudElement
org.rusherhack.client.api.feature.hud.ListHudElement
- All Implemented Interfaces:
IHudElement,Globals,IRenderable2D,org.rusherhack.core.bind.IBindable,org.rusherhack.core.event.listener.EventListener,org.rusherhack.core.feature.IFeature,org.rusherhack.core.feature.IFeatureConfigurable,org.rusherhack.core.interfaces.IClickable,org.rusherhack.core.interfaces.IDraggable,org.rusherhack.core.interfaces.IHoverable,org.rusherhack.core.interfaces.INamed,org.rusherhack.core.interfaces.ITickable,org.rusherhack.core.interfaces.IToggleable,org.rusherhack.core.logging.ILoggable,org.rusherhack.core.serialize.ISerializable<com.google.gson.JsonElement>,org.rusherhack.core.serialize.JsonSerializable
A hud element that will display a list of items
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumChange how the color of the items are decided when the color setting is set to rainbowclassAn item that gets rendered in this liststatic enumNested classes/interfaces inherited from class org.rusherhack.client.api.feature.hud.HudElement
HudElement.Alignment, HudElement.SnapPoint -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final org.rusherhack.core.setting.BooleanSettingprotected final ColorSettingSettingsprotected final org.rusherhack.core.setting.EnumSetting<ListHudElement.ColorMode>protected final org.rusherhack.core.setting.EnumSetting<ListHudElement.SortingMode>Fields inherited from class org.rusherhack.client.api.feature.hud.HudElement
alignment, logger -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(ListHudElement.ListItem member) doubledoublegetWidth()voidrenderContent(RenderContext context, double mouseX, double mouseY) Hud element is being called for rendering.voidresort()voidsetMax(int max) voidtick()Methods inherited from class org.rusherhack.client.api.feature.hud.HudElement
calculateAlignment, calculateAlignment, correctPosition, deserialize, getAlignment, getBindReference, getDescription, getFontRenderer, getLogger, getName, getScale, getSettings, getSnapPoint, getStartX, getStartY, getX, getY, isDragging, isHovered, isListening, isToggled, mouseClicked, mouseMoved, mouseReleased, onDisable, onEnable, onKeybindEvent, postRender, render, serialize, setDescription, setSnapPoint, setStartX, setStartY, setToggled, setX, setY, shouldUpdateAlignment, toggleMethods inherited from class org.rusherhack.client.api.ui.ScaledElementBase
getScaledHeight, getScaledWidthMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.rusherhack.core.feature.IFeatureConfigurable
getSetting, registerSettings, resetMethods inherited from interface org.rusherhack.client.api.feature.hud.IHudElement
renderContent, shouldDrawBackgroundMethods inherited from interface org.rusherhack.core.interfaces.INamed
getAliases, getDisplayNameMethods inherited from interface org.rusherhack.client.api.render.IRenderable2D
getRenderer, renderMethods inherited from interface org.rusherhack.core.serialize.ISerializable
shouldAutoSave, shouldSerialize
-
Field Details
-
color
Settings -
colorMode
-
sortMode
-
animations
protected final org.rusherhack.core.setting.BooleanSetting animations
-
-
Constructor Details
-
ListHudElement
-
ListHudElement
-
-
Method Details
-
renderContent
Description copied from interface:IHudElementHud element is being called for rendering.Matrix is translated to the top left corner of the element before being called.
-
tick
public void tick() -
resort
public void resort() -
setMax
public void setMax(int max) -
add
-
getWidth
public double getWidth()- Specified by:
getWidthin classElementBase
-
getHeight
public double getHeight()- Specified by:
getHeightin classElementBase
-
getMembers
-