From 37c3f263ec4730b619eb100ef153ac34a8ee4b5e Mon Sep 17 00:00:00 2001 From: pongo1231 Date: Thu, 3 Aug 2023 14:59:44 +0000 Subject: [PATCH] Give all imgui elements ids --- ScriptViewer/Components/GlobalView.cpp | 2 +- ScriptViewer/Components/RecordView.cpp | 2 +- ScriptViewer/Components/ScriptView.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ScriptViewer/Components/GlobalView.cpp b/ScriptViewer/Components/GlobalView.cpp index be7da91..1a275b5 100644 --- a/ScriptViewer/Components/GlobalView.cpp +++ b/ScriptViewer/Components/GlobalView.cpp @@ -13,7 +13,7 @@ void GlobalView::RunImGui() if (ms_pGlobals && ms_pcwGlobals) { - ImGui::BeginListBox(""); + ImGui::BeginListBox("##globalTable"); for (WORD wGlobalIdx = 0; wGlobalIdx < *ms_pcwGlobals; wGlobalIdx++) { diff --git a/ScriptViewer/Components/RecordView.cpp b/ScriptViewer/Components/RecordView.cpp index 44a5895..808f987 100644 --- a/ScriptViewer/Components/RecordView.cpp +++ b/ScriptViewer/Components/RecordView.cpp @@ -153,7 +153,7 @@ void RecordView::RunImGui() ImGui::PushItemWidth(-1); - if (ImGui::BeginTable("", 2, + if (ImGui::BeginTable("##scriptTable", 2, ImGuiTableFlags_NoSavedSettings | ImGuiTableFlags_RowBg | ImGuiTableFlags_Resizable | ImGuiTableFlags_ScrollY | ImGuiTableFlags_SizingStretchSame)) { diff --git a/ScriptViewer/Components/ScriptView.cpp b/ScriptViewer/Components/ScriptView.cpp index e130cda..4bcb847 100644 --- a/ScriptViewer/Components/ScriptView.cpp +++ b/ScriptViewer/Components/ScriptView.cpp @@ -37,7 +37,7 @@ void ScriptView::RunImGui() ciColumns++; } - if (ImGui::BeginTable("", ciColumns, + if (ImGui::BeginTable("##scriptTable", ciColumns, ImGuiTableFlags_NoSavedSettings | ImGuiTableFlags_RowBg | ImGuiTableFlags_Resizable | ImGuiTableFlags_ScrollY | ImGuiTableFlags_SizingStretchSame, { 0, -73.f }))