diff --git a/Penumbra/UI/TabInstalledDetails.cs b/Penumbra/UI/TabInstalledDetails.cs index 9b9b8d38..42d08416 100644 --- a/Penumbra/UI/TabInstalledDetails.cs +++ b/Penumbra/UI/TabInstalledDetails.cs @@ -415,11 +415,18 @@ namespace Penumbra.UI ImGui.Indent(indent); foreach (var gamePath in gamePaths) { - ImGui.Text(gamePath); - if (ImGui.IsItemClicked()) - ImGui.SetClipboardText(gamePath); - if (ImGui.IsItemHovered()) - ImGui.SetTooltip( TooltipGamePathText ); + string tmp = gamePath; + if (ImGui.InputText($"##{gamePath}", ref tmp, 128, ImGuiInputTextFlags.EnterReturnsTrue)) + { + if (tmp != gamePath) + { + gamePaths.Remove(gamePath); + if (tmp.Length > 0) + gamePaths.Add(tmp); + _selector.SaveCurrentMod(); + _selector.ReloadCurrentMod(); + } + } } ImGui.Unindent(indent); } diff --git a/Penumbra/UI/TabInstalledDetailsEdit.cs b/Penumbra/UI/TabInstalledDetailsEdit.cs index abfd9a0d..7cb026e9 100644 --- a/Penumbra/UI/TabInstalledDetailsEdit.cs +++ b/Penumbra/UI/TabInstalledDetailsEdit.cs @@ -18,7 +18,6 @@ namespace Penumbra.UI private const string TextNoOptionAvailable = "[No Option Available]"; private const string ButtonAddToGroup = "Add to Group"; private const string ButtonRemoveFromGroup = "Remove from Group"; - private const string TooltipGamePathText = "Click to copy to clipboard."; private const string TooltipAboutEdit = "Use Ctrl+Enter for newlines."; private const string TextDefaultGamePath = "default"; @@ -26,7 +25,7 @@ namespace Penumbra.UI private static readonly string TooltipFilesTabEdit = $"{TooltipFilesTab}\nRed Files are replaced in another group or a different option in this group, but not contained in the current option."; private static readonly string TooltipGamePathsEdit = $"Enter all game paths to add or remove, separated by '{GamePathsSeparator}'.\nUse '{TextDefaultGamePath}' to add the original file path."; - private const float MultiEditBoxWidth = 300f; + private const float MultiEditBoxWidth = 300f; private void DrawEditGroupSelector() { diff --git a/Penumbra/UI/TabInstalledSelector.cs b/Penumbra/UI/TabInstalledSelector.cs index 22b3d2c6..5cb0544a 100644 --- a/Penumbra/UI/TabInstalledSelector.cs +++ b/Penumbra/UI/TabInstalledSelector.cs @@ -265,6 +265,7 @@ namespace Penumbra.UI } _mod.Mod.RefreshModFiles(); _base._plugin.ModManager.CalculateEffectiveFileList(); + _base._menu._effectiveTab.RebuildFileList(_base._plugin.Configuration.ShowAdvanced); } public string SaveCurrentMod()