mirror of
https://github.com/goatcorp/Dalamud.git
synced 2026-01-01 05:13:40 +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
|
|
@ -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);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue