options

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2026 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ButtonOptions

type ButtonOptions struct{}

type ButtonTextOptions

type ButtonTextOptions struct {
	Label string `json:"label"`
}

type DialogOptions

type DialogOptions struct {
	Size []float32 `json:"size"`
}

type DialogTextOptions

type DialogTextOptions struct {
	Buttons []ButtonTextOptions `json:"buttons"`
	Prompt  string              `json:"prompt"`
	Title   string              `json:"title"`
}

type EntryOptions

type EntryOptions struct{}

type EntryTextOptions

type EntryTextOptions struct {
	Label string `json:"label"`
}

type GUIOptions

type GUIOptions struct {
	DialogConnIssues DialogOptions `json:"dialog_connection_issues"`
	DialogLogin      DialogOptions `json:"dialog_login"`
	Language         string        `json:"language"`
	Window           WindowOptions `json:"window"`
}

type GUITextOptions

type GUITextOptions struct {
	ButtonAttach         ButtonTextOptions `json:"button_attach"`
	ButtonOptions        ButtonTextOptions `json:"button_options"`
	ButtonSend           ButtonTextOptions `json:"button_send"`
	DialogConnIssues     DialogTextOptions `json:"dialog_connection_issues"`
	DialogLogin          DialogTextOptions `json:"dialog_login"`
	DialogLoginAltPrompt string            `json:"dialog_login_altprompt"`
	EntryMessage         EntryTextOptions  `json:"entry_message"`
	EntryUsername        EntryTextOptions  `json:"entry_username"`
	Window               WindowTextOptions `json:"window"`
}

type NetOptions

type NetOptions struct {
	InitialReconnCooldown int `json:"initial_reconn_cooldown"`
	ReconnCooldown        int `json:"reconn_cooldown"`
}

type Options

type Options struct {
	GUI     GUIOptions
	GUIText GUITextOptions
	Net     NetOptions
}

func LoadOptions

func LoadOptions(pathToOptions string) (*Options, error)

type WindowOptions

type WindowOptions struct {
	Size []float32 `json:"size"`
}

type WindowTextOptions

type WindowTextOptions struct {
	Title string `json:"title"`
}

Jump to

Keyboard shortcuts

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