mirror of
https://github.com/Ottermandias/Glamourer.git
synced 2025-12-12 10:17:23 +01:00
Make ManualWithLinks the default.
This commit is contained in:
parent
b4cd5110f2
commit
488bea0e78
6 changed files with 17 additions and 7 deletions
|
|
@ -163,7 +163,7 @@ public partial class GlamourerIpc
|
|||
if ((hasModelId || state.ModelData.ModelId == 0) && state.CanUnlock(lockCode))
|
||||
{
|
||||
_stateManager.ApplyDesign(state, design,
|
||||
new ApplySettings(Source: once ? StateSource.IpcManual : StateSource.IpcFixed, Key: lockCode));
|
||||
new ApplySettings(Source: once ? StateSource.IpcManual : StateSource.IpcFixed, Key: lockCode, MergeLinks: true));
|
||||
state.Lock(lockCode);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -24,6 +24,16 @@ public readonly record struct ApplySettings(
|
|||
MergeLinks = false,
|
||||
};
|
||||
|
||||
public static readonly ApplySettings ManualWithLinks = new()
|
||||
{
|
||||
Key = 0,
|
||||
Source = StateSource.Manual,
|
||||
FromJobChange = false,
|
||||
RespectManual = false,
|
||||
UseSingleSource = false,
|
||||
MergeLinks = true,
|
||||
};
|
||||
|
||||
public static readonly ApplySettings Game = new()
|
||||
{
|
||||
Key = 0,
|
||||
|
|
|
|||
|
|
@ -163,7 +163,7 @@ public sealed class DesignQuickBar : Window, IDisposable
|
|||
|
||||
var (applyGear, applyCustomize, applyCrest, applyParameters) = UiHelpers.ConvertKeysToFlags();
|
||||
using var _ = design!.TemporarilyRestrictApplication(applyGear, applyCustomize, applyCrest, applyParameters);
|
||||
_stateManager.ApplyDesign(state, design, ApplySettings.Manual);
|
||||
_stateManager.ApplyDesign(state, design, ApplySettings.ManualWithLinks);
|
||||
}
|
||||
|
||||
public void DrawRevertButton(Vector2 buttonSize)
|
||||
|
|
|
|||
|
|
@ -344,7 +344,7 @@ public class ActorPanel(
|
|||
var text = ImGui.GetClipboardText();
|
||||
var design = _converter.FromBase64(text, applyCustomize, applyGear, out _)
|
||||
?? throw new Exception("The clipboard did not contain valid data.");
|
||||
_stateManager.ApplyDesign(_state!, design, ApplySettings.Manual with { MergeLinks = true });
|
||||
_stateManager.ApplyDesign(_state!, design, ApplySettings.ManualWithLinks);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -458,7 +458,7 @@ public class DesignPanel(
|
|||
{
|
||||
var (applyGear, applyCustomize, applyCrest, applyParameters) = UiHelpers.ConvertKeysToFlags();
|
||||
using var _ = _selector.Selected!.TemporarilyRestrictApplication(applyGear, applyCustomize, applyCrest, applyParameters);
|
||||
_state.ApplyDesign(state, _selector.Selected!, ApplySettings.Manual with { MergeLinks = true });
|
||||
_state.ApplyDesign(state, _selector.Selected!, ApplySettings.ManualWithLinks);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -477,7 +477,7 @@ public class DesignPanel(
|
|||
{
|
||||
var (applyGear, applyCustomize, applyCrest, applyParameters) = UiHelpers.ConvertKeysToFlags();
|
||||
using var _ = _selector.Selected!.TemporarilyRestrictApplication(applyGear, applyCustomize, applyCrest, applyParameters);
|
||||
_state.ApplyDesign(state, _selector.Selected!, ApplySettings.Manual with {MergeLinks = true});
|
||||
_state.ApplyDesign(state, _selector.Selected!, ApplySettings.ManualWithLinks);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -417,7 +417,7 @@ public class CommandService : IDisposable
|
|||
if (!_objects.TryGetValue(identifier, out var actors))
|
||||
{
|
||||
if (_stateManager.TryGetValue(identifier, out var state))
|
||||
_stateManager.ApplyDesign(state, design, ApplySettings.Manual with { MergeLinks = true });
|
||||
_stateManager.ApplyDesign(state, design, ApplySettings.ManualWithLinks);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
@ -426,7 +426,7 @@ public class CommandService : IDisposable
|
|||
if (_stateManager.GetOrCreate(actor.GetIdentifier(_actors), actor, out var state))
|
||||
{
|
||||
ApplyModSettings(design, actor, applyMods);
|
||||
_stateManager.ApplyDesign(state, design, ApplySettings.Manual with { MergeLinks = true });
|
||||
_stateManager.ApplyDesign(state, design, ApplySettings.ManualWithLinks);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue