From c8c261bc53d0bf661c5c98117833ec93c7c65838 Mon Sep 17 00:00:00 2001 From: linbooker <134063072+linbooker@users.noreply.github.com> Date: Mon, 21 Oct 2024 23:38:58 +0800 Subject: [PATCH] Add files via upload MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 切换队伍 --- repo/js/Switch roles/main.js | 8 ++++++++ repo/js/Switch roles/manifest.json | 13 +++++++++++++ repo/js/Switch roles/settings.json | 14 ++++++++++++++ 3 files changed, 35 insertions(+) create mode 100644 repo/js/Switch roles/main.js create mode 100644 repo/js/Switch roles/manifest.json create mode 100644 repo/js/Switch roles/settings.json diff --git a/repo/js/Switch roles/main.js b/repo/js/Switch roles/main.js new file mode 100644 index 00000000..ef88e97a --- /dev/null +++ b/repo/js/Switch roles/main.js @@ -0,0 +1,8 @@ +(async function () { + setGameMetrics(3840, 2160, 2); + + keyPress(settings.n); + await sleep(1000); + + log.info("已切换至角色"+ settings.n); +})(); \ No newline at end of file diff --git a/repo/js/Switch roles/manifest.json b/repo/js/Switch roles/manifest.json new file mode 100644 index 00000000..17382db4 --- /dev/null +++ b/repo/js/Switch roles/manifest.json @@ -0,0 +1,13 @@ +{ + "manifest_version": 1, + "name": "切换角色", + "version": "1.0", + "description": "用于切换角色", + "authors": [ + { + "name": "LL" + } + ], + "settings_ui": "settings.json", + "main": "main.js" +} \ No newline at end of file diff --git a/repo/js/Switch roles/settings.json b/repo/js/Switch roles/settings.json new file mode 100644 index 00000000..d90dc8c7 --- /dev/null +++ b/repo/js/Switch roles/settings.json @@ -0,0 +1,14 @@ +[ + { + "name": "n", + "type": "select", + "label": "角色序号", + "options": [ + "1", + "2", + "3", + "4", + "5" + ] + } +] \ No newline at end of file