mirror of
https://github.com/Ottermandias/Glamourer.git
synced 2025-12-12 10:17:23 +01:00
Merge branch 'main' into rework
# Conflicts: # Glamourer.GameData/Customization/CustomizationOptions.cs # Glamourer.GameData/Util/IconStorage.cs # Glamourer/Api/PenumbraAttach.cs # Glamourer/CharacterSave.cs # Glamourer/Designs/DesignManager.cs # Glamourer/Designs/FixedDesigns.cs # Glamourer/Glamourer.csproj # Glamourer/Gui/Interface.cs # Glamourer/Gui/InterfaceDesigns.cs # Glamourer/Gui/InterfaceEquipment.cs # Glamourer/Offsets.cs # Penumbra.PlayerWatch/Penumbra.PlayerWatch.csproj
This commit is contained in:
commit
b2cede67b8
7 changed files with 39 additions and 22 deletions
|
|
@ -1,6 +1,6 @@
|
|||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net6.0-windows</TargetFramework>
|
||||
<TargetFramework>net7.0-windows</TargetFramework>
|
||||
<LangVersion>preview</LangVersion>
|
||||
<PlatformTarget>x64</PlatformTarget>
|
||||
<RootNamespace>Glamourer</RootNamespace>
|
||||
|
|
|
|||
|
|
@ -130,28 +130,45 @@ public class DesignManager
|
|||
//public void LoadFromFile()
|
||||
//{
|
||||
// _saveFile.Refresh();
|
||||
// SortedList<string, CharacterSave>? designs = null;
|
||||
// Designs = new SortedList<string, CharacterSave>();
|
||||
// var changes = false;
|
||||
// if (_saveFile.Exists)
|
||||
// try
|
||||
// {
|
||||
// var data = File.ReadAllText(_saveFile.FullName);
|
||||
// designs = JsonConvert.DeserializeObject<SortedList<string, CharacterSave>>(data);
|
||||
// var json = JsonConvert.DeserializeObject<Dictionary<string, string>>(data);
|
||||
// if (json == null)
|
||||
// {
|
||||
// PluginLog.Error($"Save file {_saveFile.FullName} corrupted.");
|
||||
// json = new Dictionary<string, string>();
|
||||
// }
|
||||
|
||||
// foreach (var (name, saveString) in json)
|
||||
// {
|
||||
// try
|
||||
// {
|
||||
// var save = CharacterSave.FromString(saveString, out var oldVersion);
|
||||
// changes |= oldVersion;
|
||||
// changes |= !Designs.TryAdd(name, save);
|
||||
// }
|
||||
// catch (Exception e)
|
||||
// {
|
||||
// PluginLog.Error($"Character Save for {name} is invalid:\n{e}");
|
||||
// changes = true;
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
// catch (Exception e)
|
||||
// {
|
||||
// PluginLog.Error($"Could not load save file {_saveFile.FullName}:\n{e}");
|
||||
// changes = true;
|
||||
// }
|
||||
//
|
||||
// if (designs == null)
|
||||
// {
|
||||
// Designs = new SortedList<string, CharacterSave>();
|
||||
// SaveToFile();
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// Designs = designs;
|
||||
// }
|
||||
//
|
||||
// changes = true;
|
||||
|
||||
// if (changes)
|
||||
// SaveToFile();
|
||||
|
||||
// BuildStructure();
|
||||
//}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net6.0-windows</TargetFramework>
|
||||
<TargetFramework>net7.0-windows</TargetFramework>
|
||||
<LangVersion>preview</LangVersion>
|
||||
<PlatformTarget>x64</PlatformTarget>
|
||||
<RootNamespace>Glamourer</RootNamespace>
|
||||
|
|
@ -119,7 +119,7 @@
|
|||
</None>
|
||||
</ItemGroup>
|
||||
<Target Name="PostBuild" AfterTargets="PostBuildEvent">
|
||||
<Exec Command="if $(Configuration) == Release powershell Compress-Archive -Force $(TargetPath), $(TargetDir)$(SolutionName).json, $(TargetDir)$(SolutionName).GameData.dll, $(TargetDir)Penumbra.GameData.dll, $(TargetDir)Penumbra.Api.dll $(SolutionDir)$(SolutionName).zip" />
|
||||
<Exec Command="if $(Configuration) == Release powershell Compress-Archive -Force $(TargetPath), $(TargetDir)$(SolutionName).json, $(TargetDir)$(SolutionName).GameData.dll, $(TargetDir)Penumbra.GameData.dll, $(TargetDir)Penumbra.Api.dll, $(TargetDir)Penumbra.String.dll $(SolutionDir)$(SolutionName).zip" />
|
||||
<Exec Command="if $(Configuration) == Release powershell Copy-Item -Force $(TargetDir)$(SolutionName).json -Destination $(SolutionDir)" />
|
||||
</Target>
|
||||
</Project>
|
||||
|
|
@ -5,10 +5,10 @@
|
|||
"Description": "Adds functionality to change and store appearance of players, customization and equip. Requires Penumbra to be installed and activated to work. Can also add preview options to the Changed Items tab for Penumbra.",
|
||||
"Tags": [ "Appearance", "Glamour", "Race", "Outfit", "Armor", "Clothes", "Skins", "Customization", "Design", "Character" ],
|
||||
"InternalName": "Glamourer",
|
||||
"AssemblyVersion": "0.1.1.1",
|
||||
"AssemblyVersion": "0.1.1.2",
|
||||
"RepoUrl": "https://github.com/Ottermandias/Glamourer",
|
||||
"ApplicableVersion": "any",
|
||||
"DalamudApiLevel": 7,
|
||||
"DalamudApiLevel": 8,
|
||||
"ImageUrls": null,
|
||||
"IconUrl": "https://raw.githubusercontent.com/Ottermandias/Glamourer/master/images/icon.png"
|
||||
}
|
||||
|
|
@ -57,7 +57,7 @@ namespace Glamourer.Gui;
|
|||
//
|
||||
// try
|
||||
// {
|
||||
// _selection!.Data = CharacterSave.FromString(text);
|
||||
// _selection!.Data.Load(text, out _);
|
||||
// _designs.SaveToFile();
|
||||
// }
|
||||
// catch (Exception e)
|
||||
|
|
|
|||
|
|
@ -106,7 +106,7 @@ namespace Glamourer.Gui;
|
|||
// {
|
||||
// 0 => SmallClothes,
|
||||
// 9903 => SmallClothesNpc,
|
||||
// _ => _identifier.Identify(set, weapon, variant, slot) ?? Unknown,
|
||||
// _ => _identifier.Identify(set, weapon, variant, slot).FirstOrDefault() ?? Unknown,
|
||||
// };
|
||||
// }
|
||||
//
|
||||
|
|
|
|||
|
|
@ -6,11 +6,11 @@
|
|||
"Description": "Adds functionality to change and store appearance of players, customization and equip. Requires Penumbra to be installed and activated to work. Can also add preview options to the Changed Items tab for Penumbra.",
|
||||
"Tags": [ "Appearance", "Glamour", "Race", "Outfit", "Armor", "Clothes", "Skins", "Customization", "Design", "Character" ],
|
||||
"InternalName": "Glamourer",
|
||||
"AssemblyVersion": "0.1.1.1",
|
||||
"TestingAssemblyVersion": "0.1.1.1",
|
||||
"AssemblyVersion": "0.1.1.2",
|
||||
"TestingAssemblyVersion": "0.1.1.2",
|
||||
"RepoUrl": "https://github.com/Ottermandias/Glamourer",
|
||||
"ApplicableVersion": "any",
|
||||
"DalamudApiLevel": 7,
|
||||
"DalamudApiLevel": 8,
|
||||
"IsHide": "False",
|
||||
"IsTestingExclusive": "false",
|
||||
"DownloadCount": 1,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue