1
0
mirror of https://github.com/Melon-Bread/Pet.GB synced 2024-11-24 20:58:19 -05:00

Enabled Wipe menu option 🚽

This commit is contained in:
Rain Clark 2016-10-05 07:24:24 -04:00
parent 71a97d5300
commit 6f308cea59

View File

@ -150,7 +150,6 @@ class HUD extends FlxTypedGroup<FlxSprite>
// DEBUG // DEBUG
FlxG.watch.add(this, "_menuOption", "Menu Index"); FlxG.watch.add(this, "_menuOption", "Menu Index");
FlxG.watch.add(_sprThoughts.animation, "curAnim");
FlxG.watch.add(_sprInteraction, "alpha", "Interact Alpha"); FlxG.watch.add(_sprInteraction, "alpha", "Interact Alpha");
FlxG.watch.add(_sprInteraction, "visible", "Interact Visible"); FlxG.watch.add(_sprInteraction, "visible", "Interact Visible");
FlxG.watch.add(_tmpText, "text", "Temp Text"); FlxG.watch.add(_tmpText, "text", "Temp Text");
@ -269,7 +268,7 @@ class HUD extends FlxTypedGroup<FlxSprite>
// WIPE // WIPE
case 6: case 6:
// wipeGel();
// CONFIG // CONFIG
case 7: case 7:
@ -301,6 +300,13 @@ class HUD extends FlxTypedGroup<FlxSprite>
_sprInteraction.fadeOut(2, itemLeave); _sprInteraction.fadeOut(2, itemLeave);
} }
private function wipeGel():Void
{
itemJoin("W");
_gel.Wipe();
_sprInteraction.fadeOut(2, itemLeave);
}
private function itemJoin(letter:String = ""):Void private function itemJoin(letter:String = ""):Void
{ {
_sprInteraction.visible = true; _sprInteraction.visible = true;