mirror of
https://github.com/ninjamuffin99/Funkin.git
synced 2024-12-12 08:25:13 +00:00
Fix for default constructor values.
This commit is contained in:
parent
ba674b1f92
commit
17bf3289b5
|
@ -14,6 +14,7 @@ class WaveformSprite extends MeshRender
|
||||||
static final DEFAULT_Y:Float = 0.0;
|
static final DEFAULT_Y:Float = 0.0;
|
||||||
static final DEFAULT_WIDTH:Float = 100.0;
|
static final DEFAULT_WIDTH:Float = 100.0;
|
||||||
static final DEFAULT_HEIGHT:Float = 100.0;
|
static final DEFAULT_HEIGHT:Float = 100.0;
|
||||||
|
static final DEFAULT_DURATION:Float = 5.0;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set this to true to tell the waveform to rebuild itself.
|
* Set this to true to tell the waveform to rebuild itself.
|
||||||
|
@ -104,9 +105,9 @@ class WaveformSprite extends MeshRender
|
||||||
this.height = DEFAULT_HEIGHT;
|
this.height = DEFAULT_HEIGHT;
|
||||||
|
|
||||||
this.waveformData = waveformData;
|
this.waveformData = waveformData;
|
||||||
this.orientation = orientation;
|
this.orientation = orientation ?? DEFAULT_ORIENTATION;
|
||||||
this.time = 0.0;
|
this.time = 0.0;
|
||||||
this.duration = duration;
|
this.duration = duration ?? DEFAULT_DURATION;
|
||||||
}
|
}
|
||||||
|
|
||||||
public override function update(elapsed:Float)
|
public override function update(elapsed:Float)
|
||||||
|
|
Loading…
Reference in a new issue