Added Error popups
This commit is contained in:
Binary file not shown.
|
After Width: | Height: | Size: 1.7 KiB |
@@ -0,0 +1,13 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<TextureAtlas imagePath="button.png">
|
||||
<!-- Created without animate lol i wrote this-->
|
||||
<SubTexture name="topleft" x="0" y="0" width="30" height="30"/>
|
||||
<SubTexture name="top" x="30" y="0" width="99" height="30"/>
|
||||
<SubTexture name="topright" x="129" y="0" width="30" height="30"/>
|
||||
<SubTexture name="middleleft" x="0" y="30" width="30" height="33"/>
|
||||
<SubTexture name="middle" x="30" y="30" width="99" height="33"/>
|
||||
<SubTexture name="middleright" x="129" y="30" width="30" height="33"/>
|
||||
<SubTexture name="bottomleft" x="0" y="63" width="30" height="30"/>
|
||||
<SubTexture name="bottom" x="30" y="63" width="99" height="30"/>
|
||||
<SubTexture name="bottomright" x="129" y="63" width="30" height="30"/>
|
||||
</TextureAtlas>
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 2.5 KiB |
@@ -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));
|
||||
})
|
||||
];
|
||||
|
||||
@@ -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));
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user