From 3af6d89844ba55fa72fcfa1560afb3e57ce59c27 Mon Sep 17 00:00:00 2001 From: Nat Quayle Nelson Date: Sun, 9 Jan 2022 23:52:04 -0700 Subject: [PATCH] alphabetize the skipToLabel buttons --- src/hollywoo_flixel/HollywooFlixelDSL.kiss | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/hollywoo_flixel/HollywooFlixelDSL.kiss b/src/hollywoo_flixel/HollywooFlixelDSL.kiss index b1ec5ec..5c6405d 100644 --- a/src/hollywoo_flixel/HollywooFlixelDSL.kiss +++ b/src/hollywoo_flixel/HollywooFlixelDSL.kiss @@ -54,8 +54,9 @@ (let [runners (labelRunners) buttons (new flixel.group.FlxGroup.FlxTypedGroup)] (localVar &mut buttonY 0) - (doFor =>label runner runners - (let [b (new flixel.ui.FlxButton 0 buttonY label ->{(FlxG.state.remove buttons)(runner)})] + (doFor label (sort (collect (runners.keys))) + (let [runner (dictGet runners label) + b (new flixel.ui.FlxButton 0 buttonY label ->{(FlxG.state.remove buttons)(runner)})] (buttons.add b)) (+= buttonY 20)) (FlxG.state.add buttons)))