mirror of
https://github.com/Ottermandias/Glamourer.git
synced 2025-12-13 12:14:18 +01:00
Fix design link application checkboxes.
This commit is contained in:
parent
22e7a71425
commit
a501d97252
2 changed files with 3 additions and 3 deletions
|
|
@ -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.",
|
"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)
|
1)
|
||||||
.RegisterHighlight(
|
.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.")
|
.RegisterEntry("Improved handling for highlights with advanced customization colors and normal customization settings.")
|
||||||
.RegisterHighlight(
|
.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.")
|
"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.")
|
||||||
|
|
|
||||||
|
|
@ -230,13 +230,13 @@ public class DesignLinkDrawer(DesignLinkManager _linkManager, DesignFileSystemSe
|
||||||
ImGui.SameLine();
|
ImGui.SameLine();
|
||||||
Box(4);
|
Box(4);
|
||||||
if (newType != current)
|
if (newType != current)
|
||||||
_linkManager.ChangeApplicationType(_selector.Selected!, idx, order, current);
|
_linkManager.ChangeApplicationType(_selector.Selected!, idx, order, newType);
|
||||||
return;
|
return;
|
||||||
|
|
||||||
void Box(int i)
|
void Box(int i)
|
||||||
{
|
{
|
||||||
var (applicationType, description) = ApplicationTypeExtensions.Types[i];
|
var (applicationType, description) = ApplicationTypeExtensions.Types[i];
|
||||||
var value = applicationType.HasFlag(applicationType);
|
var value = current.HasFlag(applicationType);
|
||||||
if (ImGui.Checkbox($"##{(byte)applicationType}", ref value))
|
if (ImGui.Checkbox($"##{(byte)applicationType}", ref value))
|
||||||
newType = value ? newType | applicationType : newType & ~applicationType;
|
newType = value ? newType | applicationType : newType & ~applicationType;
|
||||||
ImGuiUtil.HoverTooltip(description);
|
ImGuiUtil.HoverTooltip(description);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue