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

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);
@ -268,6 +270,12 @@ public sealed class ModFileSystemSelector : FileSystemSelector<Mod, ModFileSyste
_modImportManager.AddUnpack(f);
}, 0, modPath, _config.AlwaysOpenDefaultImport);
}
private void RenameLeafMod(ModFileSystem.Leaf leaf)
{
ImGui.Separator();
RenameLeaf(leaf);
}
private void DeleteModButton(Vector2 size)
{