sonooverlay

package
v1.2.3 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2026 License: AGPL-3.0, AGPL-3.0-or-later Imports: 30 Imported by: 0

Documentation

Index

Constants

View Source
const Version = "1.2.1"

Variables

View Source
var ALL_FLICK = map[string]string{

	"NormalTapNote":   "NormalFlickNote",
	"CriticalTapNote": "CriticalFlickNote",

	"NormalSlideEndNote":   "NormalSlideEndFlickNote",
	"CriticalSlideEndNote": "CriticalSlideEndFlickNote",

	"NormalTraceNote":   "NormalTraceFlickNote",
	"CriticalTraceNote": "CriticalTraceFlickNote",

	"NormalTraceSlideEndNote":   "NormalTraceSlideEndFlickNote",
	"CriticalTraceSlideEndNote": "CriticalTraceSlideEndFlickNote",

	"NormalTailTapNote":       "NormalTailFlickNote",
	"CriticalTailTapNote":     "CriticalTailFlickNote",
	"NormalTailTraceNote":     "NormalTailTraceFlickNote",
	"CriticalTailTraceNote":   "CriticalTailTraceFlickNote",
	"NormalTailReleaseNote":   "NormalTailFlickNote",
	"CriticalTailReleaseNote": "CriticalTailFlickNote",
}
View Source
var WEIGHT_MAP = map[string]float64{}/* 126 elements not displayed */

Functions

func CopyFile

func CopyFile(src, dst string) error

func DetectAviUtl

func DetectAviUtl() (string, string, string)

func DownloadBackground

func DownloadBackground(source Source, level sonolus.LevelInfo, destPath string, chartId string, arg string, customBG bool) error

func DownloadBackgroundGenerator

func DownloadBackgroundGenerator(destPath string) error

func DownloadENLang

func DownloadENLang(destPath string) bool

func DownloadJacket

func DownloadJacket(source Source, level sonolus.LevelInfo, destPath string) error

func DownloadPreview

func DownloadPreview(source Source, level sonolus.LevelInfo, destPath string) error

func FetchChart

func FetchChart(source Source, chartId string) (sonolus.LevelInfo, error)

func FetchLevelData

func FetchLevelData(source Source, level sonolus.LevelInfo) (sonolus.LevelData, error)

func FontInstalled

func FontInstalled() bool

func ModifyAviUtlConfig

func ModifyAviUtlConfig(aviutlPath string, aviutlProcess string) bool

func SetOverlayDefault

func SetOverlayDefault() ([]string, []string)

func TryInstallObject

func TryInstallObject(aviutlPath string, aviutlProcess string, mappingObj []string) bool

func TryInstallScript

func TryInstallScript(aviutlPath string, aviutlProcess string) bool

func WriteAliasFiles

func WriteAliasFiles(assets string, destDir string, title string, description []string, descriptionv1 []string, difficulty string, extra string, exFile string, exFileOpacity string, mappingFile []string) error

func WriteExoFiles

func WriteExoFiles(assets string, destDir string, title string, description []string, descriptionv1 []string, difficulty string, extra string, exFile string, exFileOpacity string, mappingFile []string) error

func WritePedFile

func WritePedFile(frames []PedFrame, assets string, path string, levelInfo sonolus.LevelInfo, levelData sonolus.LevelData, scoreMode string, enUI bool) error

Types

type BpmChange

type BpmChange struct {
	Beat float64
	Bpm  float64
}

type PedFrame

type PedFrame struct {
	Time      float64
	SkillTime float64
	Score     float64
}

func CalculateScore

func CalculateScore(levelInfo sonolus.LevelInfo, levelData sonolus.LevelData, power float64, scoreMode string, allFlick bool) []PedFrame

type Source

type Source struct {
	Id     string
	Name   string
	Color  int
	Host   string
	Status int
}

func DetectChartSource

func DetectChartSource(chartId string, chartInstance string) (Source, error)

This part is not documented. I decided to document it here. ID: identifies the charting server. Name: The name of the server Color: Hex code color for the server Host: The source URL, without slashes, without https:// Status: The status. There are a couple of meanings: 0: Normal server 1: Server is dead (discontinued) 2: Server is in beta. You have been warned.

func DetectLocalChartSource

func DetectLocalChartSource() (Source, error)

Jump to

Keyboard shortcuts

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