Class ComponentFlag
The flag component. Looks for a country flag in ComponentFlag::FLAGS_DIRECTORY
based on the user's country code.
&flagshadow
can be used globally and adds a 3px 50% opacity shadow to the flag.
&flagstroke
can be used globally and adds a 1px white rounded stroke with 93.3% opacity around the flag.
-
Component
-
ComponentFlag
Methods summary
public
|
#
__construct( OsuSignature $signature, integer $x = 0, integer $y = 0, integer $width = 18, integer $height = 12 )
Parameters
- $signature
- The base signature
- $x
- The X position of this flag
- $y
- The Y position of this flag
- $width
- The width of this flag
- $height
- The height of this flag
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
|