Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
Path: blob/master/cheatGUI/src/utils/keybinds.ts
Views: 723
import { _ } from "../utils/util"; // Import Prodigy typings1import { Confirm, Toast } from "../utils/swal"; // Import Swal, Toast, Confirm, Input, and NumberInput from swal234567window.addEventListener("keydown", event => {89101112switch (event.key) {1314case "`":15// Close All Popups16_.instance.prodigy.open.menuCloseAll();17break;1819case "\\":20// Gets you kitted up in Celestial Gear21const k = async () => {22232425if (!(26await Confirm.fire("Kit", "Would you like to equip Celestial Gear?")27).value) {28return console.log("Cancelled");;29}3031_.player.equipment.setHat(200);32_.player.equipment.setBoots(93);33_.player.equipment.setOutfit(161);34_.player.equipment.setWeapon(196);3536_.player.appearanceChanged = true;3738Toast.fire("Success!", "You are now wearing Celestial Armor and wielding a Dual Blade.", "success");39};40k();41break;4243}44454647484950515253545556/*57if (event.code === "KeyL") {58Phaser.GAMES[0].state.states.Login._gameObj.user.x = Phaser.GAMES[0].input.mousePointer.position.x;59Phaser.GAMES[0].state.states.Login._gameObj.user.y = Phaser.GAMES[0].input.mousePointer.position.y;60}61if (event.code === "Escape") {62Phaser.GAMES[0].state.states.Login._gameObj.open.menus.map(x => x.close());63}64if (!Phaser.GAMES[0].state.states.Login._gameObj.open.menus.length) {65if (event.code === "KeyE") {66Phaser.GAMES[0].state.states.Login._gameObj.open.backpack();67}68if (event.code === "KeyT") {69Phaser.GAMES[0].state.states.Login._gameObj.open.chat();70}71}72*/73});747576