mirror of
https://github.com/Ottermandias/Glamourer.git
synced 2026-02-15 12:17:41 +01:00
MouseWheels are pretty great.
This commit is contained in:
parent
5e37f8d2e8
commit
1fefe7366c
22 changed files with 250 additions and 88 deletions
|
|
@ -26,6 +26,7 @@ public sealed class Design : DesignBase, ISavable
|
|||
{
|
||||
Tags = [.. other.Tags];
|
||||
Description = other.Description;
|
||||
QuickDesign = other.QuickDesign;
|
||||
AssociatedMods = new SortedList<Mod, ModSettings>(other.AssociatedMods);
|
||||
}
|
||||
|
||||
|
|
@ -39,6 +40,7 @@ public sealed class Design : DesignBase, ISavable
|
|||
public string Description { get; internal set; } = string.Empty;
|
||||
public string[] Tags { get; internal set; } = [];
|
||||
public int Index { get; internal set; }
|
||||
public bool QuickDesign { get; internal set; } = true;
|
||||
public string Color { get; internal set; } = string.Empty;
|
||||
public SortedList<Mod, ModSettings> AssociatedMods { get; private set; } = [];
|
||||
public LinkContainer Links { get; private set; } = [];
|
||||
|
|
@ -64,6 +66,7 @@ public sealed class Design : DesignBase, ISavable
|
|||
["Name"] = Name.Text,
|
||||
["Description"] = Description,
|
||||
["Color"] = Color,
|
||||
["QuickDesign"] = QuickDesign,
|
||||
["Tags"] = JArray.FromObject(Tags),
|
||||
["WriteProtected"] = WriteProtected(),
|
||||
["Equipment"] = SerializeEquipment(),
|
||||
|
|
@ -124,6 +127,7 @@ public sealed class Design : DesignBase, ISavable
|
|||
Description = json["Description"]?.ToObject<string>() ?? string.Empty,
|
||||
Tags = ParseTags(json),
|
||||
LastEdit = json["LastEdit"]?.ToObject<DateTimeOffset>() ?? creationDate,
|
||||
QuickDesign = json["QuickDesign"]?.ToObject<bool>() ?? true,
|
||||
};
|
||||
if (design.LastEdit < creationDate)
|
||||
design.LastEdit = creationDate;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue