Added full "Dear ImGui" prefix to the title of "Dear ImGui Demo" and "Dear ImGui Metrics" windows. Shortened amount of nodes in columns>tree demo.

This commit is contained in:
omar
2019-05-27 17:28:18 +02:00
parent 9c35344175
commit 2d68e892a8
3 changed files with 7 additions and 6 deletions

View File

@ -246,7 +246,7 @@ void ImGui::ShowDemoWindow(bool* p_open)
ImGui::SetNextWindowSize(ImVec2(550, 680), ImGuiCond_FirstUseEver);
// Main body of the Demo window starts here.
if (!ImGui::Begin("ImGui Demo", p_open, window_flags))
if (!ImGui::Begin("Dear ImGui Demo", p_open, window_flags))
{
// Early out if the window is collapsed, as an optimization.
ImGui::End();
@ -2572,7 +2572,7 @@ static void ShowDemoWindowColumns()
ImGui::NextColumn();
if (open1)
{
for (int y = 0; y < 5; y++)
for (int y = 0; y < 3; y++)
{
bool open2 = ImGui::TreeNode((void*)(intptr_t)y, "Node%d.%d", x, y);
ImGui::NextColumn();