Fix text color for customizations on locked designs.

This commit is contained in:
Ottermandias 2023-11-15 18:37:03 +01:00
parent c4bb24a6ec
commit 053998e5e4

View file

@ -94,24 +94,26 @@ public partial class CustomizationDrawer
using var _ = SetId(index);
using var bigGroup = ImRaii.Group();
using var disabled = ImRaii.Disabled(_locked);
if (indexedBy1)
using (var disabled = ImRaii.Disabled(_locked))
{
ListCombo1();
ImGui.SameLine();
ListInputInt1();
}
else
{
ListCombo0();
ImGui.SameLine();
ListInputInt0();
}
if (indexedBy1)
{
ListCombo1();
ImGui.SameLine();
ListInputInt1();
}
else
{
ListCombo0();
ImGui.SameLine();
ListInputInt0();
}
if (_withApply)
{
ImGui.SameLine();
ApplyCheckbox();
if (_withApply)
{
ImGui.SameLine();
ApplyCheckbox();
}
}
ImGui.SameLine();