Removed use of obsolete ImGui API.

This commit is contained in:
Branimir Karadžić
2017-12-01 21:04:27 -08:00
parent 2e819904e2
commit 907f835881
26 changed files with 144 additions and 308 deletions

View File

@@ -1984,12 +1984,15 @@ public:
ImGui::SetNextWindowPos(
ImVec2(m_viewState.m_width - m_viewState.m_width / 5.0f - 10.0f, 10.0f)
, ImGuiSetCond_FirstUseEver
, ImGuiCond_FirstUseEver
);
ImGui::SetNextWindowSize(
ImVec2(m_viewState.m_width / 5.0f, m_viewState.m_height - 20.0f)
, ImGuiCond_FirstUseEver
);
ImGui::Begin("Settings"
, NULL
, ImVec2(m_viewState.m_width / 5.0f, m_viewState.m_height - 20.0f)
, ImGuiWindowFlags_AlwaysAutoResize
, 0
);
#define IMGUI_FLOAT_SLIDER(_name, _val) \
@@ -2086,12 +2089,15 @@ public:
ImGui::SetNextWindowPos(
ImVec2(10.0f, 260.0f)
, ImGuiSetCond_FirstUseEver
, ImGuiCond_FirstUseEver
);
ImGui::SetNextWindowSize(
ImVec2(m_viewState.m_width / 5.0f, 350.0f)
, ImGuiCond_FirstUseEver
);
ImGui::Begin("Light"
, NULL
, ImVec2(m_viewState.m_width / 5.0f, 350.0f)
, ImGuiWindowFlags_AlwaysAutoResize
, 0
);
ImGui::PushItemWidth(185.0f);