mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-12 18:27:23 +01:00
Merge branch 'master' into RetainerNotify
This commit is contained in:
commit
f936462423
3 changed files with 15 additions and 30 deletions
|
|
@ -165,7 +165,7 @@ namespace Dalamud {
|
||||||
});
|
});
|
||||||
|
|
||||||
CommandManager.AddHandler("/xlunmute", new CommandInfo(OnBadWordsRemove) {
|
CommandManager.AddHandler("/xlunmute", new CommandInfo(OnBadWordsRemove) {
|
||||||
HelpMessage = "Unmute a word or sentence. Usage: /fatewatchremove <word or sentence>"
|
HelpMessage = "Unmute a word or sentence. Usage: /xlunmute <word or sentence>"
|
||||||
});
|
});
|
||||||
|
|
||||||
CommandManager.AddHandler("/xldstate", new CommandInfo(OnDebugPrintGameState) {
|
CommandManager.AddHandler("/xldstate", new CommandInfo(OnDebugPrintGameState) {
|
||||||
|
|
@ -183,12 +183,12 @@ namespace Dalamud {
|
||||||
|
|
||||||
CommandManager.AddHandler("/xlbgmset", new CommandInfo(OnBgmSetCommand)
|
CommandManager.AddHandler("/xlbgmset", new CommandInfo(OnBgmSetCommand)
|
||||||
{
|
{
|
||||||
HelpMessage = "Set the Game background music. Usage: /bgmset <BGM ID>"
|
HelpMessage = "Set the Game background music. Usage: /xlbgmset <BGM ID>"
|
||||||
});
|
});
|
||||||
|
|
||||||
CommandManager.AddHandler("/xlitem", new CommandInfo(OnItemLinkCommand)
|
CommandManager.AddHandler("/xlitem", new CommandInfo(OnItemLinkCommand)
|
||||||
{
|
{
|
||||||
HelpMessage = "Link an item by name. Usage: /item <Item name>"
|
HelpMessage = "Link an item by name. Usage: /xlitem <Item name>"
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
<Project Sdk="Microsoft.NET.Sdk">
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
<PropertyGroup Label="Target">
|
<PropertyGroup Label="Target">
|
||||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||||
<TargetFramework>net48</TargetFramework>
|
<TargetFramework>net471</TargetFramework>
|
||||||
<LangVersion>8.0</LangVersion>
|
<LangVersion>8.0</LangVersion>
|
||||||
<Platforms>AnyCPU;x64</Platforms>
|
<Platforms>AnyCPU;x64</Platforms>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
@ -14,9 +14,9 @@
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup Label="Feature">
|
<PropertyGroup Label="Feature">
|
||||||
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
||||||
<AssemblyVersion>4.1.0.3</AssemblyVersion>
|
<AssemblyVersion>4.1.0.5</AssemblyVersion>
|
||||||
<Version>4.1.0.3</Version>
|
<Version>4.1.0.5</Version>
|
||||||
<FileVersion>4.1.0.3</FileVersion>
|
<FileVersion>4.1.0.5</FileVersion>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<ItemGroup Label="Resources">
|
<ItemGroup Label="Resources">
|
||||||
<None Include="$(SolutionDir)/Resources/**/*" CopyToOutputDirectory="PreserveNewest" Visible="false" />
|
<None Include="$(SolutionDir)/Resources/**/*" CopyToOutputDirectory="PreserveNewest" Visible="false" />
|
||||||
|
|
|
||||||
|
|
@ -24,6 +24,7 @@ namespace Dalamud.Game.Internal.Gui {
|
||||||
private IntPtr activeBuffArray = IntPtr.Zero;
|
private IntPtr activeBuffArray = IntPtr.Zero;
|
||||||
private IntPtr jobInfo;
|
private IntPtr jobInfo;
|
||||||
private IntPtr byteBase;
|
private IntPtr byteBase;
|
||||||
|
private IntPtr playerLevel;
|
||||||
private Dalamud dalamud;
|
private Dalamud dalamud;
|
||||||
|
|
||||||
private HashSet<uint> CustomIDs;
|
private HashSet<uint> CustomIDs;
|
||||||
|
|
@ -37,6 +38,8 @@ namespace Dalamud.Game.Internal.Gui {
|
||||||
this.byteBase = scanner.Module.BaseAddress;
|
this.byteBase = scanner.Module.BaseAddress;
|
||||||
this.comboTimer = byteBase + 0x1BB0B50;
|
this.comboTimer = byteBase + 0x1BB0B50;
|
||||||
this.lastComboMove = byteBase + 0x1BB0B54;
|
this.lastComboMove = byteBase + 0x1BB0B54;
|
||||||
|
this.playerLevel = byteBase + 0x1C28FA8 + 0x78;
|
||||||
|
|
||||||
|
|
||||||
CustomIDs = new HashSet<uint>();
|
CustomIDs = new HashSet<uint>();
|
||||||
VanillaIDs = new HashSet<uint>();
|
VanillaIDs = new HashSet<uint>();
|
||||||
|
|
@ -80,31 +83,13 @@ namespace Dalamud.Game.Internal.Gui {
|
||||||
|
|
||||||
// TODO: More jobs, level checking for everything.
|
// TODO: More jobs, level checking for everything.
|
||||||
|
|
||||||
// Check if player is loaded in by trying to get their buffs.
|
|
||||||
// If not, skip everything until we are (game will crash cause I'm lazy).
|
|
||||||
/*
|
|
||||||
if (activeBuffArray == IntPtr.Zero) {
|
|
||||||
try {
|
|
||||||
activeBuffArray = FindBuffAddress();
|
|
||||||
Log.Verbose("ActiveBuffArray address: {ActiveBuffArray}", activeBuffArray);
|
|
||||||
}
|
|
||||||
catch (Exception e) {
|
|
||||||
activeBuffArray = IntPtr.Zero;
|
|
||||||
return this.iconHook.Original(self, actionID);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
if (this.VanillaIDs.Contains(actionID)) return this.iconHook.Original(self, actionID);
|
if (this.VanillaIDs.Contains(actionID)) return this.iconHook.Original(self, actionID);
|
||||||
if (!this.CustomIDs.Contains(actionID)) return actionID;
|
if (!this.CustomIDs.Contains(actionID)) return actionID;
|
||||||
|
|
||||||
// TODO: this is currently broken
|
|
||||||
// As it stands, don't rely on localCharacter.level for anything.
|
|
||||||
//var localPlayer = this.dalamud.ClientState.LocalPlayer;
|
|
||||||
|
|
||||||
// Don't clutter the spaghetti any worse than it already is.
|
// Don't clutter the spaghetti any worse than it already is.
|
||||||
var lastMove = Marshal.ReadInt32(this.lastComboMove);
|
var lastMove = Marshal.ReadInt32(this.lastComboMove);
|
||||||
var comboTime = Marshal.ReadInt32(this.comboTimer);
|
var comboTime = Marshal.ReadInt32(this.comboTimer);
|
||||||
var level = 80;
|
var level = Marshal.ReadByte(this.playerLevel);
|
||||||
|
|
||||||
// DRAGOON
|
// DRAGOON
|
||||||
// TODO: Jump/High Jump into Mirage Dive
|
// TODO: Jump/High Jump into Mirage Dive
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue