diff --git a/TODO.md b/TODO.md index 031c1f39..d2bc473e 100644 --- a/TODO.md +++ b/TODO.md @@ -18,7 +18,7 @@ - [ ] Reorderable Strumlines - [ ] Step based zooming - [ ] Add Undo to more actions - - [ ] New Button + - [ ] New Chart Button - [ ] Bug fixes - [ ] Zooming in causing notes to disappear - [ ] Holds disappear too early @@ -31,7 +31,7 @@ - [x] Character Saving - [x] Add Undos to Actions - [ ] Change Stage - - [ ] New Button + - [ ] New Character Button - [ ] Port Videos to a more stable video lib - [ ] Optimization to Editors - [ ] Fix Ratings Lag diff --git a/source/funkin/editors/ui/UIContextMenu.hx b/source/funkin/editors/ui/UIContextMenu.hx index 5e11c3a1..bf4d08fc 100644 --- a/source/funkin/editors/ui/UIContextMenu.hx +++ b/source/funkin/editors/ui/UIContextMenu.hx @@ -114,6 +114,7 @@ typedef UIContextMenuOption = { var label:String; var ?keybind:Array; var ?keybinds:Array>; + var ?keybindText:String; var ?icon:Int; var ?onSelect:UIContextMenuOption->Void; var ?childs:Array; @@ -144,14 +145,18 @@ class UIContextMenuOptionSpr extends UISliceSprite { } } - if (option.keybinds != null) { - var textKeys:Array = []; - for (o in option.keybinds[0]) { - if (Std.int(o) > 0) { - textKeys.push(o.toUIString()); + if (option.keybinds != null || option.keybindText != null) { + var text = if(option.keybindText == null) { + var textKeys:Array = []; + for (o in option.keybinds[0]) { + if (Std.int(o) > 0) { + textKeys.push(o.toUIString()); + } } + textKeys.join("+"); + } else { + option.keybindText; } - var text = textKeys.join("+"); labelKeybind = new UIText(label.x + label.frameWidth + 10, 2, 0, text); labelKeybind.alpha = 0.75; }