Add option to disable the application of fixed designs when in gpose

This commit is contained in:
Cayde Dixon 2023-06-17 21:10:15 +10:00
parent 9ec597cf2a
commit aa7b9b76d0
3 changed files with 7 additions and 0 deletions

View file

@ -124,6 +124,10 @@ namespace Glamourer.Designs
private void OnPlayerChange(Character character)
{
var name = character.Name.ToString();
if (Dalamud.PluginInterface.UiBuilder.GposeActive && !Glamourer.Config.ApplyInGPose)
return;
if (!EnabledDesigns.TryGetValue(name, out var designs))
return;

View file

@ -24,6 +24,7 @@ public class GlamourerConfig : IPluginConfiguration
public bool ShowLocks { get; set; } = true;
public bool AttachToPenumbra { get; set; } = true;
public bool ApplyFixedDesigns { get; set; } = true;
public bool ApplyInGPose { get; set; } = true;
public uint CustomizationColor { get; set; } = DefaultCustomizationColor;
public uint StateColor { get; set; } = DefaultStateColor;

View file

@ -101,6 +101,8 @@ internal partial class Interface
else
Glamourer.PlayerWatcher.Disable();
});
DrawConfigCheckMark("Apply in GPose", "Apply fixed designs to characters when entering into Group Pose", cfg.ApplyInGPose,
v => cfg.ApplyInGPose = v);
DrawFixedDesignGroup();
ImGui.Dummy(Vector2.UnitY * ImGui.GetTextLineHeightWithSpacing() / 2);