Skip to content

Commit

Permalink
blah
Browse files Browse the repository at this point in the history
  • Loading branch information
Joalor64GH authored Sep 18, 2023
1 parent e233fbf commit c0a3f67
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 16 deletions.
7 changes: 6 additions & 1 deletion source/meta/data/ClientPrefs.hx
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,12 @@ class ClientPrefs {
'instakill' => false,
'practice' => false,
'botplay' => false,
'opponentplay' => false
'opponentplay' => false,
'randommode' => false,
'flip' => false,
'stairmode' => false,
'wavemode' => false,
'onekey' => false
];

public static var comboOffset:Array<Int> = [0, 0, 0, 0, 0, 0];
Expand Down
16 changes: 3 additions & 13 deletions source/meta/data/WeekData.hx
Original file line number Diff line number Diff line change
Expand Up @@ -74,20 +74,10 @@ class WeekData {
return weekFile;
}

// HELP: Is there any way to convert a WeekFile to WeekData without having to put all variables there manually? I'm kind of a noob in haxe lmao
public function new(weekFile:WeekFile, fileName:String) {
songs = weekFile.songs;
weekCharacters = weekFile.weekCharacters;
weekBackground = weekFile.weekBackground;
weekBefore = weekFile.weekBefore;
storyName = weekFile.storyName;
weekName = weekFile.weekName;
freeplayColor = weekFile.freeplayColor;
startUnlocked = weekFile.startUnlocked;
hiddenUntilUnlocked = weekFile.hiddenUntilUnlocked;
hideStoryMode = weekFile.hideStoryMode;
hideFreeplay = weekFile.hideFreeplay;
difficulties = weekFile.difficulties;
for (field in Reflect.fields(weekFile)) {
Reflect.setProperty(this, field, Reflect.getProperty(weekFile, field));
}

this.fileName = fileName;
}
Expand Down
4 changes: 2 additions & 2 deletions source/meta/substate/ResultsSubState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ class ResultsSubState extends MusicBeatSubstate
{
persistentUpdate = true;

FlxG.sound.music.fadeIn(4, 0, 0.7);
FlxG.sound.playMusic(Paths.music('breakfast'), 1);

bg = new FlxSprite().makeGraphic(FlxG.width, FlxG.height, FlxColor.BLACK);
Expand All @@ -68,7 +69,7 @@ class ResultsSubState extends MusicBeatSubstate
titleTxt.updateHitbox();
add(titleTxt);

resultsTxt = new FlxText(0, 0, 0,
resultsTxt = new FlxText(titleTxt.x, 0, 0,
'Sicks: ' + sick
+ '\nGoods: ' + good
+ '\nBads: ' + bad
Expand All @@ -80,7 +81,6 @@ class ResultsSubState extends MusicBeatSubstate
resultsTxt.setFormat("VCR OSD Mono", 45, FlxColor.WHITE, CENTER, FlxTextBorderStyle.OUTLINE, FlxColor.BLACK);
resultsTxt.screenCenter(XY);
resultsTxt.updateHitbox();
resultsTxt.x = titleTxt.x;
add(resultsTxt);

if (ClientPrefs.scoreTxtType != 'Simple')
Expand Down

0 comments on commit c0a3f67

Please sign in to comment.