mirror of
https://github.com/flame-engine/flame.git
synced 2025-11-03 04:18:25 +08:00
Vector2 for position and size on PositionComponent
This commit is contained in:
@ -35,8 +35,7 @@ class TextComponent extends PositionComponent {
|
||||
|
||||
void _updateBox() {
|
||||
_tp = config.toTextPainter(_text);
|
||||
width = _tp.width;
|
||||
height = _tp.height;
|
||||
size.setValues(_tp.width, _tp.height);
|
||||
}
|
||||
|
||||
@mustCallSuper
|
||||
|
||||
Reference in New Issue
Block a user