using ImGuiNET; namespace PartyDamage; public static class ImGuiHelper { public static OnDispose? DisabledIf(bool disabled) { if (disabled) { ImGui.BeginDisabled(); return new OnDispose(ImGui.EndDisabled); } return null; } public static OnDispose? DisabledUnless(bool unless) { return DisabledIf(!unless); } }