inform about the controls
This commit is contained in:
parent
b015127ea8
commit
4de6bd50a2
@ -148,6 +148,7 @@ void View::Command_Draw()
|
|||||||
Settings& settings = m_model->m_settings;
|
Settings& settings = m_model->m_settings;
|
||||||
TestSettings& testSettings = m_model->m_testSettings;
|
TestSettings& testSettings = m_model->m_testSettings;
|
||||||
|
|
||||||
|
bool openControls = false;
|
||||||
bool openAbout = false;
|
bool openAbout = false;
|
||||||
if (ImGui::BeginMainMenuBar())
|
if (ImGui::BeginMainMenuBar())
|
||||||
{
|
{
|
||||||
@ -204,6 +205,11 @@ void View::Command_Draw()
|
|||||||
|
|
||||||
if (ImGui::BeginMenu("Help"))
|
if (ImGui::BeginMenu("Help"))
|
||||||
{
|
{
|
||||||
|
if (ImGui::MenuItem("Controls"))
|
||||||
|
{
|
||||||
|
openControls = true;
|
||||||
|
}
|
||||||
|
|
||||||
if (ImGui::MenuItem("About"))
|
if (ImGui::MenuItem("About"))
|
||||||
{
|
{
|
||||||
openAbout = true;
|
openAbout = true;
|
||||||
@ -215,6 +221,11 @@ void View::Command_Draw()
|
|||||||
ImGui::EndMainMenuBar();
|
ImGui::EndMainMenuBar();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (openControls)
|
||||||
|
{
|
||||||
|
ImGui::OpenPopup("Controls");
|
||||||
|
}
|
||||||
|
|
||||||
if (openAbout)
|
if (openAbout)
|
||||||
{
|
{
|
||||||
ImGui::OpenPopup("About Bounce Testbed");
|
ImGui::OpenPopup("About Bounce Testbed");
|
||||||
@ -222,6 +233,20 @@ void View::Command_Draw()
|
|||||||
|
|
||||||
ImVec2 buttonSize(-1.0f, 0.0f);
|
ImVec2 buttonSize(-1.0f, 0.0f);
|
||||||
|
|
||||||
|
if (ImGui::BeginPopupModal("Controls", NULL, ImGuiWindowFlags_Popup | ImGuiWindowFlags_NoResize))
|
||||||
|
{
|
||||||
|
ImGui::Text("Rotate the scene using LSHIFT + LMB");
|
||||||
|
ImGui::Text("Translate the scene using LSHIFT + RMB");
|
||||||
|
ImGui::Text("Zoom in / out the scene using LSHIFT + Mouse Wheel");
|
||||||
|
|
||||||
|
if (ImGui::Button("OK", buttonSize))
|
||||||
|
{
|
||||||
|
ImGui::CloseCurrentPopup();
|
||||||
|
}
|
||||||
|
|
||||||
|
ImGui::EndPopup();
|
||||||
|
}
|
||||||
|
|
||||||
if (ImGui::BeginPopupModal("About Bounce Testbed", NULL, ImGuiWindowFlags_Popup | ImGuiWindowFlags_NoResize))
|
if (ImGui::BeginPopupModal("About Bounce Testbed", NULL, ImGuiWindowFlags_Popup | ImGuiWindowFlags_NoResize))
|
||||||
{
|
{
|
||||||
extern b3Version b3_version;
|
extern b3Version b3_version;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user