FPS Counter offset fix for Options/Credits menu (#307)

* pixel note splashes

* tyy!!

* pixel secret notesplashes

* the fix itself lol
This commit is contained in:
syrup
2024-06-07 13:32:05 +02:00
committed by GitHub
parent 4d2c36e2d4
commit bf0a6a9bbe
2 changed files with 3 additions and 3 deletions
-3
View File
@@ -1,6 +1,5 @@
package funkin.options;
import funkin.backend.system.framerate.Framerate;
import funkin.options.type.Checkbox;
import haxe.xml.Access;
import funkin.options.type.*;
@@ -48,8 +47,6 @@ class OptionsMenu extends TreeMenu {
bg.antialiasing = true;
add(bg);
Framerate.offset.y = 60;
main = new OptionsScreen("Options", "Select a category to continue.", [for(o in mainOptions) new TextOption(o.name, o.desc, function() {
if (o.substate != null) {
persistentUpdate = false;
+3
View File
@@ -7,6 +7,7 @@ import flixel.tweens.FlxTween;
import funkin.menus.MainMenuState;
import flixel.util.typeLimit.OneOfTwo;
import funkin.options.type.OptionType;
import funkin.backend.system.framerate.Framerate;
class TreeMenu extends UIState {
public var main:OptionsScreen;
@@ -97,6 +98,8 @@ class TreeMenu extends UIState {
var menuChangeTween:FlxTween;
public override function update(elapsed:Float) {
super.update(elapsed);
Framerate.offset.y = pathBG.height;
// in case path gets so long it goes offscreen
pathLabel.x = lerp(pathLabel.x, Math.max(0, FlxG.width - 4 - pathLabel.width), 0.125);