mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-31 21:03:43 +01:00
feat: add toast debug
This commit is contained in:
parent
a6205d8418
commit
e50474e408
1 changed files with 10 additions and 0 deletions
|
|
@ -47,6 +47,8 @@ namespace Dalamud.Interface
|
|||
|
||||
private UIDebug addonInspector = null;
|
||||
|
||||
private string inputTextToast = string.Empty;
|
||||
|
||||
private uint copyButtonIndex = 0;
|
||||
|
||||
/// <summary>
|
||||
|
|
@ -269,6 +271,14 @@ namespace Dalamud.Interface
|
|||
case 12:
|
||||
this.DrawTargetDebug();
|
||||
break;
|
||||
|
||||
// Toast
|
||||
case 13:
|
||||
ImGui.InputText("Toast text", ref this.inputTextToast, 200);
|
||||
|
||||
if (ImGui.Button("Show toast"))
|
||||
this.dalamud.Framework.Gui.Toast.Show(this.inputTextToast);
|
||||
break;
|
||||
}
|
||||
}
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue