Versions in this module Expand all Collapse all v0 v0.4.2 Jun 11, 2022 Changes in this version + var EventVolumeChange = event.RegisterEvent[VolumeChangePayload]() + func Init(masterVolume, mVolume, sVolume float64) + func NewBar(ctx *scene.Context, kind VolumeKind, pos floatgeom.Point2, w, h int) *entities.Entity + func PlayOneOfSFX(files ...string) + func PlaySFX(s string) error + func SetMasterVolume(eh event.Handler, masterVolume float64) + func SetSFXVolume(eh event.Handler, newVolume float64) + type DashedLine struct + DashMod int + Dims intgeom.Point2 + OffColor color.RGBA + OnColor color.RGBA + Progress float64 + func (dl *DashedLine) Draw(buff draw.Image, xOff, yOff float64) + func (dl *DashedLine) GetDims() (int, int) + type VolumeChangePayload struct + Kind VolumeKind + NewVolume float64 + type VolumeKind int + const KindMaster + const KindMusic + const KindSFX