17
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-10-17 02:49:19 +02:00

feat: structure gauge window in the menu bar, gauge tunnel around the hit, fixed reach

This commit is contained in:
maj00r
2026-10-04 01:54:17 +02:00
parent 208ad3400d
commit d57215877f
6 changed files with 124 additions and 63 deletions

View File

@@ -143,6 +143,12 @@ void editor_ui::render_menu_contents()
ImGui::MenuItem(STR_C("Include database"), nullptr, &m_includespanel.is_open);
ImGui::EndMenu();
}
if (m_gaugewindow != nullptr)
{
ImGui::MenuItem(STR_C("Structure gauge"), nullptr, m_gaugewindow);
if (ImGui::IsItemHovered())
ImGui::SetTooltip("%s", STR_C("Checks which models enter the structure gauge of the tracks (skrajnia budowli)"));
}
}
void editor_ui::set_file_actions(std::function<void()> Save, std::function<void()> Export)