mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-10-17 02:49:19 +02:00
Merge branch 'feat/modern-editor' of https://github.com/MaSzyna-EU07/maszyna into feat/modern-editor
This commit is contained in:
@@ -114,6 +114,10 @@ void editor_ui::render_menu_contents()
|
||||
{
|
||||
if (ImGui::BeginMenu(STR_C("File")))
|
||||
{
|
||||
if (ImGui::MenuItem(STR_C("New scenery...")) && m_newscenery)
|
||||
m_newscenery();
|
||||
if (ImGui::IsItemHovered())
|
||||
ImGui::SetTooltip("%s", STR_C("The editor starts again with the wizard of a new scenery: its name and its centre on the map"));
|
||||
// changes go to the scenery files only if the scenery was loaded with its sources tracked
|
||||
auto const editsession{false == scene::Layers.empty()};
|
||||
if (ImGui::MenuItem(STR_C("Save"), "Ctrl+S", false, editsession) && m_save)
|
||||
|
||||
Reference in New Issue
Block a user