Class 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

public abstract class ListHudElement extends HudElement
A hud element that will display a list of items
  • Field Details

    • color

      protected final ColorSetting color
      Settings
    • colorMode

      protected final org.rusherhack.core.setting.EnumSetting<ListHudElement.ColorMode> colorMode
    • sortMode

      protected final org.rusherhack.core.setting.EnumSetting<ListHudElement.SortingMode> sortMode
    • animations

      protected final org.rusherhack.core.setting.BooleanSetting animations
  • Constructor Details

    • ListHudElement

      public ListHudElement(String name)
    • ListHudElement

      public ListHudElement(String name, boolean sorting)
  • Method Details

    • renderContent

      public void renderContent(RenderContext context, double mouseX, double mouseY)
      Description copied from interface: IHudElement
      Hud 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

      public void add(ListHudElement.ListItem member)
    • getWidth

      public double getWidth()
      Specified by:
      getWidth in class ElementBase
    • getHeight

      public double getHeight()
      Specified by:
      getHeight in class ElementBase
    • getMembers

      public List<ListHudElement.ListItem> getMembers()