Jump to content

Search the Community

Showing results for tags 'text align'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • HTML5 Game Coding
    • News
    • Game Showcase
    • Facebook Instant Games
    • Web Gaming Standards
    • Coding and Game Design
    • Paid Promotion (Buy Banner)
  • Frameworks
    • Pixi.js
    • Phaser 3
    • Phaser 2
    • Babylon.js
    • Panda 2
    • melonJS
    • Haxe JS
    • Kiwi.js
  • General
    • General Talk
    • GameMonetize
  • Business
    • Collaborations (un-paid)
    • Jobs (Hiring and Freelance)
    • Services Offered
    • Marketplace (Sell Apps, Websites, Games)

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Website URL


Twitter


Skype


Location


Interests

Found 1 result

  1. Hello, While working on the graphical editor for phaser I have stumbled upon the text alignment. Basically, I want to use wordWrapWidth (or other property) as the default width for the text alignment, at the moment I have 2 possible solutions: 1) Quick and dirty would be to modify updateText method like this: var maxLineWidth = 0;to var maxLineWidth = this.style.wordWrap ? this.style.wordWrapWidth : 0;it would make desired results, but as the text has been drawn on separate canvas - it will make text object texture bigger than required and add an impact on the performance 2) Create a wrapper around Text object - or extend Phaser.Text to Phaser.TextBox - and handle offsets internally Maybe there is somebody who have done something like that before - or I'm just missing something. Any suggestions?
×
×
  • Create New...