diff --git a/assets/images/editors/ui/normal-popup.png b/assets/images/editors/ui/normal-popup.png new file mode 100644 index 00000000..f0f00305 Binary files /dev/null and b/assets/images/editors/ui/normal-popup.png differ diff --git a/assets/images/editors/ui/normal-popup.xml b/assets/images/editors/ui/normal-popup.xml new file mode 100644 index 00000000..021dd81a --- /dev/null +++ b/assets/images/editors/ui/normal-popup.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/assets/images/editors/ui/warning-popup.png b/assets/images/editors/ui/warning-popup.png index f0f00305..c190bffa 100644 Binary files a/assets/images/editors/ui/warning-popup.png and b/assets/images/editors/ui/warning-popup.png differ diff --git a/source/funkin/editors/character/CharacterSelection.hx b/source/funkin/editors/character/CharacterSelection.hx index dd213c39..ae5e6635 100644 --- a/source/funkin/editors/character/CharacterSelection.hx +++ b/source/funkin/editors/character/CharacterSelection.hx @@ -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); diff --git a/source/funkin/editors/charter/CharterSelection.hx b/source/funkin/editors/charter/CharterSelection.hx index 1a641dbd..c753027a 100644 --- a/source/funkin/editors/charter/CharterSelection.hx +++ b/source/funkin/editors/charter/CharterSelection.hx @@ -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)); }) ]; diff --git a/source/funkin/editors/ui/UISubstateWindow.hx b/source/funkin/editors/ui/UISubstateWindow.hx index c1012ee9..b17afbba 100644 --- a/source/funkin/editors/ui/UISubstateWindow.hx +++ b/source/funkin/editors/ui/UISubstateWindow.hx @@ -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)); diff --git a/source/funkin/editors/ui/UIWindow.hx b/source/funkin/editors/ui/UIWindow.hx index 89fd6bfe..6853ce06 100644 --- a/source/funkin/editors/ui/UIWindow.hx +++ b/source/funkin/editors/ui/UIWindow.hx @@ -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);