Class ResizeableHudElement
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.ResizeableHudElement
- 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
Hud element which can be scaled.
TODO: make dragging show dragging mouse cursor
-
Nested Class Summary
Nested classes/interfaces inherited from class org.rusherhack.client.api.feature.hud.HudElement
HudElement.Alignment, HudElement.SnapPoint
-
Field Summary
Fields inherited from class org.rusherhack.client.api.feature.hud.HudElement
alignment, logger
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondouble
getScale()
boolean
isHoveredOverIndicator
(double mouseX, double mouseY) boolean
boolean
mouseClicked
(double mouseX, double mouseY, int button) void
mouseMoved
(double mouseX, double mouseY) void
mouseReleased
(double mouseX, double mouseY, int button) void
render
(RenderContext context, double mouseX, double mouseY) boolean
Methods inherited from class org.rusherhack.client.api.feature.hud.HudElement
calculateAlignment, calculateAlignment, correctPosition, deserialize, getAlignment, getBindReference, getDescription, getFontRenderer, getLogger, getName, getSettings, getSnapPoint, getStartX, getStartY, getX, getY, isDragging, isHovered, isListening, isToggled, onDisable, onEnable, onKeybindEvent, postRender, serialize, setDescription, setSnapPoint, setStartX, setStartY, setToggled, setX, setY, toggle
Methods inherited from class org.rusherhack.client.api.ui.ScaledElementBase
getScaledHeight, getScaledWidth
Methods inherited from class org.rusherhack.client.api.ui.ElementBase
getHeight, getWidth
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.rusherhack.core.feature.IFeatureConfigurable
getSetting, registerSettings, reset
Methods inherited from interface org.rusherhack.client.api.feature.hud.IHudElement
renderContent, renderContent, shouldDrawBackground
Methods inherited from interface org.rusherhack.core.interfaces.INamed
getAliases, getDisplayName
Methods inherited from interface org.rusherhack.client.api.render.IRenderable2D
getRenderer, render
Methods inherited from interface org.rusherhack.core.serialize.ISerializable
shouldAutoSave, shouldSerialize
Methods inherited from interface org.rusherhack.core.interfaces.ITickable
tick
-
Constructor Details
-
ResizeableHudElement
-
-
Method Details
-
mouseMoved
public void mouseMoved(double mouseX, double mouseY) - Specified by:
mouseMoved
in interfaceorg.rusherhack.core.interfaces.IDraggable
- Overrides:
mouseMoved
in classHudElement
-
mouseClicked
public boolean mouseClicked(double mouseX, double mouseY, int button) - Specified by:
mouseClicked
in interfaceorg.rusherhack.core.interfaces.IClickable
- Overrides:
mouseClicked
in classHudElement
-
mouseReleased
public void mouseReleased(double mouseX, double mouseY, int button) - Specified by:
mouseReleased
in interfaceorg.rusherhack.core.interfaces.IClickable
- Overrides:
mouseReleased
in classHudElement
-
getScale
public double getScale()- Overrides:
getScale
in classHudElement
- Returns:
- The scale of this element
-
render
- Specified by:
render
in interfaceIRenderable2D
- Overrides:
render
in classHudElement
-
shouldUpdateAlignment
public boolean shouldUpdateAlignment()- Overrides:
shouldUpdateAlignment
in classHudElement
-
isHoveredOverIndicator
public boolean isHoveredOverIndicator(double mouseX, double mouseY) -
isResizing
public boolean isResizing()
-