Class 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

public abstract class ResizeableHudElement extends HudElement
Hud element which can be scaled. TODO: make dragging show dragging mouse cursor
  • Constructor Details

    • ResizeableHudElement

      public ResizeableHudElement(String name)
  • Method Details

    • mouseMoved

      public void mouseMoved(double mouseX, double mouseY)
      Specified by:
      mouseMoved in interface org.rusherhack.core.interfaces.IDraggable
      Overrides:
      mouseMoved in class HudElement
    • mouseClicked

      public boolean mouseClicked(double mouseX, double mouseY, int button)
      Specified by:
      mouseClicked in interface org.rusherhack.core.interfaces.IClickable
      Overrides:
      mouseClicked in class HudElement
    • mouseReleased

      public void mouseReleased(double mouseX, double mouseY, int button)
      Specified by:
      mouseReleased in interface org.rusherhack.core.interfaces.IClickable
      Overrides:
      mouseReleased in class HudElement
    • getScale

      public double getScale()
      Overrides:
      getScale in class HudElement
      Returns:
      The scale of this element
    • render

      public void render(RenderContext context, double mouseX, double mouseY)
      Specified by:
      render in interface IRenderable2D
      Overrides:
      render in class HudElement
    • shouldUpdateAlignment

      public boolean shouldUpdateAlignment()
      Overrides:
      shouldUpdateAlignment in class HudElement
    • isHoveredOverIndicator

      public boolean isHoveredOverIndicator(double mouseX, double mouseY)
    • isResizing

      public boolean isResizing()