mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-15 05:04:15 +01:00
Merge pull request #1055 from MidoriKami/net7
Use GameGui.GetAddonByName default parameter
This commit is contained in:
commit
684143c65b
1 changed files with 1 additions and 1 deletions
|
|
@ -323,7 +323,7 @@ public sealed unsafe class GameGui : IDisposable, IServiceType
|
|||
/// <param name="name">Name of addon to find.</param>
|
||||
/// <param name="index">Index of addon to find (1-indexed).</param>
|
||||
/// <returns>IntPtr.Zero if unable to find UI, otherwise IntPtr pointing to the start of the addon.</returns>
|
||||
public unsafe IntPtr GetAddonByName(string name, int index)
|
||||
public unsafe IntPtr GetAddonByName(string name, int index = 1)
|
||||
{
|
||||
var atkStage = FFXIVClientStructs.FFXIV.Component.GUI.AtkStage.GetSingleton();
|
||||
if (atkStage == null)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue