config

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HotkeyRecoder = iota + 1
	HotkeyWeather30
	HotkeyWeather50
	HotkeyWeather70
	Overlay
)

Variables

This section is empty.

Functions

func Write

func Write(c *CaptureConfig) error

Write saves configuration to json file

Types

type CaptureConfig

type CaptureConfig struct {
	sync.Mutex
	X, Y, H                 int
	Presets                 map[string]Preset
	AppRoot                 string
	Recordings              string
	FilterThreshold         int
	FilteredPreview         bool
	EVEClientWindowTitle    string
	EVEClientUIScaling      string
	EVEGameLogsFolder       string
	TestServer              bool
	RecorderShortcutText    string
	RecorderShortcut        walk.Shortcut
	Weather30ShortcutText   string
	Weather30Shortcut       walk.Shortcut
	Weather50ShortcutText   string
	Weather50Shortcut       walk.Shortcut
	Weather70ShortcutText   string
	Weather70Shortcut       walk.Shortcut
	OverlayShortcutText     string
	OverlayShortcut         walk.Shortcut
	LootRecordDiscriminator string
	ActiveCharacter         int32
	AutoUpload              bool
	AbyssTypeOverride       bool
	AbyssShipType           int
	AbyssTier               int
	AbyssWeather            string
	SuppressNotifications   bool
	OverlayPosition         walk.Rectangle
	OverlayConfig           struct {
		FontFamily      string
		FontSize        int
		BackgroundColor string
		Color           string
		Spacing         int
	}
}

func Read

func Read() (*CaptureConfig, error)

Read reads configuration from json file, or creates one if file doesn't exist

func (*CaptureConfig) SetRecorderShortcut

func (c *CaptureConfig) SetRecorderShortcut(shorcutType int, s walk.Shortcut)

SetRecorderShortcut satisfies ShortcutSetter interface.

type Preset

type Preset struct {
	X, Y, H int
}

Jump to

Keyboard shortcuts

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