bright-gpu-74537
04/11/2021, 6:37 PMorange-van-60470
04/11/2021, 6:37 PMorange-van-60470
04/11/2021, 6:40 PMbright-gpu-74537
04/11/2021, 6:41 PMorange-van-60470
04/11/2021, 6:41 PMuser
04/14/2021, 11:20 AMbright-gpu-74537
04/14/2021, 11:43 AMbright-gpu-74537
04/14/2021, 11:43 AMbright-gpu-74537
04/14/2021, 11:43 AMbright-gpu-74537
04/19/2021, 7:18 PMbright-gpu-74537
04/19/2021, 7:19 PMbright-gpu-74537
04/19/2021, 7:21 PMif ( !::AnimateWindow(GetHwnd(), timeout, dwFlags) ), yeah, at the os levelbright-gpu-74537
04/20/2021, 11:15 AMbright-gpu-74537
04/20/2021, 11:15 AMhttp://haxeui.org/shared/sidebar1.gifâ–¾
most-caravan-45834
04/20/2021, 2:37 PMbright-gpu-74537
04/21/2021, 6:33 AMbright-gpu-74537
04/21/2021, 6:41 AMmammoth-plastic-35593
04/23/2021, 2:39 AMFocusManager is the sort of thing that might help me here, but trying to get the position of buttons in screen-space doesn't seem to work. .top and .left give me what looks like the relative position within their parent container and not absolute position. getPosition() and getScreenPosition() both just return (0, 0).most-caravan-45834
04/23/2021, 3:08 AMmost-caravan-45834
04/23/2021, 3:09 AMbrave-kangaroo-30399
04/23/2021, 3:11 AMbrave-kangaroo-30399
04/23/2021, 3:12 AMbrave-kangaroo-30399
04/23/2021, 3:13 AMcomponents array since you can't go up the chain via flixel alonebrave-kangaroo-30399
04/23/2021, 3:17 AMbrave-kangaroo-30399
04/23/2021, 3:18 AMmammoth-plastic-35593
04/23/2021, 3:55 AMvar focus:Component = FocusManager.instance.focusNext();
var absPos = FlxPoint.get();
var traceUp = focus;
while (traceUp != null) {
absPos.x += traceUp.left;
absPos.y += traceUp.top;
traceUp = traceUp.parentComponent;
}
trace('recursive pos: ${absPos}');
It does seem that @User 's observation that x and y are behaving a little strangely is reflected here (I had to use top and left as those were the only ones with correct values).mammoth-plastic-35593
04/23/2021, 3:57 AMbrave-kangaroo-30399
04/23/2021, 3:58 AMleft and top are local. Flixel's x and y are weirdmost-caravan-45834
04/23/2021, 6:30 AMbright-gpu-74537
04/23/2021, 6:52 AM