Add: Alas.EmulatorInfo settings

This commit is contained in:
LmeSzinc 2024-03-28 12:44:42 +08:00
parent 06cd62f3ee
commit 6987d60c96
9 changed files with 165 additions and 102 deletions

View File

@ -9,11 +9,10 @@
"ScreenshotDedithering": false,
"AdbRestart": false
},
"RestartEmulator": {
"Enable": false,
"EmulatorData": "emulator:\nname:\npath:",
"ErrorRestart": false,
"DailyRestart": false
"EmulatorInfo": {
"Emulator": "auto",
"name": null,
"path": null
},
"Error": {
"HandleError": true,

View File

@ -139,23 +139,34 @@
"value": false
}
},
"RestartEmulator": {
"Enable": {
"type": "checkbox",
"value": false
"EmulatorInfo": {
"Emulator": {
"type": "select",
"value": "auto",
"option": [
"auto",
"NoxPlayer",
"NoxPlayer64",
"BlueStacks4",
"BlueStacks5",
"BlueStacks4HyperV",
"BlueStacks5HyperV",
"LDPlayer3",
"LDPlayer4",
"LDPlayer9",
"MuMuPlayer",
"MuMuPlayerX",
"MuMuPlayer12",
"MEmuPlayer"
]
},
"EmulatorData": {
"name": {
"type": "textarea",
"value": "emulator:\nname:\npath:",
"mode": "yaml"
"value": null
},
"ErrorRestart": {
"type": "checkbox",
"value": false
},
"DailyRestart": {
"type": "checkbox",
"value": false
"path": {
"type": "textarea",
"value": null
}
},
"Error": {

View File

@ -38,17 +38,31 @@ Emulator:
option: [ ADB, uiautomator2, minitouch, Hermit, MaaTouch ]
ScreenshotDedithering: false
AdbRestart: false
RestartEmulator:
Enable: false
EmulatorData:
EmulatorInfo:
Emulator:
value: auto
option: [
auto,
NoxPlayer,
NoxPlayer64,
BlueStacks4,
BlueStacks5,
BlueStacks4HyperV,
BlueStacks5HyperV,
LDPlayer3,
LDPlayer4,
LDPlayer9,
MuMuPlayer,
MuMuPlayerX,
MuMuPlayer12,
MEmuPlayer,
]
name:
value: null
type: textarea
path:
value: null
type: textarea
mode: yaml
value: |-
emulator:
name:
path:
ErrorRestart: False
DailyRestart: False
Error:
HandleError: true
SaveError: true

View File

@ -10,7 +10,7 @@ Alas:
tasks:
Alas:
- Emulator
- RestartEmulator
- EmulatorInfo
- Error
- Optimization
- DropRecord

View File

@ -26,11 +26,10 @@ class GeneratedConfig:
Emulator_ScreenshotDedithering = False
Emulator_AdbRestart = False
# Group `RestartEmulator`
RestartEmulator_Enable = False
RestartEmulator_EmulatorData = 'emulator:\nname:\npath:'
RestartEmulator_ErrorRestart = False
RestartEmulator_DailyRestart = False
# Group `EmulatorInfo`
EmulatorInfo_Emulator = 'auto' # auto, NoxPlayer, NoxPlayer64, BlueStacks4, BlueStacks5, BlueStacks4HyperV, BlueStacks5HyperV, LDPlayer3, LDPlayer4, LDPlayer9, MuMuPlayer, MuMuPlayerX, MuMuPlayer12, MEmuPlayer
EmulatorInfo_name = None
EmulatorInfo_path = None
# Group `Error`
Error_HandleError = True

View File

@ -429,26 +429,36 @@
"help": ""
}
},
"RestartEmulator": {
"EmulatorInfo": {
"_info": {
"name": "Restart Emulator",
"name": "Emulator Settings",
"help": "The following values are auto-filled according to \"Serial\", if you dont understand, please don't modify them"
},
"Emulator": {
"name": "Emulator Type",
"help": "",
"auto": "Auto-detect",
"NoxPlayer": "Nox Player",
"NoxPlayer64": "Nox Player 64bit",
"BlueStacks4": "BlueStacks 4",
"BlueStacks5": "BlueStacks 5",
"BlueStacks4HyperV": "BlueStacks 4 Hyper-V",
"BlueStacks5HyperV": "BlueStacks 5 Hyper-V",
"LDPlayer3": "LD Player 3",
"LDPlayer4": "LD Player 4",
"LDPlayer9": "LD Player 9",
"MuMuPlayer": "MuMu Player",
"MuMuPlayerX": "MuMu Player X",
"MuMuPlayer12": "MuMu Player 12",
"MEmuPlayer": "MEmu Player"
},
"name": {
"name": "Emulator Instance Name",
"help": ""
},
"Enable": {
"name": "RestartEmulator.Enable.name",
"help": "RestartEmulator.Enable.help"
},
"EmulatorData": {
"name": "RestartEmulator.EmulatorData.name",
"help": "RestartEmulator.EmulatorData.help"
},
"ErrorRestart": {
"name": "Restart Emulator on Error",
"help": "Automatically restart the emulator when it cannot be connected"
},
"DailyRestart": {
"name": "Restart Emulator when Server Refreshes",
"help": "Restart emulator every day to solve the memory leak problem"
"path": {
"name": "Emulator Installation Path",
"help": ""
}
},
"Error": {

View File

@ -429,26 +429,36 @@
"help": "Emulator.AdbRestart.help"
}
},
"RestartEmulator": {
"EmulatorInfo": {
"_info": {
"name": "RestartEmulator._info.name",
"help": "RestartEmulator._info.help"
"name": "EmulatorInfo._info.name",
"help": "EmulatorInfo._info.help"
},
"Enable": {
"name": "RestartEmulator.Enable.name",
"help": "RestartEmulator.Enable.help"
"Emulator": {
"name": "EmulatorInfo.Emulator.name",
"help": "EmulatorInfo.Emulator.help",
"auto": "auto",
"NoxPlayer": "NoxPlayer",
"NoxPlayer64": "NoxPlayer64",
"BlueStacks4": "BlueStacks4",
"BlueStacks5": "BlueStacks5",
"BlueStacks4HyperV": "BlueStacks4HyperV",
"BlueStacks5HyperV": "BlueStacks5HyperV",
"LDPlayer3": "LDPlayer3",
"LDPlayer4": "LDPlayer4",
"LDPlayer9": "LDPlayer9",
"MuMuPlayer": "MuMuPlayer",
"MuMuPlayerX": "MuMuPlayerX",
"MuMuPlayer12": "MuMuPlayer12",
"MEmuPlayer": "MEmuPlayer"
},
"EmulatorData": {
"name": "RestartEmulator.EmulatorData.name",
"help": "RestartEmulator.EmulatorData.help"
"name": {
"name": "EmulatorInfo.name.name",
"help": "EmulatorInfo.name.help"
},
"ErrorRestart": {
"name": "RestartEmulator.ErrorRestart.name",
"help": "RestartEmulator.ErrorRestart.help"
},
"DailyRestart": {
"name": "RestartEmulator.DailyRestart.name",
"help": "RestartEmulator.DailyRestart.help"
"path": {
"name": "EmulatorInfo.path.name",
"help": "EmulatorInfo.path.help"
}
},
"Error": {

View File

@ -429,26 +429,36 @@
"help": ""
}
},
"RestartEmulator": {
"EmulatorInfo": {
"_info": {
"name": "重启模拟器",
"name": "模拟器设置",
"help": "下列数值是根据Serial自动填充的如果不懂请不要随意修改"
},
"Emulator": {
"name": "模拟器类型",
"help": "",
"auto": "自动检测",
"NoxPlayer": "夜神模拟器",
"NoxPlayer64": "夜神模拟器64位",
"BlueStacks4": "蓝叠模拟器4",
"BlueStacks5": "蓝叠模拟器5",
"BlueStacks4HyperV": "蓝叠模拟器4 Hyper-V",
"BlueStacks5HyperV": "蓝叠模拟器5 Hyper-V",
"LDPlayer3": "雷电模拟器3",
"LDPlayer4": "雷电模拟器4",
"LDPlayer9": "雷电模拟器9",
"MuMuPlayer": "MuMu模拟器",
"MuMuPlayerX": "MuMu模拟器X",
"MuMuPlayer12": "MuMu模拟器12",
"MEmuPlayer": "逍遥模拟器"
},
"name": {
"name": "模拟器实例名称",
"help": ""
},
"Enable": {
"name": "RestartEmulator.Enable.name",
"help": "RestartEmulator.Enable.help"
},
"EmulatorData": {
"name": "RestartEmulator.EmulatorData.name",
"help": "RestartEmulator.EmulatorData.help"
},
"ErrorRestart": {
"name": "出错时重启模拟器",
"help": "在无法连接到模拟器时自动重启模拟器"
},
"DailyRestart": {
"name": "服务器刷新时重启模拟器",
"help": "每天主动重启模拟器以解决内存泄漏问题"
"path": {
"name": "模拟器安装路径",
"help": ""
}
},
"Error": {

View File

@ -429,26 +429,36 @@
"help": ""
}
},
"RestartEmulator": {
"EmulatorInfo": {
"_info": {
"name": "重啟模擬器",
"name": "模擬器設定",
"help": "下列數值是根據Serial自動填充的如果不懂請不要隨意修改"
},
"Emulator": {
"name": "模擬器類型",
"help": "",
"auto": "自動檢測",
"NoxPlayer": "夜神模擬器",
"NoxPlayer64": "夜神模擬器64位",
"BlueStacks4": "藍疊模擬器4",
"BlueStacks5": "藍疊模擬器5",
"BlueStacks4HyperV": "藍疊模擬器4 Hyper-V",
"BlueStacks5HyperV": "藍疊模擬器5 Hyper-V",
"LDPlayer3": "雷電模擬器3",
"LDPlayer4": "雷電模擬器4",
"LDPlayer9": "雷電模擬器9",
"MuMuPlayer": "MuMu模擬器",
"MuMuPlayerX": "MuMu模擬器X",
"MuMuPlayer12": "MuMu模擬器12",
"MEmuPlayer": "逍遙模擬器"
},
"name": {
"name": "模擬器實例名稱",
"help": ""
},
"Enable": {
"name": "RestartEmulator.Enable.name",
"help": "RestartEmulator.Enable.help"
},
"EmulatorData": {
"name": "RestartEmulator.EmulatorData.name",
"help": "RestartEmulator.EmulatorData.help"
},
"ErrorRestart": {
"name": "啟用重啟模擬器",
"help": "在模擬器被關閉的時候自動啟動模擬器"
},
"DailyRestart": {
"name": "伺服器重繪時重啟模擬器",
"help": "每天主動重啟模擬器以解决記憶體洩漏問題"
"path": {
"name": "模擬器安裝路徑",
"help": ""
}
},
"Error": {