This commit is contained in:
Yoshman29
2023-03-16 10:29:08 +01:00
parent 524da89d3a
commit 981cd1f516
9 changed files with 80 additions and 15 deletions
+5 -1
View File
@@ -30,9 +30,13 @@ class UIButton extends UISpliceSprite {
callback();
}
public override function update(elapsed:Float) {
super.update(elapsed);
field.follow(this, 0, (bHeight - field.height) / 2);
}
public override function draw() {
framesOffset = hovered ? (pressed ? 18 : 9) : 0;
field.follow(this, x, (bHeight - field.height) / 2);
super.draw();
}
}