Hopperlib
Loading...
Searching...
No Matches
cc.mrcl.hopperlib.ScreenUI.HopperActionBar Class Reference
Inheritance diagram for cc.mrcl.hopperlib.ScreenUI.HopperActionBar:
cc.mrcl.hopperlib.ScreenUI.DrawingLayer

Public Member Functions

 HopperActionBar (Player player)
void addActionBar (String id, Component component)
void addTimedActionBar (String id, Component component, int tickDuration)
void removeActionBar (String id)
boolean hasActionBar (String id)
void perDisplay ()
Component getRender ()
int renderedSpriteSize ()
int getXCoord ()
boolean isCentered ()
Public Member Functions inherited from cc.mrcl.hopperlib.ScreenUI.DrawingLayer
default boolean isRemoveOnQuit ()
default boolean shouldBeRemoved ()

Member Function Documentation

◆ getRender()

Component cc.mrcl.hopperlib.ScreenUI.HopperActionBar.getRender ( )
Returns
The component to render in the screen.

Implements cc.mrcl.hopperlib.ScreenUI.DrawingLayer.

◆ getXCoord()

int cc.mrcl.hopperlib.ScreenUI.HopperActionBar.getXCoord ( )
Returns
The horizontal coordinate, in pixels from the centre of the screen, that the component will be rendered at. 0 for rendering in the middle.

Implements cc.mrcl.hopperlib.ScreenUI.DrawingLayer.

◆ isCentered()

boolean cc.mrcl.hopperlib.ScreenUI.HopperActionBar.isCentered ( )
Returns
Whether the sprite will be rendered centered over its x coordinate.

Implements cc.mrcl.hopperlib.ScreenUI.DrawingLayer.

◆ perDisplay()

void cc.mrcl.hopperlib.ScreenUI.HopperActionBar.perDisplay ( )

Method that executes every time after this layer is displayed on screen. Can be used for animations.

Implements cc.mrcl.hopperlib.ScreenUI.DrawingLayer.

◆ renderedSpriteSize()

int cc.mrcl.hopperlib.ScreenUI.HopperActionBar.renderedSpriteSize ( )

The documentation for this class was generated from the following file:
  • src/main/java/cc/mrcl/hopperlib/ScreenUI/HopperActionBar.java