- This project is a user interface developed based on the WPF framework, aiming to provide functionality similar to MaaPiCli.
- .NET8 runtime
- A non-integrated project based on the
maaframework
.
- Download workflows/install.yml from the project and modify the following:
project name
,author name
,project title
,MAAxxx
- Replace MAA project template .github/workflows/install.yml with the modified install.yml.
- Push the new version.
- Download and extract the latest release.
- Copy all content from
maafw/assets/resource
toMFAWPF/Resource
. - Copy the
maafw/assets/interface.json
file to the root directory ofMFAWPF/
. - Modify the newly copied
interface.json
file. - Below is an example:
{
"resource": [
{
"name": "Official",
"path": "{PROJECT_DIR}/resource/base"
},
{
"name": "Bilibili",
"path": [
"{PROJECT_DIR}/resource/base",
"{PROJECT_DIR}/resource/bilibili"
]
}
],
"task": [
{
"name": "Task",
"entry": "Task"
}
]
}
Modify it as follows:
{
"name": "Project Name", // Default is null
"version": "Project Version", // Default is null
"url": "Project URL (currently only supports Github)", // Default is null, for example, https://github.com/{GithubAccount}/{GithubRepo}
"custom_title": "Custom Title", // Default is null, after using this field, the title bar will only show custom_title and version
"default_controller": "adb", // Default is adb, the default controller after startup, options include adb or win32
"lock_controller":false, // Default is false, whether to lock the controller; when enabled, users cannot switch between adb and win32
"resource": [
{
"name": "Official",
"path": "{PROJECT_DIR}/resource/base"
},
{
"name": "Bilibili",
"path": [
"{PROJECT_DIR}/resource/base",
"{PROJECT_DIR}/resource/bilibili"
]
}
],
"task": [
{
"name": "Task",
"entry": "Task Interface",
"checked": true, // Default is false, whether the task is selected by default
"doc": "Documentation", // Default is null, displayed below the task setting options, supports rich text format (details below)
"repeatable": true, // Default is false, whether the task can be repeated
"repeat_count": 1 // Default task repeat count, requires repeatable to be true
}
]
}
-
[color:color_name]
: Color, such as[color:red]
. -
[size:font_size]
: Font size, such as[size:20]
. -
[b]
: Bold. -
[i]
: Italic. -
[u]
: Underline. -
[s]
:Strikethrough.
Note: The above comments are for documentation purposes and are not recommended for actual usage.
- Run the project
- The built-in MFATools can be used to crop images and obtain ROIs.
- Some areas are not fully developed yet, and contributions are welcome.
- Note that
MaaFramework
removed Exec Agent in version 2.0, so it's currently not possible to register Custom Actions and Custom Recognitions via interface registration. - Placing
logo.ico
in the same directory as the exe file will replace the window icon.
Note: In MFA, two new fields have been added to the task in the Pipeline, namely focus_tip
and focus_tip_color
.
focus
: bool
Whether to enablefocus_tip
. Optional, default is false.focus_tip
: string | list<string, >
When executing a task, this is the content output on the right-side log in MFA. Optional, default is empty.focus_tip_color
: string | list<string, >
The color of the content output when executing a task. Optional, default is Gray.
- MaaFramework:Automation testing framework
- MaaFramework.Binding.CSharp:The csharp binding of MaaFramework
- HandyControls:WPF control library
- NLog:C# logging library
- Newtonsoft.Json:C# JSON library
- GUI interface for editing Pipelines
- Support EN
-
GUI interface for editing interface.json