settings

package
v0.0.0-...-0518d83 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2023 License: GPL-3.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Players get knocked out when they lose a combo to a miss or slider break
	ComboBreak = KnockoutMode(iota)

	// ComboBreak but only when they reached their max combo on the map
	MaxCombo

	// Players won't get knocked out
	XReplays

	// XReplays but Player scores other than 300's will be shown on the map
	OneVsOne

	// Forced Perfect mod
	SSOrQuit
)

Variables

View Source
var Audio = initAudio()
View Source
var Credentails = &credentials{}
View Source
var Cursor = initCursor()
View Source
var CursorDance = initCursorDance()
View Source
var DEBUG = false
View Source
var DIVIDES = 1
View Source
var DefaultsFactory = &defaultsFactory{}
View Source
var END = math.Inf(1)
View Source
var Gameplay = initGameplay()
View Source
var General = initGeneral()
View Source
var Graphics = initGraphics()
View Source
var Input = initInput()
View Source
var KNOCKOUT = false
View Source
var KNOCKOUTREPLAYS []string = nil
View Source
var Knockout = initKnockout()
View Source
var LOCALOFFSET = 0
View Source
var Objects = initObjects()
View Source
var PITCH = 1.0
View Source
var PLAY = false
View Source
var PLAYERS = 1
View Source
var Playfield = initPlayfield()
View Source
var RECORD = false
View Source
var REPLAY = ""
View Source
var Recording = initRecording()
View Source
var SKIP = false
View Source
var SPEED = 1.0
View Source
var START = 0.0
View Source
var Skin = initSkin()
View Source
var TAG = 1

Functions

func CloseWatcher

func CloseWatcher()

func CreateDefault

func CreateDefault()

func GetCompressedString

func GetCompressedString() string

func LoadCredentials

func LoadCredentials()

func LoadSettings

func LoadSettings(version string) bool

func Save

func Save()

func SaveCredentials

func SaveCredentials(forceSave bool)

Types

type CombinedConfig

type CombinedConfig struct {
	Credentials *credentials `icon:"\uF084" label:"Credentials (Global)" liveedit:"false"` // key
	General     *general     `icon:"\uF0AD" liveedit:"false"`                              // wrench
	Graphics    *graphics    `icon:"\uE163"`                                               // display
	Audio       *audio       `icon:"\uF028"`                                               // volume-high
	Input       *input       `icon:"\uF11C"`                                               // keyboard
	Gameplay    *gameplay    `icon:"\uF192"`                                               // circle-dot
	Skin        *skin        `icon:"\uF1FC"`                                               // paintbrush
	Cursor      *cursor      `icon:"\uF245"`                                               // arrow-pointer
	Objects     *objects     `icon:"\uF1E0"`                                               // share-nodes
	Playfield   *playfield   `icon:"\uF43C"`                                               // chess-board
	CursorDance *cursorDance `icon:"\uE599"`                                               // worm
	Knockout    *knockout    `icon:"\uF0CB"`                                               // list-ol
	Recording   *recording   `icon:"\uF03D"`                                               // video
}

type Config

type Config struct {
	General     *general     `icon:"\uF0AD"`                   // wrench
	Graphics    *graphics    `icon:"\uE163"  liveedit:"false"` // display
	Audio       *audio       `icon:"\uF028"`                   // volume-high
	Input       *input       `icon:"\uF11C"`                   // keyboard
	Gameplay    *gameplay    `icon:"\uF192"`                   // circle-dot
	Skin        *skin        `icon:"\uF1FC"`                   // paintbrush
	Cursor      *cursor      `icon:"\uF245"`                   // arrow-pointer
	Objects     *objects     `icon:"\uF1E0"`                   // share-nodes
	Playfield   *playfield   `icon:"\uF43C"`                   // chess-board
	CursorDance *cursorDance `icon:"\uE599"`                   // worm
	Knockout    *knockout    `icon:"\uF0CB"`                   // list-ol
	Recording   *recording   `icon:"\uF03D"`                   // video
	Dance       *danceOld    `json:",omitempty" icon:"\uF5B7"`
	// contains filtered or unexported fields
}

func GetFormat

func GetFormat() *Config

func LoadConfig

func LoadConfig(file *os.File) (*Config, error)

func NewConfigFile

func NewConfigFile() *Config

func (*Config) GetCombined

func (config *Config) GetCombined() *CombinedConfig

func (*Config) GetCompressedString

func (config *Config) GetCompressedString() string

func (*Config) Save

func (config *Config) Save(path string, forceSave bool)

type EncoderOptions

type EncoderOptions interface {
	GenerateFFmpegArgs() ([]string, error)
}

type HSV

type HSV struct {
	Hue, Saturation, Value float64
}

type KnockoutMode

type KnockoutMode int

Jump to

Keyboard shortcuts

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