mirror of
https://github.com/ppy/osu.git
synced 2025-01-07 18:33:04 +08:00
Fix key counter actions displaying out of order
This commit is contained in:
parent
daa0a05d9e
commit
5b96f01564
@ -136,7 +136,11 @@ namespace osu.Game.Rulesets.UI
|
|||||||
KeyBindingContainer.Add(receptor);
|
KeyBindingContainer.Add(receptor);
|
||||||
|
|
||||||
keyCounter.SetReceptor(receptor);
|
keyCounter.SetReceptor(receptor);
|
||||||
keyCounter.AddRange(KeyBindingContainer.DefaultKeyBindings.Select(b => b.GetAction<T>()).Distinct().Select(b => new KeyCounterAction<T>(b)));
|
keyCounter.AddRange(KeyBindingContainer.DefaultKeyBindings
|
||||||
|
.Select(b => b.GetAction<T>())
|
||||||
|
.Distinct()
|
||||||
|
.OrderBy(action => action)
|
||||||
|
.Select(action => new KeyCounterAction<T>(action)));
|
||||||
}
|
}
|
||||||
|
|
||||||
public class ActionReceptor : KeyCounterDisplay.Receptor, IKeyBindingHandler<T>
|
public class ActionReceptor : KeyCounterDisplay.Receptor, IKeyBindingHandler<T>
|
||||||
|
Loading…
Reference in New Issue
Block a user