1
Fork 0
mirror of https://github.com/redstrate/Auracite.git synced 2025-04-20 19:57:46 +00:00

Update to Dalamud API 12

This commit is contained in:
Joshua Goins 2025-03-29 17:02:07 -04:00
parent c9a11a6843
commit 3402ad89a1
4 changed files with 18 additions and 36 deletions

View file

@ -20,17 +20,6 @@ namespace Auracite;
public class AdventurerPlateStep : IStep
{
// Remove when https://github.com/aers/FFXIVClientStructs/pull/1319 is merged
enum DecorationType
{
Invalid = 0x0,
Backing = 0x1,
PatternOverlay = 0x2,
PortraitFrame = 0x3,
PlateFrame = 0x4,
Accent = 0x5,
}
public AdventurerPlateStep()
{
@ -70,33 +59,33 @@ public class AdventurerPlateStep : IStep
continue;
}
switch ((DecorationType)decoration.Index)
switch (decoration.Type)
{
case DecorationType.PatternOverlay:
case AgentCharaCard.DecorationType.PatternOverlay:
{
Plugin.package.pattern_overlay = GetImage(ResolveCardDecoration(rowIndex))
.ToBase64String(PngFormat.Instance);
}
break;
case DecorationType.Backing:
case AgentCharaCard.DecorationType.Backing:
{
Plugin.package.backing = GetImage(ResolveCardDecoration(rowIndex))
.ToBase64String(PngFormat.Instance);
}
break;
case DecorationType.PortraitFrame:
case AgentCharaCard.DecorationType.PortraitFrame:
{
Plugin.package.portrait_frame = GetImage(ResolveCardDecoration(rowIndex))
.ToBase64String(PngFormat.Instance);
}
break;
case DecorationType.PlateFrame:
case AgentCharaCard.DecorationType.PlateFrame:
{
Plugin.package.plate_frame = GetImage(ResolveCardDecoration(rowIndex))
.ToBase64String(PngFormat.Instance);
}
break;
case DecorationType.Accent:
case AgentCharaCard.DecorationType.Accent:
{
Plugin.package.accent = GetImage(ResolveCardDecoration(rowIndex))
.ToBase64String(PngFormat.Instance);

View file

@ -1,9 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<Project Sdk="Microsoft.NET.Sdk">
<Import Project="Dalamud.Plugin.Bootstrap.targets"/>
<Project Sdk="Dalamud.NET.SDK/12.0.2">
<PropertyGroup>
<Version>1.3.0.0</Version>
<Version>1.4.0.0</Version>
<RootNamespace>NeoVARC</RootNamespace>
</PropertyGroup>

View file

@ -1,12 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<Project>
<PropertyGroup>
<DalamudLibPath Condition="$([MSBuild]::IsOSPlatform('Windows'))">$(appdata)\XIVLauncher\addon\Hooks\dev\</DalamudLibPath>
<DalamudLibPath Condition="$([MSBuild]::IsOSPlatform('Linux'))">$(HOME)/.xlcore/dalamud/Hooks/dev/</DalamudLibPath>
<DalamudLibPath Condition="$([MSBuild]::IsOSPlatform('Linux'))">$(HOME)/.local/share/astra/dalamud/stable/</DalamudLibPath>
<DalamudLibPath Condition="$([MSBuild]::IsOSPlatform('OSX'))">$(HOME)/Library/Application Support/XIV on Mac/dalamud/Hooks/dev/</DalamudLibPath>
<DalamudLibPath Condition="$(DALAMUD_HOME) != ''">$(DALAMUD_HOME)/</DalamudLibPath>
</PropertyGroup>
<Import Project="$(DalamudLibPath)/targets/Dalamud.Plugin.targets"/>
</Project>

View file

@ -1,12 +1,18 @@
{
"version": 1,
"dependencies": {
"net8.0-windows7.0": {
"net9.0-windows7.0": {
"DalamudPackager": {
"type": "Direct",
"requested": "[11.0.0, )",
"resolved": "11.0.0",
"contentHash": "bjT7XUlhIJSmsE/O76b7weUX+evvGQctbQB8aKXt94o+oPWxHpCepxAGMs7Thow3AzCyqWs7cOpp9/2wcgRRQA=="
"requested": "[12.0.0, )",
"resolved": "12.0.0",
"contentHash": "J5TJLV3f16T/E2H2P17ClWjtfEBPpq3yxvqW46eN36JCm6wR+EaoaYkqG9Rm5sHqs3/nK/vKjWWyvEs/jhKoXw=="
},
"DotNet.ReproducibleBuilds": {
"type": "Direct",
"requested": "[1.2.25, )",
"resolved": "1.2.25",
"contentHash": "xCXiw7BCxHJ8pF6wPepRUddlh2dlQlbr81gXA72hdk4FLHkKXas7EH/n+fk5UCA/YfMqG1Z6XaPiUjDbUNBUzg=="
},
"EmbedIO": {
"type": "Direct",