mirror of
https://github.com/goatcorp/Dalamud.git
synced 2026-02-18 22:07:44 +01:00
Update text-related ImGui calls (#2337)
* Update text-related ImGui calls * Use ImU8String for SafeTextColored * Restore wrapped calls * Update MenuItem call * Use ImGui.Text over ImGui.TextUnformatted * Add ImGui.TextColoredWrapped * Obsolete SafeText helpers * Fix obsoleted calls * SafeTextColored didn't exist before imgui-bindings * Remove %% replacements
This commit is contained in:
parent
f0021bc8f9
commit
58fbff7c56
126 changed files with 1433 additions and 1406 deletions
|
|
@ -203,7 +203,7 @@ internal unsafe class SeStringRenderer : IInternalDisposableService
|
|||
|
||||
var cursorPosBackup = ImGui.GetCursorScreenPos();
|
||||
ImGui.SetCursorScreenPos(state.ScreenOffset + f.Offset);
|
||||
clicked = ImGui.InvisibleButton("##link", sz, buttonFlags);
|
||||
clicked = ImGui.InvisibleButton("##link"u8, sz, buttonFlags);
|
||||
if (ImGui.IsItemHovered())
|
||||
hoveredLinkOffset = f.Link;
|
||||
if (ImGui.IsItemActive())
|
||||
|
|
@ -218,7 +218,7 @@ internal unsafe class SeStringRenderer : IInternalDisposableService
|
|||
if (!invisibleButtonDrawn)
|
||||
{
|
||||
ImGui.SetCursorScreenPos(state.ScreenOffset);
|
||||
clicked = ImGui.InvisibleButton("##text", itemSize, buttonFlags);
|
||||
clicked = ImGui.InvisibleButton("##text"u8, itemSize, buttonFlags);
|
||||
}
|
||||
|
||||
ImGui.PopID();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue