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:
parent
c9a11a6843
commit
3402ad89a1
4 changed files with 18 additions and 36 deletions
|
@ -20,17 +20,6 @@ namespace Auracite;
|
||||||
|
|
||||||
public class AdventurerPlateStep : IStep
|
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()
|
public AdventurerPlateStep()
|
||||||
{
|
{
|
||||||
|
|
||||||
|
@ -70,33 +59,33 @@ public class AdventurerPlateStep : IStep
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
switch ((DecorationType)decoration.Index)
|
switch (decoration.Type)
|
||||||
{
|
{
|
||||||
case DecorationType.PatternOverlay:
|
case AgentCharaCard.DecorationType.PatternOverlay:
|
||||||
{
|
{
|
||||||
Plugin.package.pattern_overlay = GetImage(ResolveCardDecoration(rowIndex))
|
Plugin.package.pattern_overlay = GetImage(ResolveCardDecoration(rowIndex))
|
||||||
.ToBase64String(PngFormat.Instance);
|
.ToBase64String(PngFormat.Instance);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case DecorationType.Backing:
|
case AgentCharaCard.DecorationType.Backing:
|
||||||
{
|
{
|
||||||
Plugin.package.backing = GetImage(ResolveCardDecoration(rowIndex))
|
Plugin.package.backing = GetImage(ResolveCardDecoration(rowIndex))
|
||||||
.ToBase64String(PngFormat.Instance);
|
.ToBase64String(PngFormat.Instance);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case DecorationType.PortraitFrame:
|
case AgentCharaCard.DecorationType.PortraitFrame:
|
||||||
{
|
{
|
||||||
Plugin.package.portrait_frame = GetImage(ResolveCardDecoration(rowIndex))
|
Plugin.package.portrait_frame = GetImage(ResolveCardDecoration(rowIndex))
|
||||||
.ToBase64String(PngFormat.Instance);
|
.ToBase64String(PngFormat.Instance);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case DecorationType.PlateFrame:
|
case AgentCharaCard.DecorationType.PlateFrame:
|
||||||
{
|
{
|
||||||
Plugin.package.plate_frame = GetImage(ResolveCardDecoration(rowIndex))
|
Plugin.package.plate_frame = GetImage(ResolveCardDecoration(rowIndex))
|
||||||
.ToBase64String(PngFormat.Instance);
|
.ToBase64String(PngFormat.Instance);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case DecorationType.Accent:
|
case AgentCharaCard.DecorationType.Accent:
|
||||||
{
|
{
|
||||||
Plugin.package.accent = GetImage(ResolveCardDecoration(rowIndex))
|
Plugin.package.accent = GetImage(ResolveCardDecoration(rowIndex))
|
||||||
.ToBase64String(PngFormat.Instance);
|
.ToBase64String(PngFormat.Instance);
|
||||||
|
|
|
@ -1,9 +1,8 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<Project Sdk="Microsoft.NET.Sdk">
|
<Project Sdk="Dalamud.NET.SDK/12.0.2">
|
||||||
<Import Project="Dalamud.Plugin.Bootstrap.targets"/>
|
|
||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<Version>1.3.0.0</Version>
|
<Version>1.4.0.0</Version>
|
||||||
<RootNamespace>NeoVARC</RootNamespace>
|
<RootNamespace>NeoVARC</RootNamespace>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
|
|
|
@ -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>
|
|
|
@ -1,12 +1,18 @@
|
||||||
{
|
{
|
||||||
"version": 1,
|
"version": 1,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"net8.0-windows7.0": {
|
"net9.0-windows7.0": {
|
||||||
"DalamudPackager": {
|
"DalamudPackager": {
|
||||||
"type": "Direct",
|
"type": "Direct",
|
||||||
"requested": "[11.0.0, )",
|
"requested": "[12.0.0, )",
|
||||||
"resolved": "11.0.0",
|
"resolved": "12.0.0",
|
||||||
"contentHash": "bjT7XUlhIJSmsE/O76b7weUX+evvGQctbQB8aKXt94o+oPWxHpCepxAGMs7Thow3AzCyqWs7cOpp9/2wcgRRQA=="
|
"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": {
|
"EmbedIO": {
|
||||||
"type": "Direct",
|
"type": "Direct",
|
||||||
|
|
Loading…
Add table
Reference in a new issue