HaxeFlixel / HaxeFlixel/flixel-ui
FlxInputText Crashes when given a background color
Open
Nobody has claimed this yet.
- Dominant language
- Haxe
- Stars
- 201
- Forks
- 75
- PR merge metrics
- No merged PRs in 30d
Description
When providing a background color for FlxInputText widgets via an XML generated FlxUI the game crashes with this error:
Uncaught TypeError: Cannot read property 'bitmap' of null
at flixel_graphics_tile_FlxDrawQuadsItem.render (:8080/static/games/tinsdalia-hf/Tinsdalia/export/html5/bin/Tinsdalia.js:39151)
at flixel_FlxCamera.render (:8080/static/games/tinsdalia-hf/Tinsdalia/export/html5/bin/Tinsdalia.js:7238)
at flixel_FlxGame.draw (:8080/static/games/tinsdalia-hf/Tinsdalia/export/html5/bin/Tinsdalia.js:10397)
at flixel_FlxGame.onEnterFrame (:8080/static/games/tinsdalia-hf/Tinsdalia/export/html5/bin/Tinsdalia.js:10229)
at openfl_events__$EventDispatcher_Listener.f [as callback] (:8080/static/games/tinsdalia-hf/Tinsdalia/export/html5/bin/Tinsdalia.js:124503)
at openfl_display_Stage.__dispatchEvent (:8080/static/games/tinsdalia-hf/Tinsdalia/export/html5/bin/Tinsdalia.js:1086)
at openfl_display_Stage.__dispatch (:8080/static/games/tinsdalia-hf/Tinsdalia/export/html5/bin/Tinsdalia.js:2002)
at openfl_display_Stage.__broadcastEvent (:8080/static/games/tinsdalia-hf/Tinsdalia/export/html5/bin/Tinsdalia.js:113546)
at openfl_display_Stage.render (:8080/static/games/tinsdalia-hf/Tinsdalia/export/html5/bin/Tinsdalia.js:113360)
at Array.f (:8080/static/games/tinsdalia-hf/Tinsdalia/export/html5/bin/Tinsdalia.js:124503)
:8080/static/games/tinsdalia-hf/Tinsdalia/export/html5/bin/Tinsdalia.js:124444 Uncaught TypeError: Cannot read property 'setMode' of null
at resize (:8080/static/games/tinsdalia-hf/Tinsdalia/export/html5/bin/Tinsdalia.js:124444)
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the HTML5 crash with an XML-generated FlxUI containing a FlxInputText background color, then trace the FlxInputText rendering path from the reported FlxDrawQuadsItem.render stack frame. Check both the bitmap-null error and the resize setMode error; done means the widget renders and resizes without either exception.
Written by the indexing model from the issue text.
Assessment
- Domain
- game-dev
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 28/100