⬗ (Osu! Background Manager) A little utility to replace, retrieve or remove backgrounds for every beatmap in your osu! folder ⬖
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
package settings
|
|
|
|
|
|
|
|
// the idea behind `Enabled` field is that if it`s not true - then
|
|
|
|
// we treat the path below as "" (blank string) , which workers will just ignore
|
|
|
|
// (therefore will not perform the replacement or retrievement)
|
|
|
|
|
|
|
|
type backgroundReplacement struct {
|
|
|
|
Enabled bool `json:"enabled"`
|
|
|
|
ReplacementImagePath string `json:"pathToimage"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type backgroundRetrievement struct {
|
|
|
|
Enabled bool `json:"enabled"`
|
|
|
|
RetrievementPath string `json:"retrievementPath"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type backgroundCreatement struct {
|
|
|
|
Enabled bool `json:"enabled"`
|
|
|
|
Width uint `json:"width"`
|
|
|
|
Height uint `json:"height"`
|
|
|
|
}
|
|
|
|
|
|
|
|
// struct for json settings` file contents
|
|
|
|
type Settings struct {
|
|
|
|
OsuDir string `json:"pathToOsu"`
|
|
|
|
BackgroundReplacement backgroundReplacement `json:"backgroundReplacement"`
|
|
|
|
BackgroundRetrievement backgroundRetrievement `json:"backgroundRetrievement"`
|
|
|
|
CreateBlackBGImage backgroundCreatement `json:"blackBackgroundCreatement"`
|
|
|
|
Workers int `json:"workers"`
|
|
|
|
}
|