17
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-11-02 05:49:13 +01:00

feat(editor): the tracks are laid to the PKP PLK norms only: the choice of the free laying is gone, its cards in the panels of the laying and of the plan, the question as the laying starts and the setting; the transition curves and the cant of the norms always, the speed of the laying with its chips, the radius below the minimum for the speed a warning. The settings keep the radii the bends of the straights will be eased with instead

This commit is contained in:
maj00r
2026-10-24 20:05:04 +02:00
parent 5ae9932ce7
commit 9855de74b4
11 changed files with 43 additions and 248 deletions

View File

@@ -657,7 +657,6 @@ bool editor_mode::init()
{
EditorSettings.load();
Global.EditorOrthoTracks = EditorSettings.top_tracks();
set_norms_free(EditorSettings.norms() == editorSettings::track_norms::free_laying);
EditorModelSets.load();
EditorTrackPresets.load();
Camera.Init({0, 15, 0}, {glm::radians(-30.0), glm::radians(180.0), 0}, nullptr);
@@ -1598,7 +1597,6 @@ bool editor_mode::update()
render_open_scenery_popup();
render_shortcuts_window();
render_first_steps();
render_norms_prompt();
render_nmt_prompt();
render_nmt_banner();
render_orthophoto_window();
@@ -1641,18 +1639,6 @@ void editor_mode::render_settings()
ImGui::Separator();
ImGui::Checkbox(STR_C("Transform gizmo (ImGuizmo)"), &m_gizmo_enabled);
ImGui::Separator();
ImGui::TextUnformatted(STR_C("Laying of new tracks"));
const char *norms[] = {STR_C("Ask as the laying starts"), STR_C("Free laying"), STR_C("To the PKP PLK norms")};
int chosen = static_cast<int>(EditorSettings.norms());
if (ImGui::Combo("##tracknorms", &chosen, norms, IM_ARRAYSIZE(norms)))
{
EditorSettings.norms(static_cast<editorSettings::track_norms>(chosen));
EditorSettings.save();
if (chosen > 0)
set_norms_free(chosen == 1);
}
ImGui::Separator();
ImGui::TextUnformatted(STR_C("Colours of the editor"));
const char *palettes[] = {STR_C("Green, as the rest of the simulator"), STR_C("Amber, of the editor")};