diff --git a/source/meta/data/Achievements.hx b/source/meta/data/Achievements.hx index 847e82c7..fe597bc7 100644 --- a/source/meta/data/Achievements.hx +++ b/source/meta/data/Achievements.hx @@ -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); diff --git a/source/meta/state/PlayState.hx b/source/meta/state/PlayState.hx index eb8f291f..8fea0e63 100644 --- a/source/meta/state/PlayState.hx +++ b/source/meta/state/PlayState.hx @@ -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()); } diff --git a/source/modcharting/ModchartEditorState.hx b/source/modcharting/ModchartEditorState.hx index e69ad9f4..8f275af5 100644 --- a/source/modcharting/ModchartEditorState.hx +++ b/source/modcharting/ModchartEditorState.hx @@ -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); diff --git a/source/modcharting/ModchartUtil.hx b/source/modcharting/ModchartUtil.hx index c0f57bdd..ba4c7e66 100644 --- a/source/modcharting/ModchartUtil.hx +++ b/source/modcharting/ModchartUtil.hx @@ -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 diff --git a/source/objects/shaders/PhillyGlow.hx b/source/objects/shaders/PhillyGlow.hx index 4efe6733..db4adb16 100644 --- a/source/objects/shaders/PhillyGlow.hx +++ b/source/objects/shaders/PhillyGlow.hx @@ -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; @@ -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(); diff --git a/source/objects/userinterface/DialogueBoxPsych.hx b/source/objects/userinterface/DialogueBoxPsych.hx index 4ec57eaf..f60edd4b 100644 --- a/source/objects/userinterface/DialogueBoxPsych.hx +++ b/source/objects/userinterface/DialogueBoxPsych.hx @@ -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);