HudButtonComponent constructor
HudButtonComponent({
- PositionComponent? button,
- PositionComponent? buttonDown,
- EdgeInsets? margin,
- void onPressed()?,
- void onReleased()?,
- Vector2? position,
- Vector2? size,
- Vector2? scale,
- double? angle,
- Anchor? anchor,
- int? priority,
Implementation
HudButtonComponent({
this.button,
this.buttonDown,
EdgeInsets? margin,
this.onPressed,
this.onReleased,
Vector2? position,
Vector2? size,
Vector2? scale,
double? angle,
Anchor? anchor,
int? priority,
}) : super(
margin: margin,
position: position,
size: size ?? button?.size,
scale: scale,
angle: angle,
anchor: anchor,
priority: priority,
);