1
0
mirror of https://github.com/TheFunny/ArisuAutoSweeper synced 2026-06-09 20:04:52 +00:00

Upload code

This commit is contained in:
2023-11-01 15:33:35 +08:00
commit 6860f2eb72
415 changed files with 50990 additions and 0 deletions
+348
View File
@@ -0,0 +1,348 @@
{
"Alas": {
"Emulator": {
"Serial": {
"type": "input",
"value": "auto",
"valuetype": "str"
},
"PackageName": {
"type": "select",
"value": "auto",
"option": [
"auto",
"JP-Official"
]
},
"GameLanguage": {
"type": "select",
"value": "auto",
"option": [
"auto",
"jp"
]
},
"ScreenshotMethod": {
"type": "select",
"value": "scrcpy",
"option": [
"auto",
"ADB",
"ADB_nc",
"uiautomator2",
"aScreenCap",
"aScreenCap_nc",
"DroidCast",
"DroidCast_raw",
"scrcpy"
],
"display": "hide"
},
"ControlMethod": {
"type": "select",
"value": "MaaTouch",
"option": [
"minitouch",
"MaaTouch"
],
"display": "hide"
},
"AdbRestart": {
"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"
]
},
"name": {
"type": "textarea",
"value": null
},
"path": {
"type": "textarea",
"value": null
}
},
"Error": {
"Restart": {
"type": "select",
"value": "game",
"option": [
"game",
"game_emulator"
]
},
"SaveError": {
"type": "checkbox",
"value": true
},
"ScreenshotLength": {
"type": "input",
"value": 1
},
"OnePushConfig": {
"type": "textarea",
"value": "provider: null",
"mode": "yaml"
}
},
"Optimization": {
"ScreenshotInterval": {
"type": "input",
"value": 0.2,
"display": "hide"
},
"CombatScreenshotInterval": {
"type": "input",
"value": 1.0,
"display": "hide"
},
"WhenTaskQueueEmpty": {
"type": "select",
"value": "goto_main",
"option": [
"stay_there",
"goto_main",
"close_game"
]
}
}
},
"Restart": {
"Scheduler": {
"Enable": {
"type": "state",
"value": true,
"option": [
true
],
"option_bold": [
true
]
},
"NextRun": {
"type": "datetime",
"value": "2020-01-01 00:00:00",
"validate": "datetime"
},
"Command": {
"type": "input",
"value": "Restart",
"display": "hide"
},
"ServerUpdate": {
"type": "input",
"value": "04:00",
"display": "hide"
}
}
},
"Cafe": {
"Scheduler": {
"Enable": {
"type": "checkbox",
"value": true,
"option": [
true,
false
]
},
"NextRun": {
"type": "datetime",
"value": "2020-01-01 00:00:00",
"validate": "datetime"
},
"Command": {
"type": "input",
"value": "Cafe",
"display": "hide"
},
"ServerUpdate": {
"type": "input",
"value": "04:00, 16:00",
"display": "hide"
}
},
"Cafe": {
"Reward": {
"type": "checkbox",
"value": true
},
"Touch": {
"type": "checkbox",
"value": true
},
"AutoAdjust": {
"type": "checkbox",
"value": true
}
}
},
"Mail": {
"Scheduler": {
"Enable": {
"type": "checkbox",
"value": true,
"option": [
true,
false
]
},
"NextRun": {
"type": "datetime",
"value": "2020-01-01 00:00:00",
"validate": "datetime"
},
"Command": {
"type": "input",
"value": "Mail",
"display": "hide"
},
"ServerUpdate": {
"type": "input",
"value": "04:00",
"display": "hide"
}
}
},
"Circle": {
"Scheduler": {
"Enable": {
"type": "checkbox",
"value": true,
"option": [
true,
false
]
},
"NextRun": {
"type": "datetime",
"value": "2020-01-01 00:00:00",
"validate": "datetime"
},
"Command": {
"type": "input",
"value": "Circle",
"display": "hide"
},
"ServerUpdate": {
"type": "input",
"value": "04:00",
"display": "hide"
}
}
},
"TacticalChallenge": {
"Scheduler": {
"Enable": {
"type": "checkbox",
"value": true,
"option": [
true,
false
]
},
"NextRun": {
"type": "datetime",
"value": "2020-01-01 00:00:00",
"validate": "datetime"
},
"Command": {
"type": "input",
"value": "TacticalChallenge",
"display": "hide"
},
"ServerUpdate": {
"type": "input",
"value": "15:00",
"display": "hide"
}
},
"TacticalChallenge": {
"PlayerSelect": {
"type": "select",
"value": 0,
"option": [
0,
1,
2,
3
]
}
}
},
"DataUpdate": {
"Scheduler": {
"Enable": {
"type": "state",
"value": true,
"option": [
true
],
"option_bold": [
true
]
},
"NextRun": {
"type": "datetime",
"value": "2020-01-01 00:00:00",
"validate": "datetime"
},
"Command": {
"type": "input",
"value": "DataUpdate",
"display": "hide"
},
"ServerUpdate": {
"type": "input",
"value": "04:00",
"display": "hide"
}
},
"ItemStorage": {
"AP": {
"type": "stored",
"value": {},
"display": "hide",
"stored": "StoredAP",
"order": 1,
"color": "#62ea6e"
},
"Credit": {
"type": "stored",
"value": {},
"display": "hide",
"stored": "StoredInt",
"order": 2,
"color": "#fdec00"
},
"Pyroxene": {
"type": "stored",
"value": {},
"display": "hide",
"stored": "StoredInt",
"order": 3,
"color": "#21befc"
}
}
}
}
+100
View File
@@ -0,0 +1,100 @@
# --------------------
# Define arguments.
# --------------------
# ==================== Alas ====================
Scheduler:
Enable:
type: checkbox
value: false
option: [ true, false ]
NextRun: 2020-01-01 00:00:00
Command: Alas
ServerUpdate:
value: 04:00
display: hide
Emulator:
Serial:
value: auto
valuetype: str
PackageName:
value: auto
option: [ auto, ]
GameLanguage:
value: auto
option: [ auto, jp ]
ScreenshotMethod:
value: auto
option: [ auto, ADB, ADB_nc, uiautomator2, aScreenCap, aScreenCap_nc, DroidCast, DroidCast_raw, scrcpy ]
ControlMethod:
value: MaaTouch
option: [ minitouch, MaaTouch ]
AdbRestart: false
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
Error:
Restart:
value: game
option: [ game, game_emulator ]
SaveError: true
ScreenshotLength: 1
OnePushConfig:
type: textarea
mode: yaml
value: 'provider: null'
Optimization:
ScreenshotInterval: 0.3
CombatScreenshotInterval: 1.0
WhenTaskQueueEmpty:
value: goto_main
option: [ stay_there, goto_main, close_game ]
# ==================== Daily ====================
Cafe:
Reward: true
Touch: true
AutoAdjust: true
TacticalChallenge:
PlayerSelect:
value: 0
option: [ 0, 1, 2, 3 ]
ItemStorage:
AP:
stored: StoredAP
order: 1
color: "#62ea6e"
Credit:
stored: StoredInt
order: 2
color: "#fdec00"
Pyroxene:
stored: StoredInt
order: 3
color: "#21befc"
+18
View File
@@ -0,0 +1,18 @@
# --------------------
# Define default values
# --------------------
# ==================== Alas ====================
Cafe:
Scheduler:
Enable: true
Mail:
Scheduler:
Enable: true
Circle:
Scheduler:
Enable: true
TacticalChallenge:
Scheduler:
Enable: true
+103
View File
@@ -0,0 +1,103 @@
# Translations web gui
# This will insert to `config/i18n/{lang}.json`, under key `Gui`
Aside:
Install:
Home:
Develop:
Performance:
Setting:
AddAlas:
Button:
Start:
Stop:
ScrollON:
ScrollOFF:
ClearLog:
Setting:
CheckUpdate:
ClickToUpdate:
RetryUpdate:
CancelUpdate:
Toast:
DisableTranslateMode:
ConfigSaved:
AlasIsRunning:
ClickToUpdate:
Status:
Running:
Inactive:
Warning:
Updating:
MenuAlas:
Overview:
Log:
MenuDevelop:
HomePage:
Translate:
Update:
Remote:
Utils:
Overview:
Scheduler:
Log:
Running:
Pending:
Waiting:
NoTask:
Dashboard:
# From lang.readable_time()
NoData:
TimeError:
JustNow:
MinutesAgo:
HoursAgo:
DaysAgo:
LongTimeAgo:
AddAlas:
PopupTitle:
NewName:
CopyFrom:
Confirm:
FileExist:
InvalidChar:
InvalidPrefixTemplate:
Update:
UpToDate:
HaveUpdate:
UpdateStart:
UpdateWait:
UpdateRun:
UpdateSuccess:
UpdateFailed:
UpdateChecking:
UpdateCancel:
UpdateFinish:
Local:
Upstream:
Author:
Time:
Message:
DisabledWarn:
DetailedHistory:
Remote:
Running:
NotRunning:
NotEnable:
EntryPoint:
ConfigureHint:
SSHNotInstall:
Text:
InvalidFeedBack:
Clear:
+21
View File
@@ -0,0 +1,21 @@
{
"Alas": {
"menu": "list",
"page": "setting",
"tasks": [
"Alas",
"Restart"
]
},
"Daily": {
"menu": "list",
"page": "setting",
"tasks": [
"Cafe",
"Mail",
"Circle",
"TacticalChallenge",
"DataUpdate"
]
}
}
+40
View File
@@ -0,0 +1,40 @@
# --------------------
# Define non-modifiable values
# --------------------
# ==================== Alas ====================
Alas:
Emulator:
ScreenshotMethod: scrcpy
ControlMethod: MaaTouch
Optimization:
ScreenshotInterval: 0.2
CombatScreenshotInterval: 1.0
Restart:
Scheduler:
Enable:
type: state
value: true
option: [ true, ]
option_bold: [ true, ]
ServerUpdate: 04:00
# ==================== Daily ====================
Cafe:
Scheduler:
ServerUpdate: "04:00, 16:00"
TacticalChallenge:
Scheduler:
ServerUpdate: "15:00"
DataUpdate:
Scheduler:
Enable:
type: state
value: true
option: [ true, ]
option_bold: [ true, ]
+39
View File
@@ -0,0 +1,39 @@
{
"AP": {
"name": "AP",
"path": "DataUpdate.ItemStorage.AP",
"i18n": "ItemStorage.AP.name",
"stored": "StoredAP",
"attrs": {
"time": "2020-01-01 00:00:00",
"total": 0,
"value": 0
},
"order": 1,
"color": "#62ea6e"
},
"Credit": {
"name": "Credit",
"path": "DataUpdate.ItemStorage.Credit",
"i18n": "ItemStorage.Credit.name",
"stored": "StoredInt",
"attrs": {
"time": "2020-01-01 00:00:00",
"value": 0
},
"order": 2,
"color": "#fdec00"
},
"Pyroxene": {
"name": "Pyroxene",
"path": "DataUpdate.ItemStorage.Pyroxene",
"i18n": "ItemStorage.Pyroxene.name",
"stored": "StoredInt",
"attrs": {
"time": "2020-01-01 00:00:00",
"value": 0
},
"order": 3,
"color": "#21befc"
}
}
+37
View File
@@ -0,0 +1,37 @@
# --------------------
# Define argument group of tasks.
# --------------------
# ==================== Alas ====================
Alas:
menu: 'list'
page: 'setting'
tasks:
Alas:
- Emulator
- EmulatorInfo
- Error
- Optimization
Restart:
- Scheduler
# ==================== Daily ====================
Daily:
menu: 'list'
page: 'setting'
tasks:
Cafe:
- Scheduler
- Cafe
Mail:
- Scheduler
Circle:
- Scheduler
TacticalChallenge:
- Scheduler
- TacticalChallenge
DataUpdate:
- Scheduler
- ItemStorage