app

package
v1.8.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 2, 2025 License: MIT Imports: 10 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	Config   config.AppConfig
	GUIApp   fyne.App
	HWND     win.HWND
	AppState AppState
	AppSize  config.Resolution
}

func CreateApp

func CreateApp(config config.AppConfig, guiApp fyne.App) *App

func (*App) CaptureCharacter

func (app *App) CaptureCharacter()

CaptureCharacter Detect the current character currently selected

func (*App) CaptureGameData

func (app *App) CaptureGameData()

CaptureGameData Captures game data such as character and location

func (*App) CaptureGameMenu

func (app *App) CaptureGameMenu()

CaptureGameMenu Capture the current game menu

func (*App) CaptureLocation

func (app *App) CaptureLocation()

CaptureLocation Detect the current location of the player

func (*App) ConnectToDiscordGateway

func (app *App) ConnectToDiscordGateway() error

ConnectToDiscordGateway Connects to the Discord gateway

func (*App) DisconnectFromDiscordGateway

func (app *App) DisconnectFromDiscordGateway()

DisconnectFromDiscordGateway Disconnects from the Discord gateway

func (*App) GetWindow

func (app *App) GetWindow()

GetWindow Get the Honkai window handle

func (*App) HandleWindowClosed

func (app *App) HandleWindowClosed()

HandleWindowClosed Handles the scenario when the Honkai window is closed

func (*App) InitializeOCR

func (app *App) InitializeOCR()

InitializeOCR Initializes OCR for capturing game data

func (*App) IsWindowFocused

func (app *App) IsWindowFocused() bool

IsWindowFocused Checks if the Honkai window is currently focused

func (*App) ResetAppState

func (app *App) ResetAppState()

func (*App) SetPresence

func (app *App) SetPresence(rich client.Activity)

SetPresence Util to sets the Discord presence

func (*App) SetSize added in v1.2.0

func (app *App) SetSize()

SetSize Set App size

func (*App) StartLoop

func (app *App) StartLoop()

StartLoop Main loop of the app

func (*App) UpdateDiscordPresence

func (app *App) UpdateDiscordPresence()

UpdateDiscordPresence Updates the Discord presence based on game data

type AppState

type AppState struct {
	PlayerInfo         *utils.PlayerInfo
	CharacterPos       int32
	Character          utils.Data
	Location           utils.Data
	Menu               utils.Data
	LoopTime           time.Duration
	AppStarted         time.Time
	Combat             Combat
	IsInMenus          bool
	IsGatewayConnected bool
	IsOCRInitialized   bool
}

type Combat added in v1.5.1

type Combat struct {
	Started time.Time
	IsBoss  bool
	Boss    utils.Data
}

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL