options

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2026 License: AGPL-3.0 Imports: 4 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 AudioOptions added in v0.5.0

type AudioOptions struct {
	Enabled bool    `json:"enabled"`
	Volume  float64 `json:"volume"`
}

type AudioTextOptions added in v0.5.0

type AudioTextOptions struct {
	CardTitle    string `json:"card_title"`
	CardSubtitle string `json:"card_subtitle"`
	CheckEnabled string `json:"check_enabled"`
	LabelVolume  string `json:"label_volume"`
}

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 {
	Audio            AudioOptions  `json:"audio"`
	DialogConnIssues DialogOptions `json:"dialog_connection_issues"`
	DialogJoinChat   DialogOptions `json:"dialog_join_chat"`
	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 {
	Tabs                    TabTextOptions      `json:"tabs"`
	OptionCardAudio         AudioTextOptions    `json:"optioncard_audio"`
	ButtonAttach            ButtonTextOptions   `json:"button_attach"`
	ButtonCreateChat        ButtonTextOptions   `json:"button_create_chat"`
	ButtonJoinChat          ButtonTextOptions   `json:"button_join_chat"`
	ButtonSend              ButtonTextOptions   `json:"button_send"`
	DialogConnIssues        DialogTextOptions   `json:"dialog_connection_issues"`
	DialogJoinChat          DialogTextOptions   `json:"dialog_join_chat"`
	DialogJoinChatAltPrompt string              `json:"dialog_join_chat_altprompt"`
	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"`
	LabelChats              string              `json:"label_chats"`
	LabelDMs                string              `json:"label_dms"`
	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 TabTextOptions added in v0.5.0

type TabTextOptions struct {
	General string `json:"general"`
	Audio   string `json:"audio"`
}

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