commit
074e08650f
Binary file not shown.
Before Width: | Height: | Size: 6.8 KiB After Width: | Height: | Size: 8.1 KiB |
@ -6,11 +6,11 @@ using StringTools;
|
||||
|
||||
class CoolUtil
|
||||
{
|
||||
public static var difficultyArray:Array<String> = ['EASY', "NORMAL", "HARD"];
|
||||
public static var difficultyArray:Array<String> = ['Easy', "Normal", "Hard"];
|
||||
|
||||
public static function difficultyString():String
|
||||
public static function difficultyFromInt(difficulty:Int):String
|
||||
{
|
||||
return difficultyArray[PlayState.storyDifficulty];
|
||||
return difficultyArray[difficulty];
|
||||
}
|
||||
|
||||
public static function coolTextFile(path:String):Array<String>
|
||||
|
@ -252,15 +252,7 @@ class FreeplayState extends MusicBeatState
|
||||
combo = Highscore.getCombo(songHighscore, curDifficulty);
|
||||
#end
|
||||
|
||||
switch (curDifficulty)
|
||||
{
|
||||
case 0:
|
||||
diffText.text = "EASY";
|
||||
case 1:
|
||||
diffText.text = 'NORMAL';
|
||||
case 2:
|
||||
diffText.text = "HARD";
|
||||
}
|
||||
diffText.text = CoolUtil.difficultyFromInt(curDifficulty).toUpperCase();
|
||||
}
|
||||
|
||||
function changeSelection(change:Int = 0)
|
||||
|
@ -54,7 +54,7 @@ class LoadReplayState extends MusicBeatState
|
||||
var string:String = controlsStrings[i];
|
||||
actualNames[i] = string;
|
||||
var rep:Replay = Replay.LoadReplay(string);
|
||||
controlsStrings[i] = string.split("time")[0] + " " + (rep.replay.songDiff == 2 ? "HARD" : rep.replay.songDiff == 1 ? "EASY" : "NORMAL");
|
||||
controlsStrings[i] = string.split("time")[0] + " " + CoolUtil.difficultyFromInt(rep.replay.songDiff).toUpperCase();
|
||||
}
|
||||
|
||||
if (controlsStrings.length == 0)
|
||||
|
@ -59,7 +59,7 @@ class PauseSubState extends MusicBeatSubstate
|
||||
add(levelInfo);
|
||||
|
||||
var levelDifficulty:FlxText = new FlxText(20, 15 + 32, 0, "", 32);
|
||||
levelDifficulty.text += CoolUtil.difficultyString();
|
||||
levelDifficulty.text += CoolUtil.difficultyFromInt(PlayState.storyDifficulty).toUpperCase();
|
||||
levelDifficulty.scrollFactor.set();
|
||||
levelDifficulty.setFormat(Paths.font('vcr.ttf'), 32);
|
||||
levelDifficulty.updateHitbox();
|
||||
|
7648
source/PlayState.hx
7648
source/PlayState.hx
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user