mirror of
https://github.com/xivdev/Penumbra.git
synced 2025-12-12 18:27:24 +01:00
use wrappedtext when not editing, fix fileswap splitting across lines
This commit is contained in:
parent
093d04e70a
commit
5a8051e0da
1 changed files with 745 additions and 738 deletions
|
|
@ -144,14 +144,20 @@ namespace Penumbra.UI
|
|||
? ImGuiInputTextFlags.EnterReturnsTrue | ImGuiInputTextFlags.CtrlEnterForNewLine
|
||||
: ImGuiInputTextFlags.ReadOnly;
|
||||
|
||||
if (ImGui.InputTextMultiline(LabelDescEdit, ref desc, 1 << 16, AutoFillSize, flags))
|
||||
if( _editMode )
|
||||
{
|
||||
Meta.Description = desc;
|
||||
_selector.SaveCurrentMod();
|
||||
if (ImGui.InputTextMultiline(LabelDescEdit, ref desc, 1 << 16, AutoFillSize, flags))
|
||||
{
|
||||
Meta.Description = desc;
|
||||
_selector.SaveCurrentMod();
|
||||
}
|
||||
if (ImGui.IsItemHovered())
|
||||
ImGui.SetTooltip( TooltipAboutEdit );
|
||||
}
|
||||
else
|
||||
{
|
||||
ImGui.TextWrapped( desc );
|
||||
}
|
||||
if (_editMode && ImGui.IsItemHovered())
|
||||
ImGui.SetTooltip( TooltipAboutEdit );
|
||||
|
||||
|
||||
ImGui.EndTabItem();
|
||||
}
|
||||
|
|
@ -250,6 +256,7 @@ namespace Penumbra.UI
|
|||
ImGui.Selectable(file.Key);
|
||||
ImGui.SameLine(_fileSwapOffset ?? 0);
|
||||
ImGui.TextUnformatted(" -> ");
|
||||
ImGui.SameLine();
|
||||
ImGui.Selectable(file.Value);
|
||||
}
|
||||
ImGui.ListBoxFooter();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue