1
0
Fork 0
forked from aly/qstbak

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

@ -69,13 +69,18 @@ internal sealed class QuickAccessButtonsComponent
private void DrawRebuildNavmeshButton()
{
bool flag = _commandManager.Commands.ContainsKey("/vnav");
using (ImRaii.Disabled(!flag || !ImGui.IsKeyDown(ImGuiKey.ModCtrl)))
DisabledDisposable val = ImRaii.Disabled(!flag || !ImGui.IsKeyDown(ImGuiKey.ModCtrl));
try
{
if (ImGuiComponents.IconButtonWithText(FontAwesomeIcon.GlobeEurope, "Rebuild Navmesh"))
{
_commandManager.ProcessCommand("/vnav rebuild");
}
}
finally
{
((IDisposable)val)?.Dispose();
}
if (ImGui.IsItemHovered(ImGuiHoveredFlags.AllowWhenDisabled))
{
if (!flag)
@ -118,7 +123,8 @@ internal sealed class QuickAccessButtonsComponent
return;
}
int num2 = ((validationErrorCount == 0 || num == 0) ? 1 : 2);
using (ImRaii.PushId("validationissues"))
IdDisposable val = ImRaii.PushId((ImU8String)"validationissues", true);
try
{
FontAwesomeIcon icon = FontAwesomeIcon.ExclamationTriangle;
FontAwesomeIcon icon2 = FontAwesomeIcon.InfoCircle;
@ -170,5 +176,9 @@ internal sealed class QuickAccessButtonsComponent
_questValidationWindow.IsOpenAndUncollapsed = true;
}
}
finally
{
((IDisposable)val)?.Dispose();
}
}
}