popup test

This commit is contained in:
Yoshman29
2023-03-15 23:35:15 +01:00
parent d72558c427
commit 4a15cff151
12 changed files with 277 additions and 107 deletions
+16
View File
@@ -16,5 +16,21 @@ class UIDebugState extends UIState {
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));
}
}