This commit is contained in:
Branimir Karadžić 2017-06-26 22:21:20 -07:00
parent b12ce15a82
commit 6e08b6a42a
4 changed files with 23 additions and 6 deletions

View File

@ -307,7 +307,10 @@ public:
bool restart = showExampleDialog(this);
ImGui::SetNextWindowPos(ImVec2(m_width - m_width / 5.0f - 10.0f, 10.0f) );
ImGui::SetNextWindowPos(
ImVec2(m_width - m_width / 5.0f - 10.0f, 10.0f)
, ImGuiSetCond_FirstUseEver
);
ImGui::Begin("HDR Settings"
, NULL
, ImVec2(m_width / 5.0f, m_height / 2.0f)

View File

@ -590,10 +590,13 @@ public:
bool restart = showExampleDialog(this);
ImGui::SetNextWindowPos(ImVec2(m_width - 320.0f - 10.0f, 10.0f) );
ImGui::SetNextWindowPos(
ImVec2(m_width - m_width / 5.0f - 10.0f, 10.0f)
, ImGuiSetCond_FirstUseEver
);
ImGui::Begin("Settings"
, NULL
, ImVec2(320.0f, 700.0f)
, ImVec2(m_width / 5.0f, m_height - 20.0f)
, ImGuiWindowFlags_AlwaysAutoResize
);
ImGui::PushItemWidth(180.0f);
@ -702,10 +705,13 @@ public:
ImGui::PopItemWidth();
ImGui::End();
ImGui::SetNextWindowPos(ImVec2(10.0f, 70.0f) );
ImGui::SetNextWindowPos(
ImVec2(10.0f, 260.0f)
, ImGuiSetCond_FirstUseEver
);
ImGui::Begin("Mesh"
, NULL
, ImVec2(280.0f, 636.0f)
, ImVec2(m_width / 5.0f, 450.0f)
, ImGuiWindowFlags_AlwaysAutoResize
);

View File

@ -367,9 +367,13 @@ public:
bool restart = showExampleDialog(this);
ImGui::SetNextWindowPos(
ImVec2(m_width - m_width / 4.0f - 10.0f, 10.0f)
, ImGuiSetCond_FirstUseEver
);
ImGui::Begin("Properties"
, NULL
, ImVec2(400.0f, 600.0f)
, ImVec2(m_width / 4.0f, m_height - 20.0f)
, ImGuiWindowFlags_AlwaysAutoResize
);

View File

@ -13,6 +13,10 @@ bool showExampleDialog(entry::AppI* _app)
char temp[1024];
bx::snprintf(temp, BX_COUNTOF(temp), "Example: %s", _app->getName() );
ImGui::SetNextWindowPos(
ImVec2(10.0f, 50.0f)
, ImGuiSetCond_FirstUseEver
);
ImGui::Begin(temp
, NULL
, ImVec2(256.0f, 200.0f)