Update text-related ImGui calls

This commit is contained in:
Haselnussbomber 2025-07-20 17:08:46 +02:00
parent f0021bc8f9
commit 81c3ad9421
No known key found for this signature in database
GPG key ID: BB905BB49E7295D1
119 changed files with 1277 additions and 1246 deletions

View file

@ -4,6 +4,8 @@ using System.Numerics;
using Dalamud.Bindings.ImGui;
using Dalamud.Interface.Components;
using Dalamud.Interface.Utility;
using FFXIVClientStructs.FFXIV.Component.GUI;
using static Dalamud.Interface.FontAwesomeIcon;
@ -121,7 +123,7 @@ public unsafe partial class AddonTree : IDisposable
ImGui.SameLine();
ImGui.SameLine();
ImGui.TextColored(isVisible ? new Vector4(0.1f, 1f, 0.1f, 1f) : new(0.6f, 0.6f, 0.6f, 1), isVisible ? "Visible" : "Not Visible");
ImGuiHelpers.SafeTextColored(isVisible ? new Vector4(0.1f, 1f, 0.1f, 1f) : new(0.6f, 0.6f, 0.6f, 1), isVisible ? "Visible"u8 : "Not Visible"u8);
ImGui.SameLine(ImGui.GetWindowWidth() - 100);
@ -132,7 +134,7 @@ public unsafe partial class AddonTree : IDisposable
if (ImGui.IsItemHovered())
{
ImGui.SetTooltip("Toggle Visibility");
ImGui.SetTooltip("Toggle Visibility"u8);
}
ImGui.SameLine();
@ -143,7 +145,7 @@ public unsafe partial class AddonTree : IDisposable
if (ImGui.IsItemHovered())
{
ImGui.SetTooltip("Toggle Popout Window");
ImGui.SetTooltip("Toggle Popout Window"u8);
}
PaddedSeparator(1);