From 94d27b24287f7559c80d522539673057f7cddc29 Mon Sep 17 00:00:00 2001 From: Anna Clemens Date: Tue, 6 Apr 2021 05:23:42 -0400 Subject: [PATCH] docs: add missing docs --- Dalamud/Game/Internal/Gui/GameGui.cs | 4 ++++ Dalamud/Game/Internal/Gui/ToastGui.cs | 8 ++++++++ 2 files changed, 12 insertions(+) diff --git a/Dalamud/Game/Internal/Gui/GameGui.cs b/Dalamud/Game/Internal/Gui/GameGui.cs index 6cbbe37f7..70ba8f8cd 100644 --- a/Dalamud/Game/Internal/Gui/GameGui.cs +++ b/Dalamud/Game/Internal/Gui/GameGui.cs @@ -418,6 +418,10 @@ namespace Dalamud.Game.Internal.Gui { return this.toggleUiHideHook.Original(thisPtr, unknownByte); } + /// + /// Gets a pointer to the game's UI module. + /// + /// IntPtr pointing to UI module public IntPtr GetUIModule() { return this.getUiModule(Marshal.ReadIntPtr(Address.GetUIModulePtr)); diff --git a/Dalamud/Game/Internal/Gui/ToastGui.cs b/Dalamud/Game/Internal/Gui/ToastGui.cs index 21c6e92a4..89b166c11 100755 --- a/Dalamud/Game/Internal/Gui/ToastGui.cs +++ b/Dalamud/Game/Internal/Gui/ToastGui.cs @@ -25,11 +25,19 @@ namespace Dalamud.Game.Internal.Gui this.showToast = Marshal.GetDelegateForFunctionPointer(Address.ShowToast); } + /// + /// Show a toast message with the given content. + /// + /// The message to be shown public void Show(string message) { this.Show(Encoding.UTF8.GetBytes(message)); } + /// + /// Show a toast message with the given content. + /// + /// The message to be shown public void Show(SeString message) { this.Show(message.Encode());