-
Notifications
You must be signed in to change notification settings - Fork 268
Open
Labels
bugSomething isn't workingSomething isn't workingenhancementNew feature or requestNew feature or request
Description
When replacing a custom Text component parent from a native Phaser.GameObjects.Text by a BBCodeText, a few adjustments had to be made.
While some of them happen without issue, I noticed that the stroke, in addition to not applying when passing stroke / strokeThickness to style properties in the constructor, generate a visual issue.
As you can see, I've made a step by step transition, from left to right:
- Just after converting to
BBCodeTextand applying the stroke manually (with a[stroke]tag), there is a text cut-off with a left text position shift - Adding
this.setPaddingwith thickness as a value corrects the cut-off - Adding
this.x += thicknesscorrects the position shift but keeps the cut-off - Adding both seems to fix the issue and give a result similar to what it was with
Phaser.GameObjects.Textstroke
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingenhancementNew feature or requestNew feature or request