squidward

This commit is contained in:
Yoshman29
2023-03-19 18:52:21 +01:00
parent 09372e6608
commit 220e124c75
5 changed files with 86 additions and 2 deletions
@@ -31,6 +31,7 @@ class UIContextMenu extends MusicBeatSubstate {
camera = contextCam = new FlxCamera();
contextCam.bgColor = 0;
contextCam.alpha = 0;
contextCam.scroll.set(0, 7.5);
FlxG.cameras.add(contextCam, false);
bg = new UISliceSprite(x, y, 100, 100, 'editors/ui/context-bg');
@@ -85,6 +86,7 @@ class UIContextMenu extends MusicBeatSubstate {
super.update(elapsed);
contextCam.scroll.y = CoolUtil.fpsLerp(contextCam.scroll.y, 0, 0.5);
contextCam.alpha = CoolUtil.fpsLerp(contextCam.alpha, 1, 0.25);
}
+1 -1
View File
@@ -53,7 +53,7 @@ class UITopMenuButton extends UISliceSprite {
}
public override function update(elapsed:Float) {
label.follow(this, 4, 0);
label.follow(this, 4, Std.int((bHeight - label.height) / 2));
super.update(elapsed);
var opened = curMenu.contextMenuOpened();