Skip to content
This repository has been archived by the owner on Dec 6, 2022. It is now read-only.

fancier maybe????? #6

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 15 additions & 7 deletions source/CharMenu.hx
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ import Boyfriend.Boyfriend;
import Character.Character;
import HealthIcon.HealthIcon;
import flixel.ui.FlxBar;
import flixel.tweens.FlxEase;
import flixel.tweens.FlxTween;

typedef CharacterMenu = {
var name:String;
Expand Down Expand Up @@ -188,13 +190,19 @@ class CharMenu extends MusicBeatState
curSelected = 0;

var otherInt:Int = 0;

for (i in 0...iconArray.length)
{
iconArray[i].alpha = 1;

for (i in 0...iconArray.length)
{
FlxTween.tween(iconArray[i], {alpha: 0.4}, 0.4, {ease: FlxEase.expoInOut});
FlxTween.tween(iconArray[i].scale, {x: 0.6}, 0.4, {ease: FlxEase.expoInOut});
FlxTween.tween(iconArray[i].scale, {y: 0.6}, 0.4, {ease: FlxEase.expoInOut});

if (i == curSelected) {
FlxTween.tween(iconArray[i], {alpha: 1}, 0.4, {ease: FlxEase.expoInOut});
FlxTween.tween(iconArray[i].scale, {x: 1}, 0.4, {ease: FlxEase.expoInOut});
FlxTween.tween(iconArray[i].scale, {y: 1}, 0.4, {ease: FlxEase.expoInOut});
}

iconArray[curSelected].alpha = 1;
}

for (item in grpMenu.members)
{
Expand Down Expand Up @@ -264,4 +272,4 @@ class CharMenu extends MusicBeatState
icon.y -= 20;
add(icon);
}
}
}
2 changes: 1 addition & 1 deletion source/FreeplayState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ class FreeplayState extends MusicBeatState
PlayState.storyChar = curCharacter;
PlayState.storyWeek = songs[curSelected].week;
trace('CUR WEEK' + PlayState.storyWeek);
//FlxG.switchState(new CharMenu()); //Character Menu State temp disabled till I figure out a new and better way
FlxG.switchState(new CharMenu());
LoadingState.loadAndSwitchState(new PlayState());
}
}
Expand Down
4 changes: 2 additions & 2 deletions source/Note.hx
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ import flixel.util.FlxColor;
import Song.SwagSong;
import Boyfriend.Boyfriend;
import Character.Character;
#if polymod
/*#if polymod
import polymod.format.ParseRules.TargetSignatureElement;
#end
#end*/
import PlayState;
import PlayState.SONG;

Expand Down
4 changes: 2 additions & 2 deletions source/TitleState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,9 @@ class TitleState extends MusicBeatState

override public function create():Void
{
#if polymod
/*#if polymod
polymod.Polymod.init({modRoot: "mods", dirs: ['introMod']});
#end
#end*/

#if sys
if (!sys.FileSystem.exists(Sys.getCwd() + "/assets/replays"))
Expand Down