]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
extend hotbar hotkeys to 20 keys via shift (#33872)
authorIlya246 <57039557+Ilya246@users.noreply.github.com>
Fri, 18 Apr 2025 22:45:20 +0000 (02:45 +0400)
committerGitHub <noreply@github.com>
Fri, 18 Apr 2025 22:45:20 +0000 (18:45 -0400)
shift+ keys in hotbar

Content.Shared/Input/ContentKeyFunctions.cs
Resources/Locale/en-US/escape-menu/ui/options-menu.ftl
Resources/keybinds.yml

index 863d9da970f73949f3ea49f233ff78d2fe3cac6a..76f30646b08d4a79a10adb2937b737c1cf65019d 100644 (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";
index 95c002b7452e14328c784d8d06875f849090d54b..357f551bc4985e4a9572d91d6a7c72e89cb7a97a 100644 (file)
@@ -227,6 +227,16 @@ ui-options-function-hotbar7 = Hotbar slot 7
 ui-options-function-hotbar8 = Hotbar slot 8
 ui-options-function-hotbar9 = Hotbar slot 9
 ui-options-function-hotbar0 = Hotbar slot 0
+ui-options-function-hotbarshift1 = Hotbar slot Shift+1
+ui-options-function-hotbarshift2 = Hotbar slot Shift+2
+ui-options-function-hotbarshift3 = Hotbar slot Shift+3
+ui-options-function-hotbarshift4 = Hotbar slot Shift+4
+ui-options-function-hotbarshift5 = Hotbar slot Shift+5
+ui-options-function-hotbarshift6 = Hotbar slot Shift+6
+ui-options-function-hotbarshift7 = Hotbar slot Shift+7
+ui-options-function-hotbarshift8 = Hotbar slot Shift+8
+ui-options-function-hotbarshift9 = Hotbar slot Shift+9
+ui-options-function-hotbarshift0 = Hotbar slot Shift+0
 ui-options-function-loadout1 = Hotbar Loadout 1
 ui-options-function-loadout2 = Hotbar Loadout 2
 ui-options-function-loadout3 = Hotbar Loadout 3
@@ -237,6 +247,16 @@ ui-options-function-loadout7 = Hotbar Loadout 7
 ui-options-function-loadout8 = Hotbar Loadout 8
 ui-options-function-loadout9 = Hotbar Loadout 9
 ui-options-function-loadout0 = Hotbar Loadout 0
+ui-options-function-loadoutshift1 = Hotbar Loadout Shift+1
+ui-options-function-loadoutshift2 = Hotbar Loadout Shift+2
+ui-options-function-loadoutshift3 = Hotbar Loadout Shift+3
+ui-options-function-loadoutshift4 = Hotbar Loadout Shift+4
+ui-options-function-loadoutshift5 = Hotbar Loadout Shift+5
+ui-options-function-loadoutshift6 = Hotbar Loadout Shift+6
+ui-options-function-loadoutshift7 = Hotbar Loadout Shift+7
+ui-options-function-loadoutshift8 = Hotbar Loadout Shift+8
+ui-options-function-loadoutshift9 = Hotbar Loadout Shift+9
+ui-options-function-loadoutshift0 = Hotbar Loadout Shift+0
 
 ui-options-function-shuttle-strafe-up = Strafe up
 ui-options-function-shuttle-strafe-right = Strafe right
index 3b8158b7c7af1b07e0ecf4978f47939dbacbf40a..8d4df5b92f52d7167b4efd1d4aecbb82cc8f9ede 100644 (file)
@@ -554,6 +554,46 @@ binds:
 - function: Hotbar9
   type: State
   key: Num9
+- function: HotbarShift0
+  type: State
+  key: Num0
+  mod1: Shift
+- function: HotbarShift1
+  type: State
+  key: Num1
+  mod1: Shift
+- function: HotbarShift2
+  type: State
+  key: Num2
+  mod1: Shift
+- function: HotbarShift3
+  type: State
+  key: Num3
+  mod1: Shift
+- function: HotbarShift4
+  type: State
+  key: Num4
+  mod1: Shift
+- function: HotbarShift5
+  type: State
+  key: Num5
+  mod1: Shift
+- function: HotbarShift6
+  type: State
+  key: Num6
+  mod1: Shift
+- function: HotbarShift7
+  type: State
+  key: Num7
+  mod1: Shift
+- function: HotbarShift8
+  type: State
+  key: Num8
+  mod1: Shift
+- function: HotbarShift9
+  type: State
+  key: Num9
+  mod1: Shift
 - function: MappingUnselect
   type: State
   key: MouseRight