mirror of
https://github.com/xivdev/Penumbra.git
synced 2025-12-14 12:44:19 +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.EnterReturnsTrue | ImGuiInputTextFlags.CtrlEnterForNewLine
|
||||||
: ImGuiInputTextFlags.ReadOnly;
|
: ImGuiInputTextFlags.ReadOnly;
|
||||||
|
|
||||||
if (ImGui.InputTextMultiline(LabelDescEdit, ref desc, 1 << 16, AutoFillSize, flags))
|
if( _editMode )
|
||||||
{
|
{
|
||||||
Meta.Description = desc;
|
if (ImGui.InputTextMultiline(LabelDescEdit, ref desc, 1 << 16, AutoFillSize, flags))
|
||||||
_selector.SaveCurrentMod();
|
{
|
||||||
|
Meta.Description = desc;
|
||||||
|
_selector.SaveCurrentMod();
|
||||||
|
}
|
||||||
|
if (ImGui.IsItemHovered())
|
||||||
|
ImGui.SetTooltip( TooltipAboutEdit );
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
ImGui.TextWrapped( desc );
|
||||||
}
|
}
|
||||||
if (_editMode && ImGui.IsItemHovered())
|
|
||||||
ImGui.SetTooltip( TooltipAboutEdit );
|
|
||||||
|
|
||||||
|
|
||||||
ImGui.EndTabItem();
|
ImGui.EndTabItem();
|
||||||
}
|
}
|
||||||
|
|
@ -250,6 +256,7 @@ namespace Penumbra.UI
|
||||||
ImGui.Selectable(file.Key);
|
ImGui.Selectable(file.Key);
|
||||||
ImGui.SameLine(_fileSwapOffset ?? 0);
|
ImGui.SameLine(_fileSwapOffset ?? 0);
|
||||||
ImGui.TextUnformatted(" -> ");
|
ImGui.TextUnformatted(" -> ");
|
||||||
|
ImGui.SameLine();
|
||||||
ImGui.Selectable(file.Value);
|
ImGui.Selectable(file.Value);
|
||||||
}
|
}
|
||||||
ImGui.ListBoxFooter();
|
ImGui.ListBoxFooter();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue