mirror of
https://github.com/goatcorp/Dalamud.git
synced 2026-02-22 07:47:45 +01:00
feat: add Data window
This commit is contained in:
parent
1ac738cd25
commit
a3f59a6d9f
2 changed files with 96 additions and 0 deletions
|
|
@ -158,10 +158,12 @@ namespace Dalamud {
|
|||
#endif
|
||||
|
||||
private bool isImguiDrawLogWindow = false;
|
||||
private bool isImguiDrawDataWindow = false;
|
||||
|
||||
private bool neverDrawWelcome = false;
|
||||
|
||||
private DalamudLogWindow logWindow;
|
||||
private DalamudDataWindow dataWindow;
|
||||
|
||||
private void BuildDalamudUi()
|
||||
{
|
||||
|
|
@ -172,11 +174,17 @@ namespace Dalamud {
|
|||
if (ImGui.BeginMenu("Dalamud"))
|
||||
{
|
||||
ImGui.MenuItem("Draw Dalamud dev menu", "", ref this.isImguiDrawDevMenu);
|
||||
ImGui.Separator();
|
||||
if (ImGui.MenuItem("Open Log window"))
|
||||
{
|
||||
this.logWindow = new DalamudLogWindow();
|
||||
this.isImguiDrawLogWindow = true;
|
||||
}
|
||||
if (ImGui.MenuItem("Open Data window"))
|
||||
{
|
||||
this.dataWindow = new DalamudDataWindow(this.Data);
|
||||
this.isImguiDrawDataWindow = true;
|
||||
}
|
||||
ImGui.MenuItem("Draw ImGui demo", "", ref this.isImguiDrawDemoWindow);
|
||||
ImGui.Separator();
|
||||
if (ImGui.MenuItem("Unload Dalamud"))
|
||||
|
|
@ -214,6 +222,11 @@ namespace Dalamud {
|
|||
}
|
||||
}
|
||||
|
||||
if (this.isImguiDrawDataWindow)
|
||||
{
|
||||
this.isImguiDrawDataWindow = this.dataWindow != null && this.dataWindow.Draw();
|
||||
}
|
||||
|
||||
if (this.isImguiDrawDemoWindow)
|
||||
ImGui.ShowDemoWindow();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue