flixel-ui
flixel-ui copied to clipboard
FlxUI dropdown focus logic only works for widgets created from xml
trafficstars
There is special logic inside FlxUI.onFocus() to prevent clicking through the dropdown list of a FlxUIDropDownMenu (e.g. if there is a button under it). However, this logic iterates over the members of the FlxUI instance which does not include widgets created via code. Besides, there isn't a FlxUI instance in the first place without an _xml_id.
This leads to a bug in the FlxTween demo: HaxeFlixel/flixel-demos#159
Ah, thanks for this. Will look into it Monday if I can.
Ever got a chance to look into this?
Not yet... sorry. I can try a refactor soonish.