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:
@@ -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;
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user