options

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 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 CardTextOptions added in v0.2.1

type CardTextOptions struct {
	Subtitle string `json:"subtitle"`
	Title    string `json:"title"`
}

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"`
	SplitOffset      float64       `json:"split_offset"`
	Window           WindowOptions `json:"window"`
	WindowOptions    WindowOptions `json:"window_options"`
}

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"`
	Greeting             GreetingTextOptions `json:"greeting"`
	OptionCardLanguage   CardTextOptions     `json:"optioncard_language"`
	Window               WindowTextOptions   `json:"window"`
	WindowOptions        WindowTextOptions   `json:"window_options"`
}

type GreetingTextOptions added in v0.3.0

type GreetingTextOptions struct {
	PlaceholderDeleted  string `json:"placeholder_deleted"`
	PlaceholderUnloaded string `json:"placeholder_noload"`
}

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)

func (*Options) SaveGUI added in v0.3.0

func (opt *Options) SaveGUI(pathToOptions string) error

func (*Options) SaveNet added in v0.3.0

func (opt *Options) SaveNet(pathToOptions string) 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