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:
Haselnussbomber 2025-08-05 00:46:43 +02:00 committed by GitHub
parent f0021bc8f9
commit 58fbff7c56
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
126 changed files with 1433 additions and 1406 deletions

View file

@ -112,7 +112,7 @@ internal class PluginErrorHandler : IServiceType
this.activeNotification = this.notificationManager.AddNotification(notification);
this.activeNotification.DrawActions += _ =>
{
if (ImGui.Button("Show console"))
if (ImGui.Button("Show console"u8))
{
this.di.OpenLogWindow(this.plugin.InternalName);
this.activeNotification.DismissNow();
@ -120,12 +120,12 @@ internal class PluginErrorHandler : IServiceType
if (ImGui.IsItemHovered())
{
ImGui.SetTooltip("Show the console filtered to this plugin");
ImGui.SetTooltip("Show the console filtered to this plugin"u8);
}
ImGui.SameLine();
if (ImGui.Button("Disable notifications"))
if (ImGui.Button("Disable notifications"u8))
{
devPlugin.NotifyForErrors = false;
this.activeNotification.DismissNow();
@ -133,7 +133,7 @@ internal class PluginErrorHandler : IServiceType
if (ImGui.IsItemHovered())
{
ImGui.SetTooltip("Disable error notifications for this plugin");
ImGui.SetTooltip("Disable error notifications for this plugin"u8);
}
};
}