mirror of
https://github.com/redstrate/Auracite.git
synced 2025-04-23 21:27:45 +00:00
Update plugin to API level 11
This commit is contained in:
parent
e9f65e4545
commit
16d60bafbc
3 changed files with 11 additions and 11 deletions
|
@ -7,7 +7,7 @@ using FFXIVClientStructs.FFXIV.Client.System.String;
|
||||||
using FFXIVClientStructs.FFXIV.Client.UI.Agent;
|
using FFXIVClientStructs.FFXIV.Client.UI.Agent;
|
||||||
using FFXIVClientStructs.FFXIV.Client.UI.Misc;
|
using FFXIVClientStructs.FFXIV.Client.UI.Misc;
|
||||||
using Lumina.Data.Files;
|
using Lumina.Data.Files;
|
||||||
using Lumina.Excel.GeneratedSheets;
|
using Lumina.Excel.Sheets;
|
||||||
using SharpDX;
|
using SharpDX;
|
||||||
using SharpDX.Direct3D11;
|
using SharpDX.Direct3D11;
|
||||||
using SharpDX.DXGI;
|
using SharpDX.DXGI;
|
||||||
|
@ -135,9 +135,9 @@ public class AdventurerPlateStep : IStep
|
||||||
.ToBase64String(PngFormat.Instance);
|
.ToBase64String(PngFormat.Instance);
|
||||||
}
|
}
|
||||||
|
|
||||||
Plugin.package.plate_title = Title?.Feminine; // TODO: Support mascs
|
Plugin.package.plate_title = Title?.Feminine.ToString(); // TODO: Support mascs
|
||||||
Plugin.package.plate_title_is_prefix = Title?.IsPrefix;
|
Plugin.package.plate_title_is_prefix = Title?.IsPrefix;
|
||||||
Plugin.package.plate_class_job = ClassJob?.Name;
|
Plugin.package.plate_class_job = ClassJob?.Name.ToString();
|
||||||
Plugin.package.plate_class_job_level = AgentCharaCard.Instance()->Data->Level;
|
Plugin.package.plate_class_job_level = AgentCharaCard.Instance()->Data->Level;
|
||||||
Plugin.package.search_comment = AgentCharaCard.Instance()->Data->SearchComment.ToString();
|
Plugin.package.search_comment = AgentCharaCard.Instance()->Data->SearchComment.ToString();
|
||||||
Completed?.Invoke();
|
Completed?.Invoke();
|
||||||
|
@ -223,24 +223,24 @@ public class AdventurerPlateStep : IStep
|
||||||
public string ResolveCardBase(uint rowIndex)
|
public string ResolveCardBase(uint rowIndex)
|
||||||
{
|
{
|
||||||
var row = Plugin.DataManager.GetExcelSheet<CharaCardBase>()?.GetRow(rowIndex);
|
var row = Plugin.DataManager.GetExcelSheet<CharaCardBase>()?.GetRow(rowIndex);
|
||||||
return $"ui/icon/{row.Image.ToString().Substring(0, 3)}000/{row.Image}_hr1.tex";
|
return $"ui/icon/{row?.Image.ToString().Substring(0, 3)}000/{row?.Image}_hr1.tex";
|
||||||
}
|
}
|
||||||
|
|
||||||
public string? ResolveCardDecoration(uint rowIndex)
|
public string? ResolveCardDecoration(uint rowIndex)
|
||||||
{
|
{
|
||||||
var row = Plugin.DataManager.GetExcelSheet<CharaCardDecoration>()?.GetRow(rowIndex);
|
var row = Plugin.DataManager.GetExcelSheet<CharaCardDecoration>()?.GetRow(rowIndex);
|
||||||
return $"ui/icon/{row.Image.ToString().Substring(0, 3)}000/{row.Image}_hr1.tex";
|
return $"ui/icon/{row?.Image.ToString().Substring(0, 3)}000/{row?.Image}_hr1.tex";
|
||||||
}
|
}
|
||||||
|
|
||||||
public string? ResolveCardHeaderTop(uint rowIndex)
|
public string? ResolveCardHeaderTop(uint rowIndex)
|
||||||
{
|
{
|
||||||
var row = Plugin.DataManager.GetExcelSheet<CharaCardHeader>()?.GetRow(rowIndex);
|
var row = Plugin.DataManager.GetExcelSheet<CharaCardHeader>()?.GetRow(rowIndex);
|
||||||
return $"ui/icon/{row.TopImage.ToString().Substring(0, 3)}000/{row.TopImage}_hr1.tex";
|
return $"ui/icon/{row?.TopImage.ToString().Substring(0, 3)}000/{row?.TopImage}_hr1.tex";
|
||||||
}
|
}
|
||||||
|
|
||||||
public string? ResolveCardHeaderBottom(uint rowIndex)
|
public string? ResolveCardHeaderBottom(uint rowIndex)
|
||||||
{
|
{
|
||||||
var row = Plugin.DataManager.GetExcelSheet<CharaCardHeader>()?.GetRow(rowIndex);
|
var row = Plugin.DataManager.GetExcelSheet<CharaCardHeader>()?.GetRow(rowIndex);
|
||||||
return $"ui/icon/{row.BottomImage.ToString().Substring(0, 3)}000/{row.BottomImage}_hr1.tex";
|
return $"ui/icon/{row?.BottomImage.ToString().Substring(0, 3)}000/{row?.BottomImage}_hr1.tex";
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -3,7 +3,7 @@
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<DalamudLibPath Condition="$([MSBuild]::IsOSPlatform('Windows'))">$(appdata)\XIVLauncher\addon\Hooks\dev\</DalamudLibPath>
|
<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)/.xlcore/dalamud/Hooks/dev/</DalamudLibPath>
|
||||||
<DalamudLibPath Condition="$([MSBuild]::IsOSPlatform('Linux'))">$(HOME)/.local/share/astra/dalamud/local/</DalamudLibPath>
|
<DalamudLibPath Condition="$([MSBuild]::IsOSPlatform('Linux'))">$(HOME)/.local/share/astra/dalamud/staging/</DalamudLibPath>
|
||||||
<DalamudLibPath Condition="$([MSBuild]::IsOSPlatform('OSX'))">$(HOME)/Library/Application Support/XIV on Mac/dalamud/Hooks/dev/</DalamudLibPath>
|
<DalamudLibPath Condition="$([MSBuild]::IsOSPlatform('OSX'))">$(HOME)/Library/Application Support/XIV on Mac/dalamud/Hooks/dev/</DalamudLibPath>
|
||||||
<DalamudLibPath Condition="$(DALAMUD_HOME) != ''">$(DALAMUD_HOME)/</DalamudLibPath>
|
<DalamudLibPath Condition="$(DALAMUD_HOME) != ''">$(DALAMUD_HOME)/</DalamudLibPath>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
|
@ -4,9 +4,9 @@
|
||||||
"net8.0-windows7.0": {
|
"net8.0-windows7.0": {
|
||||||
"DalamudPackager": {
|
"DalamudPackager": {
|
||||||
"type": "Direct",
|
"type": "Direct",
|
||||||
"requested": "[2.1.13, )",
|
"requested": "[11.0.0, )",
|
||||||
"resolved": "2.1.13",
|
"resolved": "11.0.0",
|
||||||
"contentHash": "rMN1omGe8536f4xLMvx9NwfvpAc9YFFfeXJ1t4P4PE6Gu8WCIoFliR1sh07hM+bfODmesk/dvMbji7vNI+B/pQ=="
|
"contentHash": "bjT7XUlhIJSmsE/O76b7weUX+evvGQctbQB8aKXt94o+oPWxHpCepxAGMs7Thow3AzCyqWs7cOpp9/2wcgRRQA=="
|
||||||
},
|
},
|
||||||
"EmbedIO": {
|
"EmbedIO": {
|
||||||
"type": "Direct",
|
"type": "Direct",
|
||||||
|
|
Loading…
Add table
Reference in a new issue