docs: add missing docs

This commit is contained in:
Anna Clemens 2021-04-06 05:23:42 -04:00
parent ab3b35dfc1
commit 94d27b2428
No known key found for this signature in database
GPG key ID: 0B391D8F06FCD9E0
2 changed files with 12 additions and 0 deletions

View file

@ -418,6 +418,10 @@ namespace Dalamud.Game.Internal.Gui {
return this.toggleUiHideHook.Original(thisPtr, unknownByte);
}
/// <summary>
/// Gets a pointer to the game's UI module.
/// </summary>
/// <returns>IntPtr pointing to UI module</returns>
public IntPtr GetUIModule()
{
return this.getUiModule(Marshal.ReadIntPtr(Address.GetUIModulePtr));

View file

@ -25,11 +25,19 @@ namespace Dalamud.Game.Internal.Gui
this.showToast = Marshal.GetDelegateForFunctionPointer<ShowToastDelegate>(Address.ShowToast);
}
/// <summary>
/// Show a toast message with the given content.
/// </summary>
/// <param name="message">The message to be shown</param>
public void Show(string message)
{
this.Show(Encoding.UTF8.GetBytes(message));
}
/// <summary>
/// Show a toast message with the given content.
/// </summary>
/// <param name="message">The message to be shown</param>
public void Show(SeString message)
{
this.Show(message.Encode());