Skip to content

Commit

Permalink
FPS Counter offset fix for Options/Credits menu (#307)
Browse files Browse the repository at this point in the history
* pixel note splashes

* tyy!!

* pixel secret notesplashes

* the fix itself lol
  • Loading branch information
maplesyruppppppp authored Jun 7, 2024
1 parent 4d2c36e commit bf0a6a9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 0 additions & 3 deletions source/funkin/options/OptionsMenu.hx
Original file line number Diff line number Diff line change
@@ -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.*;
Expand Down Expand Up @@ -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;
Expand Down
3 changes: 3 additions & 0 deletions source/funkin/options/TreeMenu.hx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit bf0a6a9

Please sign in to comment.