Class PanelBase<T extends IPanelItem>
java.lang.Object
org.rusherhack.client.api.ui.ElementBase
org.rusherhack.client.api.ui.ScaledElementBase
org.rusherhack.client.api.ui.panel.PanelBase<T>
- All Implemented Interfaces:
IRenderable2D
,org.rusherhack.core.interfaces.IClickable
,org.rusherhack.core.interfaces.IHideable
,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
,org.rusherhack.core.serialize.ISerializable<com.google.gson.JsonElement>
,org.rusherhack.core.serialize.JsonSerializable
public abstract class PanelBase<T extends IPanelItem>
extends ScaledElementBase
implements IRenderable2D, org.rusherhack.core.interfaces.ITickable, org.rusherhack.core.interfaces.IClickable, org.rusherhack.core.interfaces.IScrollable, org.rusherhack.core.interfaces.ITypeable, org.rusherhack.core.interfaces.IHideable, org.rusherhack.core.serialize.JsonSerializable, org.rusherhack.core.interfaces.INamed
Basic panel element that with items that can be clicked
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddItem
(org.rusherhack.core.feature.IFeature feature) abstract T
createFeatureItem
(org.rusherhack.core.feature.IFeature feature) Instantiates a new item for the given featureboolean
deserialize
(com.google.gson.JsonElement obj) getName()
boolean
isHidden()
com.google.gson.JsonElement
void
setVisible
(boolean visible) Methods inherited from class org.rusherhack.client.api.ui.ScaledElementBase
getScale, getScaledHeight, getScaledWidth
Methods inherited from class org.rusherhack.client.api.ui.ElementBase
getHeight, getWidth, getX, getY, setX, setY
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.interfaces.IClickable
mouseClicked, mouseReleased
Methods inherited from interface org.rusherhack.core.interfaces.IHoverable
isHovered
Methods inherited from interface org.rusherhack.core.interfaces.INamed
getAliases, getDisplayName
Methods inherited from interface org.rusherhack.client.api.render.IRenderable2D
render, render
Methods inherited from interface org.rusherhack.core.interfaces.IScrollable
mouseScrolled
Methods inherited from interface org.rusherhack.core.serialize.ISerializable
shouldAutoSave, shouldSerialize
Methods inherited from interface org.rusherhack.core.interfaces.ITickable
tick
Methods inherited from interface org.rusherhack.core.interfaces.ITypeable
charTyped, keyTyped
-
Field Details
-
items
Items that should be contained in this panel
-
-
Constructor Details
-
PanelBase
-
-
Method Details
-
createFeatureItem
Instantiates a new item for the given feature- Parameters:
feature
- likely a module or hud element- Returns:
- the item
-
addItem
-
addItem
-
getItemList
-
getName
- Specified by:
getName
in interfaceorg.rusherhack.core.interfaces.INamed
-
isHidden
public boolean isHidden()- Specified by:
isHidden
in interfaceorg.rusherhack.core.interfaces.IHideable
-
setVisible
public void setVisible(boolean visible) -
getRenderer
- Specified by:
getRenderer
in interfaceIRenderable2D
-
getFontRenderer
- Specified by:
getFontRenderer
in interfaceIRenderable2D
-
serialize
public com.google.gson.JsonElement serialize()- Specified by:
serialize
in interfaceorg.rusherhack.core.serialize.ISerializable<T extends IPanelItem>
-
deserialize
public boolean deserialize(com.google.gson.JsonElement obj) - Specified by:
deserialize
in interfaceorg.rusherhack.core.serialize.ISerializable<T extends IPanelItem>
-