mirror of
https://github.com/goatcorp/Dalamud.git
synced 2026-01-03 14:23:40 +01:00
[API 13] Add Lumina.Excel as submodule (#2332)
* WIP on excel-submodule * Add Lumina.Excel to build * Fix sheet changes
This commit is contained in:
parent
ff36f08d0c
commit
d6aa6b8b64
8 changed files with 28 additions and 9 deletions
|
|
@ -68,7 +68,6 @@
|
|||
<PackageReference Include="goatcorp.Reloaded.Assembler" Version="1.0.14-goatcorp3" />
|
||||
<PackageReference Include="JetBrains.Annotations" Version="2024.2.0" />
|
||||
<PackageReference Include="Lumina" Version="$(LuminaVersion)" />
|
||||
<PackageReference Include="Lumina.Excel" Version="$(LuminaExcelVersion)" />
|
||||
<PackageReference Include="Microsoft.Extensions.ObjectPool" Version="9.0.0-preview.1.24081.5" />
|
||||
<PackageReference Include="Microsoft.Windows.CsWin32" Version="0.3.183">
|
||||
<PrivateAssets>all</PrivateAssets>
|
||||
|
|
@ -109,6 +108,7 @@
|
|||
<ProjectReference Include="..\imgui\ImGuiScene\ImGuiScene.csproj" />
|
||||
<ProjectReference Include="..\lib\FFXIVClientStructs\FFXIVClientStructs\FFXIVClientStructs.csproj" />
|
||||
<ProjectReference Include="..\lib\FFXIVClientStructs\InteropGenerator.Runtime\InteropGenerator.Runtime.csproj" />
|
||||
<ProjectReference Include="..\lib\Lumina.Excel\src\Lumina.Excel\Lumina.Excel.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
|
|
|||
|
|
@ -221,8 +221,8 @@ internal class SheetRedirectResolver : IServiceType
|
|||
sheetName = nameof(LSheets.AkatsukiNoteString);
|
||||
colIndex = 0;
|
||||
|
||||
if (this.dataManager.Excel.GetSubrowSheet<LSheets.AkatsukiNote>().TryGetRow(rowId, out var row))
|
||||
rowId = (uint)row[0].Unknown2;
|
||||
if (this.dataManager.Excel.GetSubrowSheet<LSheets.AkatsukiNote>().TryGetSubrow(rowId, 0, out var row))
|
||||
rowId = row.ListName.RowId;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1065,10 +1065,10 @@ internal class SeStringCreatorWidget : IDataWindowWidget
|
|||
break;
|
||||
|
||||
case LinkMacroPayloadType.AkatsukiNote when
|
||||
dataManager.GetSubrowExcelSheet<AkatsukiNote>(this.language).TryGetRow(u32, out var akatsukiNoteRow) &&
|
||||
dataManager.GetExcelSheet<AkatsukiNoteString>(this.language).TryGetRow((uint)akatsukiNoteRow[0].Unknown2, out var akatsukiNoteStringRow):
|
||||
dataManager.GetSubrowExcelSheet<AkatsukiNote>(this.language).TryGetSubrow(u32, 0, out var akatsukiNoteRow) &&
|
||||
akatsukiNoteRow.ListName.ValueNullable is { } akatsukiNoteStringRow:
|
||||
ImGui.SameLine();
|
||||
ImGui.Text(akatsukiNoteStringRow.Unknown0.ExtractText());
|
||||
ImGui.Text(akatsukiNoteStringRow.Text.ExtractText());
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue