mirror of
https://github.com/ppy/osu.git
synced 2025-02-23 08:32:55 +08:00
Add comment warning about enum entry order in GlobalAction
This commit is contained in:
parent
46e8187d48
commit
a8f07ae7b1
@ -227,6 +227,10 @@ namespace osu.Game.Input.Bindings
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <remarks>
|
||||||
|
/// IMPORTANT: New entries should always be added at the end of the enum, as key bindings are stored using the enum's numeric value and
|
||||||
|
/// changes in order would cause key bindings to get associated with the wrong action.
|
||||||
|
/// </remarks>
|
||||||
public enum GlobalAction
|
public enum GlobalAction
|
||||||
{
|
{
|
||||||
[LocalisableDescription(typeof(GlobalActionKeyBindingStrings), nameof(GlobalActionKeyBindingStrings.ToggleChat))]
|
[LocalisableDescription(typeof(GlobalActionKeyBindingStrings), nameof(GlobalActionKeyBindingStrings.ToggleChat))]
|
||||||
|
Loading…
Reference in New Issue
Block a user