clean menus
This commit is contained in:
+1
-1
@@ -1 +1 @@
|
||||
2495
|
||||
2498
|
||||
@@ -4,6 +4,12 @@ import funkin.editors.ui.*;
|
||||
|
||||
class UIDebugState extends UIState {
|
||||
public override function create() {
|
||||
var bg = new FlxSprite().makeGraphic(0xFF888888);
|
||||
bg.scale.set(FlxG.width, FlxG.height);
|
||||
bg.updateHitbox();
|
||||
bg.scrollFactor.set();
|
||||
add(bg);
|
||||
|
||||
super.create();
|
||||
add(new UICheckbox(10, 10, "Test unchecked", false));
|
||||
add(new UICheckbox(10, 40, "Test checked", true));
|
||||
|
||||
@@ -33,7 +33,7 @@ class UICheckbox extends UISprite {
|
||||
pressed = false;
|
||||
|
||||
// CHECKMARK HANDLING
|
||||
check.visible = checked;
|
||||
check.alpha = checked ? 1 : 0;
|
||||
check.scale.x = CoolUtil.fpsLerp(check.scale.x, 1, 0.25);
|
||||
check.scale.y = CoolUtil.fpsLerp(check.scale.y, 1, 0.25);
|
||||
|
||||
@@ -44,6 +44,8 @@ class UICheckbox extends UISprite {
|
||||
}
|
||||
|
||||
public inline function updatePositions() {
|
||||
check.cameras = field.cameras = cameras;
|
||||
|
||||
field.setPosition(x + 30, y);
|
||||
check.setPosition(x, y);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user