18
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-12-02 09:36:48 +01:00

Merge origin/staging into cleanup/mover

Staging's 7 commits since 62f7a29b. Two of them changed files this branch
split up, so their changes are carried into the new files by hand:
- #445 (the decisions of an uphill start in uphill_start::): the changes to
  TController::control_tractive_force() and control_uphill_start() of
  vehicle/Driver.cpp go into vehicle/ai/force.cpp, with the names of this
  branch (VehicleEnd::front, ->physics)
- #530 (the lowpoly driver figure follows the direction in single desk
  vehicles): the figure in ABuLittleUpdate() goes into
  vehicle/dynamic/visual.cpp; the reading of cab1model:/cab2model: and of
  driverNpos:/driverNsitpos: goes into the helpers of the internaldata:
  section in vehicle/dynamic/mmd.cpp, which pass the cab places along
  (loadInternalDataKeyword, loadInternalDataDeviceKeyword,
  loadInternalDataCabKeyword); read_driver_position() takes the tokens no
  group of keywords knows, as the last else of the chain did
vehicle/Driver.cpp and vehicle/DynObj.cpp stay deleted. The rest merged on
its own. 1185/1185 tests, golden traces exact against staging 62f7a29b.
This commit is contained in:
2026-11-29 03:58:24 +01:00
39 changed files with 1786 additions and 152 deletions
+12 -1
View File
@@ -586,7 +586,16 @@ editor_mode::editor_mode() {
ui()->set_open_scenery([this]() { m_openscenery_asked = true; });
ui()->set_memcell_focus([this](scene::basic_node *Node) { start_focus(Node); });
ui()->set_edit_menu([this]() { render_edit_menu(); });
ui()->set_tools_menu([this]() { render_track_presets_menu(); });
ui()->set_tools_menu([this]() {
render_track_presets_menu();
if (ImGui::MenuItem(STR_C("Track names outside of ASCII..."), nullptr, m_track_names_open))
{
check_track_names(false);
m_track_names_open = true;
}
if (ImGui::IsItemHovered())
ImGui::SetTooltip("%s", STR_C("The tracks whose names have Polish letters or other characters outside of ASCII, and what an ASCII name would collide with; nothing is changed"));
});
ui()->set_menu_options([this]() {
render_object_menu();
render_view_menu();
@@ -1717,6 +1726,7 @@ bool editor_mode::update()
m_gauge.update();
m_gauge.render_windows();
m_minimap.render_windows();
render_track_names_window();
// roads: trajectories of the lanes, and the tools of the road window
update_road_tool();
@@ -7611,6 +7621,7 @@ void editor_mode::enter()
if (Global.editor_session && false == m_opened_at_track)
{
m_opened_at_track = true;
check_track_names(true);
auto const saved{scene::Layers.empty() ? std::vector<std::string>{} : scene::Layers.marked(scene::layer_handle{1}, "//$c")};
if (false == saved.empty())
{