Making login scene responsive
This commit is contained in:
parent
8773989bbe
commit
79b5c5de93
4 changed files with 42 additions and 6 deletions
|
@ -38,4 +38,16 @@ export class TextInput extends Phaser.GameObjects.BitmapText {
|
|||
getText(): string {
|
||||
return this.text;
|
||||
}
|
||||
|
||||
setX(x: number): this {
|
||||
super.setX(x);
|
||||
this.underLine.x = x;
|
||||
return this;
|
||||
}
|
||||
|
||||
setY(y: number): this {
|
||||
super.setY(y);
|
||||
this.underLine.y = y+1;
|
||||
return this;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue