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

feat(editor): View menu with the top view, the lanes of the roads, the structure gauge and a window of the weather and time (time of day, day of the year, visibility, clouds, air temperature, seen in the editor only); the orthophoto settings in a window of their own again; the tracks and roads menus left out, their tools being in the row of the field of work; End drops the models onto the same ground the insert puts them on, the terrain tile models and the terrain patches of the editor included; the loading screen kept in the main window; Polish translation

This commit is contained in:
2026-10-09 11:46:42 +02:00
parent 96c07c63f1
commit f2e73812d9
7 changed files with 159 additions and 152 deletions

View File

@@ -216,24 +216,6 @@ glm::dvec3 path_direction(segment_data const &Path, double const T)
}
void editor_mode::render_road_menu()
{
if (ImGui::BeginMenu("Roads"))
{
if (ImGui::MenuItem("Road editor", "F4", &m_roadtool.window) && m_roadtool.window)
{
m_track_window_open = false;
terrain_workspace(false);
}
if (ImGui::IsItemHovered())
ImGui::SetTooltip("%s", "The roads as the field of work: their tools in the toolbar, their settings in the tool options");
ImGui::MenuItem("Show lanes", nullptr, &m_roadtool.lanes);
if (ImGui::IsItemHovered())
ImGui::SetTooltip("%s", "Draws the lanes of the roads with the ways the vehicles take through the junctions");
ImGui::EndMenu();
}
}
void editor_mode::update_road_tool()
{
auto &tool{m_roadtool};