mirror of
https://github.com/Ottermandias/Glamourer.git
synced 2025-12-13 12:14:18 +01:00
Misc.
This commit is contained in:
parent
fce8b058b0
commit
46fcac6c7d
3 changed files with 9 additions and 8 deletions
|
|
@ -231,9 +231,9 @@ public class AutoDesignManager : ISavable, IReadOnlyList<AutoDesignSet>, IDispos
|
||||||
{
|
{
|
||||||
var newDesign = new AutoDesign()
|
var newDesign = new AutoDesign()
|
||||||
{
|
{
|
||||||
Design = design,
|
Design = design,
|
||||||
Type = ApplicationType.All,
|
Type = ApplicationType.All,
|
||||||
Jobs = _jobs.JobGroups[1],
|
Jobs = _jobs.JobGroups[1],
|
||||||
};
|
};
|
||||||
set.Designs.Add(newDesign);
|
set.Designs.Add(newDesign);
|
||||||
Save();
|
Save();
|
||||||
|
|
@ -494,8 +494,8 @@ public class AutoDesignManager : ISavable, IReadOnlyList<AutoDesignSet>, IDispos
|
||||||
|
|
||||||
var ret = new AutoDesign
|
var ret = new AutoDesign
|
||||||
{
|
{
|
||||||
Design = design,
|
Design = design,
|
||||||
Type = applicationType & ApplicationType.All,
|
Type = applicationType & ApplicationType.All,
|
||||||
};
|
};
|
||||||
return ParseConditions(setName, jObj, ret) ? ret : null;
|
return ParseConditions(setName, jObj, ret) ? ret : null;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -62,10 +62,10 @@ public unsafe struct DesignData
|
||||||
=> CrestVisibility.HasFlag(slot);
|
=> CrestVisibility.HasFlag(slot);
|
||||||
|
|
||||||
|
|
||||||
public FullEquipType MainhandType
|
public readonly FullEquipType MainhandType
|
||||||
=> _typeMainhand;
|
=> _typeMainhand;
|
||||||
|
|
||||||
public FullEquipType OffhandType
|
public readonly FullEquipType OffhandType
|
||||||
=> _typeOffhand;
|
=> _typeOffhand;
|
||||||
|
|
||||||
public readonly EquipItem Item(EquipSlot slot)
|
public readonly EquipItem Item(EquipSlot slot)
|
||||||
|
|
|
||||||
|
|
@ -105,7 +105,8 @@ public sealed class DesignFileSystem : FileSystem<Design>, IDisposable, ISavable
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
Glamourer.Messager.NotificationMessage(ex, $"Could not move design to {path} because the folder could not be created.", NotificationType.Error);
|
Glamourer.Messager.NotificationMessage(ex, $"Could not move design to {path} because the folder could not be created.",
|
||||||
|
NotificationType.Error);
|
||||||
}
|
}
|
||||||
|
|
||||||
CreateDuplicateLeaf(parent, design.Name.Text, design);
|
CreateDuplicateLeaf(parent, design.Name.Text, design);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue