Class ComponentXPBar
A level/xp bar component.
-
Component
-
ComponentXPBar
Methods summary
public
|
#
__construct( OsuSignature $signature, integer $x = 0, integer $y = 0, string $hexColour = "#ffa200", integer $width = 0, integer $height = 0, integer $rounding = 1 )
Parameters
- $signature
- The base signature
- $x
- The X position of this xp bar
- $y
- The Y position of this xp bar
- $hexColour
- The colour of this xp bar. Empty will default to sig's colour.
- $width
- The width of this xp bar
- $height
- The height of this xp bar
- $rounding
- How much to round this xp bar
Overrides
|
public
integer
|
#
getWidth( )
Returns
integer The width of this component. Overridable.
Overrides
|
public
integer
|
#
getHeight( )
Returns
integer The height of this component. Overridable.
Overrides
|
public
|
#
draw( OsuSignature $signature )
Draws this component to the signature's canvas.
Draws this component to the signature's canvas.
Parameters
- $signature
- The signature to draw to.
Overrides
|