perf window

This commit is contained in:
milek7
2019-03-27 23:13:51 +01:00
parent aa8d66e5da
commit 803bf23715
7 changed files with 134 additions and 8 deletions

View File

@@ -33,6 +33,7 @@ driver_ui::driver_ui() {
add_external_panel( &m_timepanel );
add_external_panel( &m_mappanel );
add_external_panel( &m_logpanel );
add_external_panel( &m_perfgraphpanel );
m_logpanel.is_open = false;
m_aidpanel.title = locale::strings[ locale::string::driver_aid_header ];
@@ -61,6 +62,7 @@ void driver_ui::render_menu_contents() {
ImGui::MenuItem(m_mappanel.name().c_str(), "Tab", &m_mappanel.is_open);
ImGui::MenuItem(m_vehiclelist.name().c_str(), nullptr, &m_vehiclelist.is_open);
ImGui::MenuItem(m_trainingcardpanel.name().c_str(), nullptr, &m_trainingcardpanel.is_open);
ImGui::MenuItem(m_perfgraphpanel.name().c_str(), nullptr, &m_perfgraphpanel.is_open);
if (ImGui::MenuItem(m_timepanel.name().c_str()))
m_timepanel.open();