Skip to content

Night-stars-1/MFW-ELE-GUI

Repository files navigation

MFW-ELE-GUI

基于MAA流水线协议的GUI

截图

截图

项目安装

安装

git clone --recursive https://github.com/Night-stars-1/maa-gui.git
$ pnpm install

开发

  • 根据.env的提示更改.env
  • 根据dev-app-update.ymlelectron-builder.yml的提示更改文件
$ pnpm dev

Build

# For windows
$ pnpm build:win

# For macOS
$ pnpm build:mac

# For Linux
$ pnpm build:linux

MAA行为扩展

src\main\customMaa中注册自定义行为,以达到更灵活的控制
最简示例:

{
    "识别并点击确认图标": {
        "next": [
            "我的自定义任务"
        ]
    },
    "我的自定义任务": {
        "recognition": "Custom",
        "custom_recognition": "MyReco",
        "action": "Custom",
        "custom_action": "MyAct"
    }
}
import * as maa from '@nekosu/maa-node'
const MyReco: maa.CustomRecognizerCallback = async (self) => {
  const data = await self.context.run_recognition('OCR', self.image, {
    OCR: { recognition: 'OCR', expected: '', roi: [593, 113, 516, 46] }
  })
  if (!data) {
    console.log('未识别到内容')
    return null
  }
  return null
}

function registerCustom(res: maa.Resource) {
  res.register_custom_recognizer('MyReco', MyReco)
}

Thanks

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published