flixel-ui icon indicating copy to clipboard operation
flixel-ui copied to clipboard

FlxUI dropdown focus logic only works for widgets created from xml

Open Gama11 opened this issue 10 years ago • 3 comments
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

Gama11 avatar Apr 12 '15 15:04 Gama11

Ah, thanks for this. Will look into it Monday if I can.

larsiusprime avatar Apr 12 '15 17:04 larsiusprime

Ever got a chance to look into this?

Gama11 avatar Dec 22 '15 21:12 Gama11

Not yet... sorry. I can try a refactor soonish.

larsiusprime avatar Dec 22 '15 21:12 larsiusprime