3 #include "../debug_ui.h"
46 if (ImGui::TreeNode(item->
title.c_str()))
48 for (
int i = 0; i < item->
items.size(); i++)
60 if (ImGui::Button(item->
title.c_str(), ImVec2(ImGui::GetWindowContentRegionWidth(), ImGui::GetTextLineHeightWithSpacing())))
136 std::string text =
"UNSUPPORTED: " + item->
title +
" (" + global->
name +
")";
137 ImGui::TextColored(ImVec4(1, 0, 0, 1), text.c_str());
145 std::string text =
"UNDEFINED: " + item->
title +
" (" + item->
global_id +
")";
146 ImGui::TextColored(ImVec4(1, 0, 0, 1), text.c_str());
153 if (ImGui::Button(item->
title.c_str(), ImVec2(ImGui::GetWindowContentRegionWidth(), ImGui::GetTextLineHeightWithSpacing())))
162 ImGui::PushStyleColor(ImGuiCol_Text, ImVec4(1, 0, 0, 1));
164 if (ImGui::Button(item->
title.c_str(), ImVec2(ImGui::GetWindowContentRegionWidth(), ImGui::GetTextLineHeightWithSpacing())))
169 ImGui::PopStyleColor();
187 if (ImGui::Begin(menu.
title.c_str(), &
show))
189 ImGui::TextColored(ImVec4(1, 0, 0, 1),
"this debug menu is not supported, please use PgUp and use the primary debug menu");
190 ImGui::TextColored(ImVec4(1, 0, 0, 1),
"only use this if you seriously can't stand that one");
192 for (
int i = 0; i < menu.
items.size(); i++)
196 if (ImGui::CollapsingHeader(menu.
items.at(i).title.c_str()))
198 for (
int x = 0; x < menu.
items.at(i).items.size();x++)