mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-10-28 12:17:29 +01:00
fix(roads): an axle getting on a crossroads takes the way the other axle took, one starting where it gets on
This commit is contained in:
@@ -36,6 +36,7 @@ editor_ui::editor_ui()
|
||||
add_external_panel(&m_nodebankpanel);
|
||||
add_external_panel(&m_layerspanel);
|
||||
add_external_panel(&m_includespanel);
|
||||
add_external_panel(&m_memcellspanel);
|
||||
|
||||
// the menu is a part of the layout of the editor, not a pop-up as in the driver mode
|
||||
m_menu_always = true;
|
||||
@@ -985,6 +986,14 @@ void editor_ui::render_menu_contents()
|
||||
|
||||
ui_layer::render_menu_contents();
|
||||
|
||||
if (ImGui::BeginMenu(STR_C("Debug")))
|
||||
{
|
||||
ImGui::MenuItem(STR_C("Memory cells"), nullptr, &m_memcellspanel.is_open);
|
||||
if (ImGui::IsItemHovered())
|
||||
ImGui::SetTooltip("%s", STR_C("Looks up the memory cells of the scenery, shows what's in them and sets it by hand"));
|
||||
ImGui::EndMenu();
|
||||
}
|
||||
|
||||
if (m_menuoptions)
|
||||
m_menuoptions();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user