muffin v7.5.0

This commit is contained in:
alydev 2026-05-01 05:17:35 +10:00
parent afafd5e377
commit a6481e7b9a
67 changed files with 4281 additions and 2372 deletions

View file

@ -1,3 +1,4 @@
using System;
using System.Collections.Generic;
using Dalamud.Bindings.ImGui;
using Dalamud.Game.Text;
@ -58,31 +59,52 @@ internal abstract class ConfigComponent
protected static void DrawNotes(bool enabledByDefault, IEnumerable<string> notes)
{
using ImRaii.Color color = new ImRaii.Color();
color.Push(ImGuiCol.TextDisabled, (!enabledByDefault) ? ImGuiColors.DalamudYellow : ImGuiColors.ParsedBlue);
ImGui.SameLine();
using (ImRaii.PushFont(UiBuilder.IconFont))
//IL_0000: Unknown result type (might be due to invalid IL or missing references)
//IL_0006: Expected O, but got Unknown
//IL_0071: Unknown result type (might be due to invalid IL or missing references)
//IL_0076: Unknown result type (might be due to invalid IL or missing references)
ColorDisposable val = new ColorDisposable();
try
{
if (!enabledByDefault)
val.Push(ImGuiCol.TextDisabled, (!enabledByDefault) ? ImGuiColors.DalamudYellow : ImGuiColors.ParsedBlue, true);
ImGui.SameLine();
FontDisposable val2 = ImRaii.PushFont(UiBuilder.IconFont, true);
try
{
ImGui.TextDisabled(FontAwesomeIcon.ExclamationTriangle.ToIconString());
if (!enabledByDefault)
{
ImGui.TextDisabled(FontAwesomeIcon.ExclamationTriangle.ToIconString());
}
else
{
ImGui.TextDisabled(FontAwesomeIcon.InfoCircle.ToIconString());
}
}
else
finally
{
ImGui.TextDisabled(FontAwesomeIcon.InfoCircle.ToIconString());
((IDisposable)val2)?.Dispose();
}
if (!ImGui.IsItemHovered())
{
return;
}
TooltipDisposable val3 = ImRaii.Tooltip();
try
{
ImGui.TextColored(ImGuiColors.DalamudYellow, "While testing, the following issues have been found:");
foreach (string note in notes)
{
ImGui.BulletText(note);
}
}
finally
{
((TooltipDisposable)(ref val3)).Dispose();
}
}
if (!ImGui.IsItemHovered())
finally
{
return;
}
using (ImRaii.Tooltip())
{
ImGui.TextColored(ImGuiColors.DalamudYellow, "While testing, the following issues have been found:");
foreach (string note in notes)
{
ImGui.BulletText(note);
}
((IDisposable)val)?.Dispose();
}
}
}