-
Notifications
You must be signed in to change notification settings - Fork 63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FlxInputText Crashes when given a background color #210
Comments
What target? Looks like html5? Can you post a reproduction sample? (Your xml markup for instance?) |
Yeah, here's the markup:
Both input texts seem to work fine without a background color, but they don't render a UI sprite. |
#216 has a code example: package;
import flixel.FlxState;
import flixel.addons.ui.FlxInputText;
class PlayState extends FlxState
{
override public function create():Void
{
var tf:FlxInputText = new FlxInputText(50, 100, 300);
tf.borderColor = 0xFFFFFFFF;
tf.x = 50;
tf.y = 200;
tf.width = 300;
tf.height = 15;
tf.caretWidth = 5;
tf.callback = speakUp;
add(tf);
}
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When providing a background color for FlxInputText widgets via an XML generated FlxUI the game crashes with this error:
The text was updated successfully, but these errors were encountered: