Skip to content

Commit

Permalink
small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Joalor64GH authored Dec 9, 2024
1 parent c07c81e commit ad9a71c
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 8 deletions.
2 changes: 2 additions & 0 deletions source/modding/ModHandler.hx
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,8 @@ class ModHandler {
output.addType("txt", TextFileFormat.LINES);
output.addType("hxs", TextFileFormat.PLAINTEXT);
output.addType("hxc", TextFileFormat.PLAINTEXT);
output.addType("frag", TextFileFormat.PLAINTEXT);
output.addType("vert", TextFileFormat.PLAINTEXT);
return output != null ? output : null;
}

Expand Down
10 changes: 6 additions & 4 deletions source/states/AchievementsState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@ class AchievementsState extends ExtendableState {
var mouseSpr:FlxSprite = new FlxSprite().loadGraphic(Paths.image('cursor/cursor'));
FlxG.mouse.load(mouseSpr.pixels);

FlxG.mouse.visible = true;

camFollow = new FlxObject(80, 0, 0, 0);
camFollow.screenCenter(X);
add(camFollow);
Expand Down Expand Up @@ -89,30 +87,34 @@ class AchievementsState extends ExtendableState {
changeSelection(Input.justPressed('up') ? -1 : 1);

if (Input.justPressed('exit')) {
FlxG.mouse.visible = false;
FlxG.sound.play(Paths.sound('cancel'));
ExtendableState.switchState(new MenuState());
}

if (Input.justPressed('reset')) {
FlxG.mouse.visible = true;
if (Input.pressed('alt')) {
openSubState(new PromptSubState('This action will reset ALL of the achievements.\nProceed anyways?', () -> {
FlxG.mouse.visible = false;
FlxG.sound.play(Paths.sound('select'));
for (i in 0...achievementArray.length) {
var formattedName:String = StringTools.replace(achievementArray[i].name.toLowerCase(), " ", "_");
Achievements.forget(formattedName);
regenList();
}
regenList();
}, () -> {
FlxG.mouse.visible = false;
FlxG.sound.play(Paths.sound('cancel'));
}));
} else {
openSubState(new PromptSubState('This action will reset the selected achievement.\nProceed anyways?', () -> {
FlxG.mouse.visible = false;
FlxG.sound.play(Paths.sound('select'));
var formattedName:String = StringTools.replace(achievementArray[curSelected].name.toLowerCase(), " ", "_");
Achievements.forget(formattedName);
regenList();
}, () -> {
FlxG.mouse.visible = false;
FlxG.sound.play(Paths.sound('cancel'));
}));
}
Expand Down
8 changes: 4 additions & 4 deletions source/states/ChartingState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -172,10 +172,10 @@ class ChartingState extends ExtendableState {
strumLine = new FlxSprite(gridBG.x, 50).makeGraphic(Std.int(gridBG.width), 4);
add(strumLine);

var prototypeNotice:FlxText = new FlxText(5, FlxG.height - 24, 0, 'Charter v0.2-rc1 // Functionality is subject to change.', 12);
prototypeNotice.setFormat(Paths.font('vcr.ttf'), 18, FlxColor.WHITE, LEFT, FlxTextBorderStyle.OUTLINE, FlxColor.BLACK);
prototypeNotice.scrollFactor.set();
add(prototypeNotice);
var charterVer:FlxText = new FlxText(5, FlxG.height - 24, 0, 'Charter v0.2-rc1 // Functionality is subject to change.', 12);
charterVer.setFormat(Paths.font('vcr.ttf'), 18, FlxColor.WHITE, LEFT, FlxTextBorderStyle.OUTLINE, FlxColor.BLACK);
charterVer.scrollFactor.set();
add(charterVer);
}

override function update(elapsed:Float) {
Expand Down

0 comments on commit ad9a71c

Please sign in to comment.