Documentation ¶
Index ¶
- Constants
- Variables
- func GameNameString(game Game) string
- func String(game Game) string
- type Configs
- func (c *Configs) AddDir(game Game, dirKind DirKind, from string) (string, error)
- func (c *Configs) GetBackupFullPath(game Game) string
- func (c *Configs) GetDir(game Game, dirKind DirKind) (dir string, err error)
- func (c *Configs) GetDownloadFullPathForGame(game Game) string
- func (c *Configs) GetDownloadFullPathForUtility() string
- func (c *Configs) GetGameDir(game Game) (s string)
- func (c *Configs) GetGameDirSuffix(game Game) (s string)
- func (c *Configs) GetModsFullPath(game Game) string
- func (c *Configs) Initialize() (err error)
- func (c *Configs) RemoveGameDir(game Game, to string) string
- func (c *Configs) Save() (err error)
- func (c *Configs) Size() fyne.Size
- type DirKind
- type Game
- type GameName
- type Secret
- type ThemeColor
Constants ¶
View Source
const ( WindowWidth = 1200 WindowHeight = 850 )
View Source
const GameCount = 9
Variables ¶
View Source
var GameNames = []string{ GameNameString(I), GameNameString(II), GameNameString(III), GameNameString(IV), GameNameString(V), GameNameString(VI), GameNameString(ChronoCross), }
View Source
var (
PWD string
)
Functions ¶
func GameNameString ¶
Types ¶
type Configs ¶
type Configs struct { FirstTime bool `json:"firstTime"` WindowX int `json:"width"` WindowY int `json:"height"` DirI string `json:"dir1"` DirII string `json:"dir2"` DirIII string `json:"dir3"` DirIV string `json:"dir4"` DirV string `json:"dir5"` DirVI string `json:"dir6"` DirChrCrs string `json:"chrCrs"` DirBofIII string `json:"bof3"` DirBofIV string `json:"bof4"` ModsDir string `json:"modDir"` ImgCacheDir string `json:"imgCacheDir"` DownloadDir string `json:"downloadDir"` BackupDir string `json:"backupDir"` Theme ThemeColor `json:"theme"` DefaultGame string `json:"openTo"` }
func (*Configs) GetBackupFullPath ¶
func (*Configs) GetDownloadFullPathForGame ¶
func (*Configs) GetDownloadFullPathForUtility ¶
func (*Configs) GetGameDir ¶
func (*Configs) GetGameDirSuffix ¶
func (*Configs) GetModsFullPath ¶
func (*Configs) Initialize ¶
func (*Configs) RemoveGameDir ¶ added in v0.5.0
type Secret ¶
type Secret struct {
NexusApiKey string `json:"nexusApiKey"`
}
func GetSecrets ¶
func GetSecrets() *Secret
func (*Secret) Initialize ¶
func (s *Secret) Initialize()
Click to show internal directories.
Click to hide internal directories.