overlays

package
v0.0.0-...-491ee29 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2024 License: GPL-3.0 Imports: 40 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KnockoutOverlay

type KnockoutOverlay struct {
	Button        *texture.TextureRegion
	ButtonClicked *texture.TextureRegion

	ScaledHeight float64
	ScaledWidth  float64
	// contains filtered or unexported fields
}

func NewKnockoutOverlay

func NewKnockoutOverlay(replayController *dance.ReplayController) *KnockoutOverlay

func (*KnockoutOverlay) DisableAudioSubmission

func (overlay *KnockoutOverlay) DisableAudioSubmission(_ bool)

func (*KnockoutOverlay) DrawBackground

func (overlay *KnockoutOverlay) DrawBackground(batch *batch.QuadBatch, _ []color2.Color, alpha float64)

func (*KnockoutOverlay) DrawBeforeObjects

func (overlay *KnockoutOverlay) DrawBeforeObjects(_ *batch.QuadBatch, _ []color2.Color, _ float64)

func (*KnockoutOverlay) DrawHUD

func (overlay *KnockoutOverlay) DrawHUD(batch *batch.QuadBatch, colors []color2.Color, alpha float64)

func (*KnockoutOverlay) DrawNormal

func (overlay *KnockoutOverlay) DrawNormal(batch *batch.QuadBatch, colors []color2.Color, alpha float64)

func (*KnockoutOverlay) IsBroken

func (overlay *KnockoutOverlay) IsBroken(cursor *graphics.Cursor) bool

func (*KnockoutOverlay) SetMusic

func (overlay *KnockoutOverlay) SetMusic(music bass.ITrack)

func (*KnockoutOverlay) ShouldDrawHUDBeforeCursor

func (overlay *KnockoutOverlay) ShouldDrawHUDBeforeCursor() bool

func (*KnockoutOverlay) Update

func (overlay *KnockoutOverlay) Update(time float64)

type Overlay

type Overlay interface {
	Update(float64)
	SetMusic(bass.ITrack)
	DrawBackground(batch *batch.QuadBatch, colors []color2.Color, alpha float64)
	DrawBeforeObjects(batch *batch.QuadBatch, colors []color2.Color, alpha float64)
	DrawNormal(batch *batch.QuadBatch, colors []color2.Color, alpha float64)
	DrawHUD(batch *batch.QuadBatch, colors []color2.Color, alpha float64)
	IsBroken(cursor *graphics.Cursor) bool
	DisableAudioSubmission(b bool)
	ShouldDrawHUDBeforeCursor() bool
}

type ScoreOverlay

type ScoreOverlay struct {
	ScaledWidth  float64
	ScaledHeight float64
	// contains filtered or unexported fields
}

func NewScoreOverlay

func NewScoreOverlay(ruleset *osu.OsuRuleSet, cursor *graphics.Cursor) *ScoreOverlay

func (*ScoreOverlay) DisableAudioSubmission

func (overlay *ScoreOverlay) DisableAudioSubmission(b bool)

func (*ScoreOverlay) DrawBackground

func (overlay *ScoreOverlay) DrawBackground(batch *batch.QuadBatch, c []color2.Color, alpha float64)

func (*ScoreOverlay) DrawBeforeObjects

func (overlay *ScoreOverlay) DrawBeforeObjects(batch *batch.QuadBatch, c []color2.Color, alpha float64)

func (*ScoreOverlay) DrawHUD

func (overlay *ScoreOverlay) DrawHUD(batch *batch.QuadBatch, _ []color2.Color, alpha float64)

func (*ScoreOverlay) DrawNormal

func (overlay *ScoreOverlay) DrawNormal(batch *batch.QuadBatch, _ []color2.Color, alpha float64)

func (*ScoreOverlay) Fail

func (overlay *ScoreOverlay) Fail(fail bool)

func (*ScoreOverlay) IsBroken

func (overlay *ScoreOverlay) IsBroken(_ *graphics.Cursor) bool

func (*ScoreOverlay) SetBeatmapEnd

func (overlay *ScoreOverlay) SetBeatmapEnd(end float64)

func (*ScoreOverlay) SetMusic

func (overlay *ScoreOverlay) SetMusic(music bass.ITrack)

func (*ScoreOverlay) ShouldDrawHUDBeforeCursor

func (overlay *ScoreOverlay) ShouldDrawHUDBeforeCursor() bool

func (*ScoreOverlay) Update

func (overlay *ScoreOverlay) Update(time float64)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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