Skip to content
This repository has been archived by the owner on Nov 21, 2024. It is now read-only.

Commit

Permalink
Prevent Variant Option #s
Browse files Browse the repository at this point in the history
  • Loading branch information
zbee committed Sep 8, 2024
1 parent 4fb1f7b commit 94b49dc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion XIVSlothCombo/Window/Functions/Presets.cs
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ internal unsafe static void DrawPreset(CustomComboPreset preset, CustomComboInfo

ImGui.Spacing();

if (ImGui.Checkbox($"{info.FancyName}###{i}", ref enabled))
if (ImGui.Checkbox($"{info.FancyName}###{preset}{i}", ref enabled))
{
if (enabled)
{
Expand Down
2 changes: 1 addition & 1 deletion XIVSlothCombo/Window/Tabs/PvEFeatures.cs
Original file line number Diff line number Diff line change
Expand Up @@ -141,9 +141,9 @@ internal class PvEFeatures : ConfigWindow

private static void DrawVariantContents(string jobName)
{
int i = 0;
foreach (var (preset, info) in groupedPresets[jobName].Where(x => PresetStorage.IsVariant(x.Preset)))
{
int i = -1;
InfoBox presetBox = new() { Color = Colors.Grey, BorderThickness = 1f, CurveRadius = 8f, ContentsAction = () => { Presets.DrawPreset(preset, info, ref i); } };
presetBox.Draw();
ImGuiHelpers.ScaledDummy(12.0f);
Expand Down

0 comments on commit 94b49dc

Please sign in to comment.