Added Error popups

This commit is contained in:
NeeEoo
2023-08-19 21:18:13 +02:00
parent 7ef25d9b0d
commit e0e646a3d0
7 changed files with 32 additions and 3 deletions
@@ -27,7 +27,14 @@ class CharacterSelection extends EditorTreeMenu
];
list.insert(0, new NewOption("New Character", "New Character", function() {
openSubState(new UIWarningSubstate("New Character", "This feature isnt implemented yet", [
{
label: "OK",
onClick: function(t) {
}
}
]));
}));
main = new OptionsScreen("Character Editor", "Select a character to edit", list);
@@ -31,7 +31,16 @@ class CharterSelection extends EditorTreeMenu {
FlxG.switchState(new Charter(s.name, d));
})
];
list.push(new NewOption("New Difficulty", "New Difficulty", function() {}));
list.push(new NewOption("New Difficulty", "New Difficulty", function() {
openSubState(new UIWarningSubstate("New Difficulty", "This feature isnt implemented yet", [
{
label: "OK",
onClick: function(t) {
}
}
]));
}));
optionsTree.add(new OptionsScreen(s.name, "Select a difficulty to continue.", list));
})
];
+1 -1
View File
@@ -59,7 +59,7 @@ class UISubstateWindow extends MusicBeatSubstate {
subCam.zoom = 0.1;
FlxG.cameras.add(subCam, false);
windowSpr = new UISliceSprite(0, 0, winWidth, winHeight, "editors/ui/warning-popup");
windowSpr = new UISliceSprite(0, 0, winWidth, winHeight, "editors/ui/normal-popup");
add(windowSpr);
add(titleSpr = new UIText(windowSpr.x + 25, windowSpr.y, windowSpr.bWidth - 50, winTitle, 15, -1));
+1 -1
View File
@@ -4,7 +4,7 @@ class UIWindow extends UISliceSprite {
public var titleSpr:UIText;
public override function new(x:Float, y:Float, w:Int, h:Int, title:String) {
super(x, y, w, h, "editors/ui/warning-popup");
super(x, y, w, h, "editors/ui/normal-popup");
members.push(titleSpr = new UIText(x + 25, y, bWidth - 50, title, 15, -1));
titleSpr.y = y + ((30 - titleSpr.height) / 2);