Overview

Classes

  • Card
  • CardRegular
  • Component
  • ComponentAvatar
  • ComponentFlag
  • ComponentImage
  • ComponentLabel
  • ComponentXPBar
  • ErrorImage
  • OsuAPI
  • OsuSignature
  • PredefinedColours
  • Signature
  • Template
  • TemplateNormal
  • Utils
  • Overview
  • Class

Class ComponentXPBar

A level/xp bar component.

Component
Extended by ComponentXPBar
Author: Lemmmy
Located at ComponentXPBar.php
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

Component::__construct()
public integer
# getWidth( )

Returns

integer
The width of this component. Overridable.

Overrides

Component::getWidth()
public integer
# getHeight( )

Returns

integer
The height of this component. Overridable.

Overrides

Component::getHeight()
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

Component::draw()
Properties inherited from Component
$usesSpace, $x, $y
API documentation generated by ApiGen