Make renaming search paths in context more clear.

This commit is contained in:
Ottermandias 2023-09-27 15:52:42 +02:00
parent 6ca8ad2385
commit 929db5c1a4
3 changed files with 10 additions and 2 deletions

@ -1 +1 @@
Subproject commit 05f7fba04156e81c099c87348632ecb03c877730
Subproject commit 4511703462faa6d3126a52e29b1c509bd275599c

@ -1 +1 @@
Subproject commit ef403be979bfac5ef805030ce76066151d36f112
Subproject commit d400686c8bfb0b9f72fa0c3301d1fe1df9be525b

View file

@ -65,6 +65,8 @@ public sealed class ModFileSystemSelector : FileSystemSelector<Mod, ModFileSyste
SubscribeRightClickMain(() => ClearQuickMove(0, _config.QuickMoveFolder1, () => {_config.QuickMoveFolder1 = string.Empty; _config.Save();}), 110);
SubscribeRightClickMain(() => ClearQuickMove(1, _config.QuickMoveFolder2, () => {_config.QuickMoveFolder2 = string.Empty; _config.Save();}), 120);
SubscribeRightClickMain(() => ClearQuickMove(2, _config.QuickMoveFolder3, () => {_config.QuickMoveFolder3 = string.Empty; _config.Save();}), 130);
UnsubscribeRightClickLeaf(RenameLeaf);
SubscribeRightClickLeaf(RenameLeafMod, 1000);
AddButton(AddNewModButton, 0);
AddButton(AddImportModButton, 1);
AddButton(AddHelpButton, 2);
@ -269,6 +271,12 @@ public sealed class ModFileSystemSelector : FileSystemSelector<Mod, ModFileSyste
}, 0, modPath, _config.AlwaysOpenDefaultImport);
}
private void RenameLeafMod(ModFileSystem.Leaf leaf)
{
ImGui.Separator();
RenameLeaf(leaf);
}
private void DeleteModButton(Vector2 size)
{
var keys = _config.DeleteModModifier.IsActive();