Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Joalor64GH authored May 31, 2024
1 parent 02dfa1e commit 0f6243c
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion source/meta/data/Achievements.hx
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ class AchievementObject extends FlxSpriteGroup {
public function new(name:String, ?camera:FlxCamera = null)
{
super(x, y);
ClientPrefs.data.saveSettings();
ClientPrefs.saveSettings();

var id:Int = Achievements.getAchievementIndex(name);
var achievementBG:FlxSprite = new FlxSprite(60, 50).makeGraphic(420, 120, FlxColor.BLACK);
Expand Down
2 changes: 1 addition & 1 deletion source/meta/state/PlayState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -3453,7 +3453,7 @@ class PlayState extends MusicBeatState
if (health > 0 && !paused)
{
if (Conductor.songPosition > 0.0)
DiscordClient.changePresence(detailsText, SONG.song + " (" + storyDifficultyText + ")", iconP2.getCharacter(), true, songLength - Conductor.songPosition - ClientPrefs.noteOffset);
DiscordClient.changePresence(detailsText, SONG.song + " (" + storyDifficultyText + ")", iconP2.getCharacter(), true, songLength - Conductor.songPosition - ClientPrefs.data.noteOffset);
else
DiscordClient.changePresence(detailsText, SONG.song + " (" + storyDifficultyText + ")", iconP2.getCharacter());
}
Expand Down
2 changes: 1 addition & 1 deletion source/modcharting/ModchartEditorState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ class ModchartEditorState extends MusicBeatState


#if PSYCH
strumLine = new FlxSprite(ClientPrefs.middleScroll ? PlayState.STRUM_X_MIDDLESCROLL : PlayState.STRUM_X, 50).makeGraphic(FlxG.width, 10);
strumLine = new FlxSprite(ClientPrefs.data.middleScroll ? PlayState.STRUM_X_MIDDLESCROLL : PlayState.STRUM_X, 50).makeGraphic(FlxG.width, 10);
if(ModchartUtil.getDownscroll(this)) strumLine.y = FlxG.height - 150;
#else
strumLine = new FlxSprite(0, 100).makeGraphic(FlxG.width, 10);
Expand Down
2 changes: 1 addition & 1 deletion source/modcharting/ModchartUtil.hx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class ModchartUtil
//need to test each engine
//not expecting all to work
#if PSYCH
return ClientPrefs.downScroll;
return ClientPrefs.data.downScroll;
#elseif LEATHER
return utilities.Options.getData("downscroll");
#elseif ANDROMEDA //dunno why youd use this on andromeda but whatever, already got its own cool modchart system
Expand Down
6 changes: 3 additions & 3 deletions source/objects/shaders/PhillyGlow.hx
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ class PhillyGlowParticle extends FlxSprite
this.color = color;

loadGraphic(Paths.image('stages/philly/particle'));
antialiasing = ClientPrefs.globalAntialiasing;
antialiasing = ClientPrefs.data.globalAntialiasing;
lifeTime = FlxG.random.float(0.6, 0.9);
decay = FlxG.random.float(0.8, 1);
if(!ClientPrefs.flashing)
if(!ClientPrefs.data.flashing)
{
decay *= 0.5;
alpha = 0.5;
Expand Down Expand Up @@ -55,7 +55,7 @@ class PhillyGlowGradient extends FlxSprite
originalY = y;

loadGraphic(Paths.image('stages/philly/gradient'));
antialiasing = ClientPrefs.globalAntialiasing;
antialiasing = ClientPrefs.data.globalAntialiasing;
scrollFactor.set(0, 0.75);
setGraphicSize(2000, originalHeight);
updateHitbox();
Expand Down
2 changes: 1 addition & 1 deletion source/objects/userinterface/DialogueBoxPsych.hx
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ class DialogueBoxPsych extends FlxSpriteGroup
box = new FlxSprite(70, 370);
box.frames = Paths.getSparrowAtlas('speech_bubble');
box.scrollFactor.set();
box.antialiasing = ClientPrefs.globalAntialiasing;
box.antialiasing = ClientPrefs.data.globalAntialiasing;
box.animation.addByPrefix('normal', 'speech bubble normal', 24);
box.animation.addByPrefix('normalOpen', 'Speech Bubble Normal Open', 24, false);
box.animation.addByPrefix('angry', 'AHH speech bubble', 24);
Expand Down

0 comments on commit 0f6243c

Please sign in to comment.