Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 4 additions & 8 deletions BDTHPlugin/BDTHPlugin.csproj
Original file line number Diff line number Diff line change
@@ -1,18 +1,14 @@
<Project Sdk="Dalamud.NET.Sdk/13.0.0">
<Project Sdk="Dalamud.NET.Sdk/14.0.1">
<PropertyGroup>
<Version>1.7.1</Version>
<TargetFramework>net9.0-windows</TargetFramework>
<Version>1.7.2</Version>
<TargetFramework>net10.0-windows</TargetFramework>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<LangVersion>latest</LangVersion>
<ProduceReferenceAssembly>false</ProduceReferenceAssembly>
<PreserveCompilationContext>false</PreserveCompilationContext>
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
<NoWarn>$(NoWarn);MSB3277</NoWarn>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="System.Numerics.Vectors" Version="4.6.1" />
</ItemGroup>

<ItemGroup>
<None Update="BDTHPlugin.json">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
Expand Down
4 changes: 2 additions & 2 deletions BDTHPlugin/BDTHPlugin.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
"Description": "Move around housing items with coordinates and allows you to place anywhere.",
"Punchline": "House decorating made easy!",
"InternalName": "BDTHPlugin",
"AssemblyVersion": "1.7.1",
"AssemblyVersion": "1.7.2",
"RepoUrl": "https://github.com/LeonBlade/BDTHPlugin",
"ApplicableVersion": "any",
"Tags": ["bdth", "housing", "float", "place", "glitch", "furnishing", "LeonBlade"],
"DalamudApiLevel": 13,
"DalamudApiLevel": 14,
"IconUrl": "https://github.com/LeonBlade/BDTHPlugin/raw/main/icon.png"
}
6 changes: 4 additions & 2 deletions BDTHPlugin/Interface/Windows/FurnitureList.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
using Dalamud.Interface.Windowing;

using Dalamud.Bindings.ImGui;
using Dalamud.Game.ClientState;
using Dalamud.Game.ClientState.Objects;

namespace BDTHPlugin.Interface.Windows
{
Expand Down Expand Up @@ -51,10 +53,10 @@ public unsafe override void Draw()

ImGui.BeginChild("FurnishingList");

if (Plugin.ClientState.LocalPlayer == null)
if (Plugin.ObjectTable.LocalPlayer == null)
return;

var playerPos = Plugin.ClientState.LocalPlayer.Position;
var playerPos = Plugin.ObjectTable.LocalPlayer.Position;
// An active item is being selected.
// var hasActiveItem = Memory.HousingStructure->ActiveItem != null;

Expand Down
4 changes: 4 additions & 0 deletions BDTHPlugin/Plugin.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
using Dalamud.Game;
using Dalamud.Game.ClientState.Conditions;
using Dalamud.Game.ClientState;
using Dalamud.Game.ClientState.Objects;
using Dalamud.Game.Command;
using Dalamud.IoC;
using Dalamud.Plugin;
Expand All @@ -26,6 +28,8 @@ public class Plugin : IDalamudPlugin
[PluginService] public static IDataManager Data { get; private set; } = null!;
[PluginService] public static ICommandManager CommandManager { get; private set; } = null!;
[PluginService] public static IClientState ClientState { get; private set; } = null!;
[PluginService] public static IObjectTable ObjectTable { get; private set; } = null!;
[PluginService] public static IPlayerState PlayerState { get; private set; } = null!;
[PluginService] public static IFramework Framework { get; private set; } = null!;
[PluginService] public static IChatGui Chat { get; private set; } = null!;
[PluginService] public static IGameGui GameGui { get; private set; } = null!;
Expand Down
19 changes: 19 additions & 0 deletions BDTHPlugin/packages.lock.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"version": 1,
"dependencies": {
"net10.0-windows7.0": {
"DalamudPackager": {
"type": "Direct",
"requested": "[14.0.1, )",
"resolved": "14.0.1",
"contentHash": "y0WWyUE6dhpGdolK3iKgwys05/nZaVf4ZPtIjpLhJBZvHxkkiE23zYRo7K7uqAgoK/QvK5cqF6l3VG5AbgC6KA=="
},
"DotNet.ReproducibleBuilds": {
"type": "Direct",
"requested": "[1.2.39, )",
"resolved": "1.2.39",
"contentHash": "fcFN01tDTIQqDuTwr1jUQK/geofiwjG5DycJQOnC72i1SsLAk1ELe+apBOuZ11UMQG8YKFZG1FgvjZPbqHyatg=="
}
}
}
}