Merge pull request #1751 from thecodingmachine/fix-name-brave
Display correctly the username on Brave browser
This commit is contained in:
commit
03b8de23d2
1 changed files with 5 additions and 0 deletions
|
@ -88,6 +88,11 @@ export abstract class Character extends Container {
|
||||||
fontSize: "8px",
|
fontSize: "8px",
|
||||||
strokeThickness: 2,
|
strokeThickness: 2,
|
||||||
stroke: "gray",
|
stroke: "gray",
|
||||||
|
metrics: {
|
||||||
|
ascent: 20,
|
||||||
|
descent: 10,
|
||||||
|
fontSize: 35,
|
||||||
|
},
|
||||||
});
|
});
|
||||||
this.playerName.setOrigin(0.5).setDepth(DEPTH_INGAME_TEXT_INDEX);
|
this.playerName.setOrigin(0.5).setDepth(DEPTH_INGAME_TEXT_INDEX);
|
||||||
this.add(this.playerName);
|
this.add(this.playerName);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue