feat: add toast debug

This commit is contained in:
goat 2021-04-06 15:47:56 +02:00
parent a6205d8418
commit e50474e408

View file

@ -47,6 +47,8 @@ namespace Dalamud.Interface
private UIDebug addonInspector = null; private UIDebug addonInspector = null;
private string inputTextToast = string.Empty;
private uint copyButtonIndex = 0; private uint copyButtonIndex = 0;
/// <summary> /// <summary>
@ -269,6 +271,14 @@ namespace Dalamud.Interface
case 12: case 12:
this.DrawTargetDebug(); this.DrawTargetDebug();
break; 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 else