mirror of
https://github.com/Caraxi/mare.client.git
synced 2025-12-12 22:17:22 +01:00
Add support for Palette+ (#40)
This commit is contained in:
parent
2eb9c0992b
commit
d218d06230
9 changed files with 128 additions and 0 deletions
|
|
@ -25,6 +25,9 @@ public class CharacterData
|
|||
|
||||
[JsonProperty]
|
||||
public string CustomizePlusScale { get; set; } = string.Empty;
|
||||
|
||||
[JsonProperty]
|
||||
public string PalettePlusPalette { get; set; } = string.Empty;
|
||||
|
||||
public void AddFileReplacement(ObjectKind objectKind, FileReplacement fileReplacement)
|
||||
{
|
||||
|
|
@ -74,6 +77,7 @@ public class CharacterData
|
|||
ManipulationData = ManipulationString,
|
||||
HeelsOffset = HeelsOffset,
|
||||
CustomizePlusData = CustomizePlusScale,
|
||||
PalettePlusData = PalettePlusPalette,
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -4,4 +4,5 @@ public record OptionalPluginWarning
|
|||
{
|
||||
public bool ShownHeelsWarning { get; set; } = false;
|
||||
public bool ShownCustomizePlusWarning { get; set; } = false;
|
||||
public bool ShownPalettePlusWarning { get; set; } = false;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -64,6 +64,7 @@ public class Pair
|
|||
{
|
||||
ShownCustomizePlusWarning = _configService.Current.DisableOptionalPluginWarnings,
|
||||
ShownHeelsWarning = _configService.Current.DisableOptionalPluginWarnings,
|
||||
ShownPalettePlusWarning = _configService.Current.DisableOptionalPluginWarnings,
|
||||
};
|
||||
|
||||
CachedPlayer.Initialize(address, name);
|
||||
|
|
@ -91,6 +92,7 @@ public class Pair
|
|||
{
|
||||
ShownCustomizePlusWarning = _configService.Current.DisableOptionalPluginWarnings,
|
||||
ShownHeelsWarning = _configService.Current.DisableOptionalPluginWarnings,
|
||||
ShownPalettePlusWarning = _configService.Current.DisableOptionalPluginWarnings,
|
||||
};
|
||||
|
||||
CachedPlayer.ApplyCharacterData(RemoveNotSyncedFiles(LastReceivedCharacterData.DeepClone())!, _pluginWarnings);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue