mirror of https://github.com/ppy/osu
Merge pull request #10553 from bdach/fix-key-counter-order
Fix key counter actions displaying out of order
This commit is contained in:
commit
408183fdf9
|
@ -136,7 +136,11 @@ public void Attach(KeyCounterDisplay keyCounter)
|
|||
KeyBindingContainer.Add(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>
|
||||
|
|
Loading…
Reference in New Issue