Fix design link application checkboxes.

This commit is contained in:
Ottermandias 2024-03-01 16:41:45 +01:00
parent 22e7a71425
commit a501d97252
2 changed files with 3 additions and 3 deletions

View file

@ -77,7 +77,7 @@ public class GlamourerChangelog
"This is off by default and I strongly recommend AGAINST using it, since Glamourer has no way to revert such changes. You are responsible for keeping your collection in order.",
1)
.RegisterHighlight(
"Added mouse wheel scrolling to many selectors, e.g. for equipment, dyes or customizations. You need to hold Control while ")
"Added mouse wheel scrolling to many selectors, e.g. for equipment, dyes or customizations. You need to hold Control while scrolling in most places.")
.RegisterEntry("Improved handling for highlights with advanced customization colors and normal customization settings.")
.RegisterHighlight(
"Changed Item Customizations in Penumbra can now be right-clicked to preview them on your character, if you have the correct Gender/Race combo on them.")

View file

@ -230,13 +230,13 @@ public class DesignLinkDrawer(DesignLinkManager _linkManager, DesignFileSystemSe
ImGui.SameLine();
Box(4);
if (newType != current)
_linkManager.ChangeApplicationType(_selector.Selected!, idx, order, current);
_linkManager.ChangeApplicationType(_selector.Selected!, idx, order, newType);
return;
void Box(int i)
{
var (applicationType, description) = ApplicationTypeExtensions.Types[i];
var value = applicationType.HasFlag(applicationType);
var value = current.HasFlag(applicationType);
if (ImGui.Checkbox($"##{(byte)applicationType}", ref value))
newType = value ? newType | applicationType : newType & ~applicationType;
ImGuiUtil.HoverTooltip(description);