From d3a873037d2375929a35dae6c16b420d95d40270 Mon Sep 17 00:00:00 2001 From: George FunBook Date: Mon, 15 Feb 2021 16:04:08 -0600 Subject: [PATCH] flicker on accept --- source/MainMenuState.hx | 5 ++--- source/ui/MenuItemList.hx | 2 ++ 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/source/MainMenuState.hx b/source/MainMenuState.hx index b25db84b1..a2d484650 100644 --- a/source/MainMenuState.hx +++ b/source/MainMenuState.hx @@ -1,11 +1,9 @@ package; -import flixel.util.FlxTimer; -import flixel.FlxState; -import cpp.abi.Abi; import flixel.FlxG; import flixel.FlxObject; import flixel.FlxSprite; +import flixel.FlxState; import flixel.addons.transition.FlxTransitionableState; import flixel.effects.FlxFlicker; import flixel.graphics.frames.FlxAtlasFrames; @@ -14,6 +12,7 @@ import flixel.text.FlxText; import flixel.tweens.FlxEase; import flixel.tweens.FlxTween; import flixel.util.FlxColor; +import flixel.util.FlxTimer; import io.newgrounds.NG; import lime.app.Application; diff --git a/source/ui/MenuItemList.hx b/source/ui/MenuItemList.hx index 491a39b02..241aac43d 100644 --- a/source/ui/MenuItemList.hx +++ b/source/ui/MenuItemList.hx @@ -65,6 +65,8 @@ class MenuTypedItemList extends FlxTypedGroup public function accept() { var selected = members[selectedIndex]; + onAcceptPress.dispatch(selected); + if (selected.fireInstantly) selected.callback(); else