JS脚本归档 (#599)
This commit is contained in:
8
archive/Switch roles/main.js
Normal file
8
archive/Switch roles/main.js
Normal file
@@ -0,0 +1,8 @@
|
||||
(async function () {
|
||||
setGameMetrics(3840, 2160, 2);
|
||||
|
||||
keyPress(settings.n);
|
||||
await sleep(1000);
|
||||
|
||||
log.info("已切换至角色"+ settings.n);
|
||||
})();
|
||||
13
archive/Switch roles/manifest.json
Normal file
13
archive/Switch roles/manifest.json
Normal file
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"manifest_version": 1,
|
||||
"name": "切换角色",
|
||||
"version": "1.0",
|
||||
"description": "用于切换角色",
|
||||
"authors": [
|
||||
{
|
||||
"name": "LL"
|
||||
}
|
||||
],
|
||||
"settings_ui": "settings.json",
|
||||
"main": "main.js"
|
||||
}
|
||||
14
archive/Switch roles/settings.json
Normal file
14
archive/Switch roles/settings.json
Normal file
@@ -0,0 +1,14 @@
|
||||
[
|
||||
{
|
||||
"name": "n",
|
||||
"type": "select",
|
||||
"label": "角色序号",
|
||||
"options": [
|
||||
"1",
|
||||
"2",
|
||||
"3",
|
||||
"4",
|
||||
"5"
|
||||
]
|
||||
}
|
||||
]
|
||||
Reference in New Issue
Block a user