mirror of
https://github.com/Ottermandias/Glamourer.git
synced 2025-12-12 18:27:24 +01:00
Do never apply customize that's unavailable... hopefully.
This commit is contained in:
parent
07f1b4f61c
commit
a44eae4c1f
3 changed files with 5 additions and 0 deletions
|
|
@ -397,6 +397,8 @@ public class DesignBase
|
||||||
design.SetApplyCustomize(idx, false);
|
design.SetApplyCustomize(idx, false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
design.ApplyCustomize &= set.SettingAvailable;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void MigrateBase64(ItemManager items, HumanModelList humans, string base64)
|
public void MigrateBase64(ItemManager items, HumanModelList humans, string base64)
|
||||||
|
|
|
||||||
|
|
@ -306,6 +306,8 @@ public class DesignManager
|
||||||
/// <summary> Change whether to apply a specific customize value. </summary>
|
/// <summary> Change whether to apply a specific customize value. </summary>
|
||||||
public void ChangeApplyCustomize(Design design, CustomizeIndex idx, bool value)
|
public void ChangeApplyCustomize(Design design, CustomizeIndex idx, bool value)
|
||||||
{
|
{
|
||||||
|
var set = _customizations.AwaitedService.GetList(design.DesignData.Customize.Clan, design.DesignData.Customize.Gender);
|
||||||
|
value &= set.IsAvailable(idx);
|
||||||
if (!design.SetApplyCustomize(idx, value))
|
if (!design.SetApplyCustomize(idx, value))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -36,6 +36,7 @@ public sealed class CustomizationService : AsyncServiceWrapper<ICustomizationMan
|
||||||
}
|
}
|
||||||
|
|
||||||
var set = AwaitedService.GetList(ret.Clan, ret.Gender);
|
var set = AwaitedService.GetList(ret.Clan, ret.Gender);
|
||||||
|
applyWhich &= set.SettingAvailable;
|
||||||
foreach (var index in CustomizationExtensions.AllBasic)
|
foreach (var index in CustomizationExtensions.AllBasic)
|
||||||
{
|
{
|
||||||
var flag = index.ToFlag();
|
var flag = index.ToFlag();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue