Skip to content

Commit a701307

Browse files
committed
Update pictomancy submodule
1 parent 3cb329c commit a701307

File tree

5 files changed

+16
-11
lines changed

5 files changed

+16
-11
lines changed

ffxiv_pictomancy/Pictomancy/DXDraw/AddonClipper.cs

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,12 @@ public unsafe void ClipWindows()
136136
try
137137
{
138138
AtkUnitBase* addon = *(AtkUnitBase**)Unsafe.AsPointer(ref loadedUnitsList->Entries[i]);
139-
if (addon == null || !addon->IsVisible || addon->WindowNode == null || addon->Scale == 0)
139+
if (addon == null
140+
|| !addon->IsVisible
141+
|| addon->WindowNode == null
142+
|| addon->Scale == 0
143+
|| addon->RootNode == null
144+
|| !addon->RootNode->IsVisible())
140145
{
141146
continue;
142147
}
@@ -577,10 +582,11 @@ private unsafe void ClipBrd()
577582
ClipAtkNodeDiamond(addon->UldManager.NodeList[13], scale: _diamondScale);
578583
ClipAtkNodeDiamond(addon->UldManager.NodeList[14], scale: _diamondScale);
579584
ClipAtkNodeCircle(addon->UldManager.NodeList[5], scale: _gaugeTextScale);
585+
ClipAtkNodeRectangle(addon->UldManager.NodeList[16]->GetAsAtkComponentNode()->Component->UldManager.NodeList[0], scale: _resourceBarScale);
586+
ClipAtkNodeCircle(addon->UldManager.NodeList[17], scale: _gaugeTextScale);
580587
}
581588
private unsafe void ClipMch()
582589
{
583-
584590
var addon = GetVisibleAddonOrNull("JobHudMCH0", 10);
585591
if (addon == null) return;
586592
ClipAtkNodeRectangle(addon->UldManager.NodeList[3]->GetAsAtkComponentNode()->Component->UldManager.NodeList[0], scale: _resourceBarScale);

ffxiv_pictomancy/Pictomancy/PctDrawHints.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
namespace Pictomancy;
1+
namespace Pictomancy;
22

33
///
44
/// <summary>
@@ -20,6 +20,7 @@ public record struct PctDrawHints(
2020
AlphaBlendMode alphaBlendMode = AlphaBlendMode.Add,
2121
bool clipNativeUI = true)
2222
{
23+
// Surely there's a better way to do this?
2324
public PctDrawHints() : this(false, false, true, 255, AlphaBlendMode.Add, true) { }
2425

2526
public bool DrawInCutscene => drawInCutscene;

ffxiv_pictomancy/Pictomancy/PctDrawList.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,10 @@ public PctTexture DrawToTexture()
4141

4242
public void Dispose()
4343
{
44-
//PictoService.Log.Error("[Pictomancy] Dispose " + PictoService.Hints.AutoDraw);
4544
if (PictoService.DrawList == this) PictoService.DrawList = null;
4645
if (!PictoService.Hints.AutoDraw) return;
4746

48-
//PictoService.Log.Error("[Pictomancy] Disposing");
4947
PctTexture texture = DrawToTexture();
50-
//PictoService.Log.Error("[Pictomancy] Texture " + texture.textureId);
5148
_drawList.AddImage(
5249
texture.TextureId,
5350
ImGuiHelpers.MainViewport.Pos,

ffxiv_pictomancy/Pictomancy/PictoService.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
using Dalamud.Game;
2-
using Dalamud.Game.ClientState.Conditions;
1+
using Dalamud.Game.ClientState.Conditions;
32
using Dalamud.IoC;
43
using Dalamud.Plugin;
54
using Dalamud.Plugin.Services;
@@ -15,9 +14,7 @@ public class PictoService
1514
[PluginService] public static IDalamudPluginInterface PluginInterface { get; private set; }
1615
[PluginService] public static IGameGui GameGui { get; private set; }
1716
[PluginService] public static ICondition Condition { get; private set; }
18-
[PluginService] public static ISigScanner SigScanner { get; private set; }
1917
[PluginService] public static IPluginLog Log { get; private set; }
20-
[PluginService] public static IAddonLifecycle AddonLifecycle { get; private set; }
2118

2219
private static DXRenderer _renderer;
2320
private static AddonClipper _addonClipper;

ffxiv_pictomancy/Pictomancy/Pictomancy.csproj

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,18 @@
99
<PropertyGroup>
1010
<TargetFramework>net8.0-windows</TargetFramework>
1111
<ImplicitUsings>enable</ImplicitUsings>
12+
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
1213
<Nullable>enable</Nullable>
1314
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
1415
<GenerateTargetFrameworkAttribute>false</GenerateTargetFrameworkAttribute>
1516
</PropertyGroup>
1617

1718
<PropertyGroup>
1819
<DalamudLibPath>$(appdata)\XIVLauncher\addon\Hooks\dev\</DalamudLibPath>
19-
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
20+
</PropertyGroup>
21+
22+
<PropertyGroup Condition="'$([System.Runtime.InteropServices.RuntimeInformation]::IsOSPlatform($([System.Runtime.InteropServices.OSPlatform]::Linux)))'">
23+
<DalamudLibPath>$(DALAMUD_HOME)/</DalamudLibPath>
2024
</PropertyGroup>
2125

2226
<ItemGroup>

0 commit comments

Comments
 (0)