mirror of
https://github.com/Ottermandias/Glamourer.git
synced 2025-12-30 04:13:43 +01:00
Add an option for designs to always force a redraw.
This commit is contained in:
parent
86c871fa81
commit
2713e6f1f6
11 changed files with 52 additions and 6 deletions
|
|
@ -193,6 +193,7 @@ public sealed class DesignManager : DesignEditor
|
|||
DesignChanged.Invoke(DesignChanged.Type.ChangedDescription, design, oldDescription);
|
||||
}
|
||||
|
||||
/// <summary> Change the associated color of a design. </summary>
|
||||
public void ChangeColor(Design design, string newColor)
|
||||
{
|
||||
var oldColor = design.Color;
|
||||
|
|
@ -311,6 +312,17 @@ public sealed class DesignManager : DesignEditor
|
|||
|
||||
#region Edit Application Rules
|
||||
|
||||
public void ChangeForcedRedraw(Design design, bool forcedRedraw)
|
||||
{
|
||||
if (design.ForcedRedraw == forcedRedraw)
|
||||
return;
|
||||
|
||||
design.ForcedRedraw = forcedRedraw;
|
||||
SaveService.QueueSave(design);
|
||||
Glamourer.Log.Debug($"Set {design.Identifier} to {(forcedRedraw ? "not" : string.Empty)} force redraws.");
|
||||
DesignChanged.Invoke(DesignChanged.Type.ForceRedraw, design, null);
|
||||
}
|
||||
|
||||
/// <summary> Change whether to apply a specific customize value. </summary>
|
||||
public void ChangeApplyCustomize(Design design, CustomizeIndex idx, bool value)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue