mirror of
https://github.com/goatcorp/Dalamud.git
synced 2026-02-19 06:17:43 +01:00
[Api13] Add native wrapper structs (#2330)
This commit is contained in:
parent
b425ee0a2a
commit
57c6089fc1
23 changed files with 682 additions and 149 deletions
|
|
@ -330,7 +330,7 @@ internal sealed unsafe class DtrBar : IInternalDisposableService, IDtrBar
|
|||
this.entriesReadOnlyCopy = null;
|
||||
}
|
||||
|
||||
private AtkUnitBase* GetDtr() => (AtkUnitBase*)this.gameGui.GetAddonByName("_DTR").ToPointer();
|
||||
private AtkUnitBase* GetDtr() => this.gameGui.GetAddonByName("_DTR").Struct;
|
||||
|
||||
private void Update(IFramework unused)
|
||||
{
|
||||
|
|
@ -427,7 +427,7 @@ internal sealed unsafe class DtrBar : IInternalDisposableService, IDtrBar
|
|||
|
||||
private void FixCollision(AddonEvent eventType, AddonArgs addonInfo)
|
||||
{
|
||||
var addon = (AtkUnitBase*)addonInfo.Addon;
|
||||
var addon = addonInfo.Addon.Struct;
|
||||
if (addon->RootNode is null || addon->UldManager.NodeList is null) return;
|
||||
|
||||
float minX = addon->RootNode->Width;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue