36 lines
1.0 KiB
Haxe
36 lines
1.0 KiB
Haxe
package funkin.editors;
|
|
|
|
import funkin.editors.ui.*;
|
|
|
|
class UIDebugState extends UIState {
|
|
public override function create() {
|
|
super.create();
|
|
var bg = new FlxSprite().makeGraphic(1, 1, 0xFF888888);
|
|
bg.scale.set(FlxG.width, FlxG.height);
|
|
bg.updateHitbox();
|
|
bg.scrollFactor.set();
|
|
add(bg);
|
|
|
|
add(new UICheckbox(10, 10, "Test unchecked", false));
|
|
add(new UICheckbox(10, 40, "Test checked", true));
|
|
add(new UIButton(10, 70, "Test button", function() {
|
|
trace("Hello, World!");
|
|
}, 120, 32));
|
|
add(new UIButton(10, 110, "Warning test", function() {
|
|
openSubState(new UIWarningSubstate("Test", "This is a test message", [
|
|
{
|
|
label: "Alt. Choice",
|
|
onClick: function(t) {
|
|
|
|
}
|
|
},
|
|
{
|
|
label: "OK",
|
|
onClick: function(t) {
|
|
|
|
}
|
|
}
|
|
]));
|
|
}, 120, 32));
|
|
}
|
|
} |