Documentation
¶
Overview ¶
Package hsconfig provides the Hellspawner application config file implementation.
Index ¶
Constants ¶
View Source
const (
// DefaultBGColor is the default background color of the main window
DefaultBGColor = 0x0a0a0aff
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
Path string `json:"-"`
RecentProjects []string `json:"recentProjects"`
AbyssEnginePath string `json:"abyssEnginePath"`
AuxiliaryMpqPath string `json:"auxiliaryMpqPath"`
ExternalListFile string `json:"externalListFile"`
OpenMostRecentOnStartup bool `json:"openMostRecentOnStartup"`
ProjectStates map[string]hsstate.AppState `json:"projectStates"`
LoggingToFile bool `json:"loggingToFile"`
LogFilePath string `json:"logFile"`
Locale hsenum.Locale `json:"locale"`
BGColor color.RGBA `json:"bgColor"`
}
Config represents HellSpawner's config
func (*Config) AddToRecentProjects ¶
AddToRecentProjects adds a path to recent opened projects
func (*Config) GetAuxMPQs ¶
GetAuxMPQs returns paths to auxiliary mpq's
Click to show internal directories.
Click to hide internal directories.