ct-js icon indicating copy to clipboard operation
ct-js copied to clipboard

Can't set maxWidth property on PIXI.BitmapText declaration

Open yonderbread opened this issue 5 years ago • 1 comments

Describe the bug Creating a PIXI.BitmapText object does not allow you to set the maxWidth property on instantiation. You have to set it once it has been created.

Example: (Does not work)

this.dialog_text = new PIXI.BitmapText('WALK AROUND WITH ARROW KEYS, PRESS "E" TO INTERACT.', {
    font: {
        name: 'PressStart2P_400',
        size: 2
    },
    align: 'left',
   maxWidth: 72
})

Example: (Does work)

this.dialog_text = new PIXI.BitmapText('WALK AROUND WITH ARROW KEYS, PRESS "E" TO INTERACT.', {
    font: {
        name: 'PressStart2P_400',
        size: 2
    },
    align: 'left'
})
this.dialog_text.maxWidth = 72;

Screenshots (recommended) Attempting to set the maxWidth property when creating PIXI.BitmapText object fails to set it's property as shown here: https://prnt.sc/u86m1b

Versions:

  • OS: Windows 10
  • ct.js version 1.4.2

yonderbread avatar Aug 29 '20 21:08 yonderbread

Hey there 👋 I marked this issue as stale as it hadn't brought much attention for quite a while. I do understand that stale issues are still issues, yet here stale issues receive the least attention from maintainers so they can focus on more relevant tasks. You can help with this issue by checking whether it affects latest versions of ct.js and writing about it if it does, providing an example project and steps to reproduce. Or maybe you can close it with a PR! Note that some platform-dependent issues can't be resolved by developers due to the absense of such devices :c We will need help from you for such tasks. If this issue won't get attention in three months, it will be closed.

stale[bot] avatar Jul 30 '22 06:07 stale[bot]

This issue is now closed! Please create a new one with a proper template if this issue still affects ct.js.

stale[bot] avatar Oct 28 '22 14:10 stale[bot]