ui

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2023 License: MIT Imports: 29 Imported by: 0

Documentation

Overview

Package ui provides a simple, cross-platform interface to the bot detector tool

TODO - Use external data map/struct(?) for table data updates - Remove old players from state on configurable delay

Index

Constants

View Source
const (
	AppId = "com.github.leighmacdonald.bd"
)

Variables

This section is empty.

Functions

func New

func New(ctx context.Context, logger *zap.Logger, bd *detector.BD, settings *model.Settings, version model.Version) model.UserInterface

Types

type MenuCreator func(window fyne.Window, steamId steamid.SID64, userId int64) *fyne.Menu

type Ui

type Ui struct {
	// contains filtered or unexported fields
}

func (*Ui) AddUserMessage

func (ui *Ui) AddUserMessage(msg model.UserMessage)

func (*Ui) Quit

func (ui *Ui) Quit()

func (*Ui) Refresh

func (ui *Ui) Refresh()

func (*Ui) SetAvatar

func (ui *Ui) SetAvatar(sid64 steamid.SID64, data []byte)

func (*Ui) Start

func (ui *Ui) Start(ctx context.Context)

func (*Ui) UpdateAttributes

func (ui *Ui) UpdateAttributes(attrs []string)

func (*Ui) UpdatePlayerState

func (ui *Ui) UpdatePlayerState(collection model.PlayerCollection)

func (*Ui) UpdateServerState

func (ui *Ui) UpdateServerState(state model.Server)

Jump to

Keyboard shortcuts

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