Documentation
¶
Index ¶
- func CreateDir(path string) error
- func FindCurrentCharacter(hWnd win.HWND, coords []Rect) int32
- func GetAppPath() (string, error)
- func GetPixelColor(hWnd win.HWND, rect Rect) (color.RGBA, error)
- func GetWindowsAccentColor() (string, error)
- func InitOcr(cfg OCRConfig, hWnd win.HWND)
- func LoadGameData()
- func PanicRecover(r interface{}, guiApp ...fyne.App)
- func SaveImg(img image.Image, fileName string) error
- type Data
- type GameDataStruct
- type OCRConfig
- type OCRManager
- type PlayerInfo
- type Rect
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FindCurrentCharacter ¶
FindCurrentCharacter This function check the brightness of the pixels in the given coordinates to determine the current character
func GetAppPath ¶ added in v1.3.0
func GetWindowsAccentColor ¶ added in v1.3.0
func LoadGameData ¶
func LoadGameData()
func PanicRecover ¶
Types ¶
type Data ¶
func FindClosestCorrespondence ¶
FindClosestCorrespondence This function is useful to mitigate OCR errors by finding the closest correspondence to the given text
type GameDataStruct ¶
type GameDataStruct struct {
Characters []Data
Locations []Data
Menus []Data
SubMenus []Data
Bosses []Data
}
var GameData *GameDataStruct
type OCRManager ¶
var OcrManager *OCRManager
type PlayerInfo ¶ added in v1.4.0
type PlayerInfo struct {
Player struct {
UID string `json:"uid"`
Level int `json:"level"`
Nickname string `json:"nickname"`
} `json:"player"`
}
func GetPlayerInfos ¶ added in v1.4.0
func GetPlayerInfos(uuid string) (*PlayerInfo, error)
Click to show internal directories.
Click to hide internal directories.