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