mirror of
https://github.com/ninjamuffin99/Funkin.git
synced 2025-02-11 05:52:52 +00:00
Merge branch 'rewrite/master' into bugfix/haxeui-no-pr-35
This commit is contained in:
commit
e9f50145e2
|
@ -8,8 +8,7 @@ class PolygonVisGroup extends FlxTypedGroup<PolygonSpectogram>
|
||||||
{
|
{
|
||||||
public var playerVis:PolygonSpectogram;
|
public var playerVis:PolygonSpectogram;
|
||||||
public var opponentVis:PolygonSpectogram;
|
public var opponentVis:PolygonSpectogram;
|
||||||
|
public var instVis:PolygonSpectogram;
|
||||||
var instVis:PolygonSpectogram;
|
|
||||||
|
|
||||||
public function new()
|
public function new()
|
||||||
{
|
{
|
||||||
|
@ -51,6 +50,43 @@ class PolygonVisGroup extends FlxTypedGroup<PolygonSpectogram>
|
||||||
instVis = vis;
|
instVis = vis;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function clearPlayerVis():Void
|
||||||
|
{
|
||||||
|
if (playerVis != null)
|
||||||
|
{
|
||||||
|
remove(playerVis);
|
||||||
|
playerVis.destroy();
|
||||||
|
playerVis = null;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public function clearOpponentVis():Void
|
||||||
|
{
|
||||||
|
if (opponentVis != null)
|
||||||
|
{
|
||||||
|
remove(opponentVis);
|
||||||
|
opponentVis.destroy();
|
||||||
|
opponentVis = null;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public function clearInstVis():Void
|
||||||
|
{
|
||||||
|
if (instVis != null)
|
||||||
|
{
|
||||||
|
remove(instVis);
|
||||||
|
instVis.destroy();
|
||||||
|
instVis = null;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public function clearAllVis():Void
|
||||||
|
{
|
||||||
|
clearPlayerVis();
|
||||||
|
clearOpponentVis();
|
||||||
|
clearInstVis();
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Overrides the add function to add a visualizer to the group.
|
* Overrides the add function to add a visualizer to the group.
|
||||||
* @param vis The visualizer to add.
|
* @param vis The visualizer to add.
|
||||||
|
|
|
@ -223,6 +223,10 @@ class ChartEditorAudioHandler
|
||||||
{
|
{
|
||||||
state.audioVocalTrackGroup.clear();
|
state.audioVocalTrackGroup.clear();
|
||||||
}
|
}
|
||||||
|
if (state.audioVisGroup != null)
|
||||||
|
{
|
||||||
|
state.audioVisGroup.clearAllVis();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue