extend hotbar hotkeys to 20 keys via shift (#33872)

shift+ keys in hotbar
This commit is contained in:
Ilya246
2025-04-19 02:45:20 +04:00
committed by GitHub
parent 3fc9bcbbbe
commit 615584e7e4
3 changed files with 72 additions and 1 deletions

View File

@@ -87,11 +87,22 @@ namespace Content.Shared.Input
public static readonly BoundKeyFunction Hotbar7 = "Hotbar7";
public static readonly BoundKeyFunction Hotbar8 = "Hotbar8";
public static readonly BoundKeyFunction Hotbar9 = "Hotbar9";
public static readonly BoundKeyFunction HotbarShift0 = "HotbarShift0";
public static readonly BoundKeyFunction HotbarShift1 = "HotbarShift1";
public static readonly BoundKeyFunction HotbarShift2 = "HotbarShift2";
public static readonly BoundKeyFunction HotbarShift3 = "HotbarShift3";
public static readonly BoundKeyFunction HotbarShift4 = "HotbarShift4";
public static readonly BoundKeyFunction HotbarShift5 = "HotbarShift5";
public static readonly BoundKeyFunction HotbarShift6 = "HotbarShift6";
public static readonly BoundKeyFunction HotbarShift7 = "HotbarShift7";
public static readonly BoundKeyFunction HotbarShift8 = "HotbarShift8";
public static readonly BoundKeyFunction HotbarShift9 = "HotbarShift9";
public static BoundKeyFunction[] GetHotbarBoundKeys() =>
new[]
{
Hotbar1, Hotbar2, Hotbar3, Hotbar4, Hotbar5, Hotbar6, Hotbar7, Hotbar8, Hotbar9, Hotbar0
Hotbar1, Hotbar2, Hotbar3, Hotbar4, Hotbar5, Hotbar6, Hotbar7, Hotbar8, Hotbar9, Hotbar0,
HotbarShift1, HotbarShift2, HotbarShift3, HotbarShift4, HotbarShift5, HotbarShift6, HotbarShift7, HotbarShift8, HotbarShift9, HotbarShift0
};
public static readonly BoundKeyFunction Vote0 = "Vote0";