Merge pull request #87 from Cazzar/main

Add option to disable the application of fixed designs when in gpose
This commit is contained in:
Ottermandias 2023-06-17 15:57:33 +02:00 committed by GitHub
commit 1f4685f505
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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);