Files
CodenameEngine/source/funkin/editors/extra/PropertyButton.hx
T
2024-01-28 21:11:13 +02:00

18 lines
536 B
Haxe

package funkin.editors.extra;
class PropertyButton extends UIButton {
public var propertyText:UITextBox;
public var valueText:UITextBox;
public function new(property, value) {
super(0, 0, '', function () {}, 280, 35);
propertyText = new UITextBox(5, 5, property, 125, 25);
valueText = new UITextBox(135, 5, value, 125, 25);
members.push(propertyText);
members.push(valueText);
}
public override function update(elapsed) {
super.update(elapsed);
propertyText.follow(this, 5, 5);
valueText.follow(this, 135, 5);
}
}