Author Topic: Suggestion: Color argument in FlxText constructor  (Read 1183 times)


  • New Member
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
As the topic says,  it would be handy to add a Color argument to the constructor of FlxText.    
It reduces quite a bit of code when I can specify text color in the constructor, especially when creating buttons.

button.loadText(new FlxText(0,0,40,"Hello",0xff0000), new FlxText(0,0,40,"Hello",0x0000ff));

I've already done this in my own code, and it just seems like it should be a standard feature.  
« Last Edit: Fri, Jul 16, 2010 by BuGG »