mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-18 05:33:54 +01:00
Added alt g shortcut to gang and alt b shortcut to bladeburner
This commit is contained in:
parent
6efc3ec75e
commit
40713a4112
@ -31,6 +31,8 @@ Alt + f Switch to 'Factions' page
|
|||||||
Alt + a Switch to 'Augmentations' page
|
Alt + a Switch to 'Augmentations' page
|
||||||
Alt + u Switch to 'Tutorial' page
|
Alt + u Switch to 'Tutorial' page
|
||||||
Alt + o Switch to 'Options' page
|
Alt + o Switch to 'Options' page
|
||||||
|
Alt + g Switch to 'Gang' page
|
||||||
|
Alt + b Switch to 'Bladeburner' page
|
||||||
========== ===========================================================================
|
========== ===========================================================================
|
||||||
|
|
||||||
Script Editor
|
Script Editor
|
||||||
|
@ -134,7 +134,7 @@ $(document).keydown(function(e) {
|
|||||||
} catch(e) {}
|
} catch(e) {}
|
||||||
|
|
||||||
if (!Player.isWorking && !redPillFlag && !inMission && !cinematicTextFlag) {
|
if (!Player.isWorking && !redPillFlag && !inMission && !cinematicTextFlag) {
|
||||||
if (e.keyCode == 84 && e.altKey) {
|
if (e.keyCode == KEY.T && e.altKey) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
Engine.loadTerminalContent();
|
Engine.loadTerminalContent();
|
||||||
} else if (e.keyCode === KEY.C && e.altKey) {
|
} else if (e.keyCode === KEY.C && e.altKey) {
|
||||||
@ -174,6 +174,12 @@ $(document).keydown(function(e) {
|
|||||||
} else if (e.keyCode === KEY.U && e.altKey) {
|
} else if (e.keyCode === KEY.U && e.altKey) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
Engine.loadTutorialContent();
|
Engine.loadTutorialContent();
|
||||||
|
} else if (e.keyCode === KEY.B && e.altKey) {
|
||||||
|
e.preventDefault();
|
||||||
|
Engine.loadBladeburnerContent();
|
||||||
|
} else if (e.keyCode === KEY.G && e.altKey) {
|
||||||
|
e.preventDefault();
|
||||||
|
Engine.loadGangContent();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -4,30 +4,48 @@ import { IMap } from "../../src/types";
|
|||||||
* Keyboard key codes
|
* Keyboard key codes
|
||||||
*/
|
*/
|
||||||
export const KEY: IMap<number> = {
|
export const KEY: IMap<number> = {
|
||||||
A: 65,
|
CTRL: 17,
|
||||||
B: 66,
|
DOWNARROW: 40,
|
||||||
C: 67,
|
ENTER: 13,
|
||||||
CTRL: 17,
|
ESC: 27,
|
||||||
D: 68,
|
TAB: 9,
|
||||||
DOWNARROW: 40,
|
UPARROW: 38,
|
||||||
E: 69,
|
|
||||||
ENTER: 13,
|
"0": 48,
|
||||||
ESC: 27,
|
"1": 49,
|
||||||
F: 70,
|
"2": 50,
|
||||||
H: 72,
|
"3": 51,
|
||||||
J: 74,
|
"4": 52,
|
||||||
K: 75,
|
"5": 53,
|
||||||
L: 76,
|
"6": 54,
|
||||||
M: 77,
|
"7": 55,
|
||||||
N: 78,
|
"8": 56,
|
||||||
O: 79,
|
"9": 57,
|
||||||
P: 80,
|
|
||||||
R: 82,
|
A: 65,
|
||||||
S: 83,
|
B: 66,
|
||||||
TAB: 9,
|
C: 67,
|
||||||
U: 85,
|
D: 68,
|
||||||
UPARROW: 38,
|
E: 69,
|
||||||
W: 87,
|
F: 70,
|
||||||
"1": 49,
|
G: 71,
|
||||||
"2": 50,
|
H: 72,
|
||||||
|
I: 73,
|
||||||
|
J: 74,
|
||||||
|
K: 75,
|
||||||
|
L: 76,
|
||||||
|
M: 77,
|
||||||
|
N: 78,
|
||||||
|
O: 79,
|
||||||
|
P: 80,
|
||||||
|
Q: 81,
|
||||||
|
R: 82,
|
||||||
|
S: 83,
|
||||||
|
T: 84,
|
||||||
|
U: 85,
|
||||||
|
V: 86,
|
||||||
|
W: 87,
|
||||||
|
X: 88,
|
||||||
|
Y: 89,
|
||||||
|
Z: 90,
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user