18
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-12-02 21:15:20 +01:00
Commit Graph

33 Commits

Author SHA1 Message Date
lcddisplay 328149b721 Merge MaSzyna-EU07/maszyna master into feat/vat-people
master as of 9fecba82: the test mode (--test, null renderer), the AI braking
and passenger stops, the ESt3 brake, the SOD lamp, the 401Da oil pump lamp,
smoke of vehicles taken off the tracks, text displays with national
characters, the scenario picker drag and drop, the log written to the end of
the closing, unit and scenario tests, and the small fixes.

How the conflicts went:
- the OpenGL 3.3 and legacy renderers stay removed; what master changed in
  them is carried over where this branch has a counterpart: the opaque
  characters of text displays in scene_walk::Render_text(). The instancing
  range of master is covered by the instance records of this branch, the
  sizes of the sun and the moon are its own.
- test mode: the null backend picked in select_gfx_backend(), the window
  hidden, no crash gui; settings of the removed renderers left out.
- materials: the matte and tinted copies of this branch (the tint in the
  slot of the weathering), made again on a change of the season or the
  weather (update_variants), before the track blends.
- tracks: this branch's Segment, Track and TrackUneven, with master's
  replaced_shake(), uneven_underway(), rail_joints_moved(),
  switch_followers() and the editor's add_followers(); tributary and unknown
  track types stay as this branch loads them.
- the log service stops by StopLogService(), the exit paths of EU07.cpp too.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GXgG7F4L42c2F9sDSAJbT2
2026-11-08 21:17:00 +01:00
maj00r 5fa03304ef fix(ui): keep panels in the main window when resizing them at the screen edge
Pulling a panel's grip into the corner of the screen pushed it a couple of
pixels past the main window, and ImGui gave it an OS window of its own. Now
a panel only comes out when dragged with the cursor outside the main window.

A panel that stays in the main window needs its grips in reach, so a resize
stops at the edge, and a panel left past the edge or too big for the window
is moved back and shrunk to fit.

This is a new io.ConfigViewportsNoAutoDetach option in our copy of ImGui, so
it has to be carried over when ImGui gets updated. ImGui itself has no option
for this, as of 1.93.1.
2026-10-31 01:47:40 +01:00
Hirek 0e10ce4d0b Remove OpenGL ES / ANGLE render path 2026-10-15 00:53:28 +02:00
Hirek 3d3eef2e1c Remove legacy OpenGL 2.1 renderer 2026-10-15 00:06:31 +02:00
Hirek 476f3bf1b7 feat(ui): panels can be docked together and dragged out of the simulator window into windows of their own (imgui multi-viewports, ui.viewports yes by default, off where the renderer or the platform can't do it, e.g. wayland); imgui coordinates kept relative to the main window by the glfw backend, so the overlays, picking and gizmo of the editor work unchanged; overlays of the 3d view drawn on the main viewport; keys pressed in the separate windows passed on to the simulator, so the shortcuts of the editor work there too 2026-10-08 21:04:58 +02:00
Hirek 344034ec70 feat(ui): imgui 1.91.9b-docking in place of 1.73: local changes of the backends carried over (glad as the gl loader, srgb and gamma of the ui, gles glsl string), BufferingBar/Spinner kept, imgui_tables in cmake; cursor position, cursor enter and focus of the main window passed to the glfw backend, which works with events now; code adapted to the api: ImGuiListClipper::Begin, BeginListBox, ImTextureID as an integer, ImageButton with an id, ImGuiKey without GetKeyIndex, logarithmic sliders in place of the removed power argument; ImGuizmo with the math operators defined before imgui.h and SetNextFrameWantCaptureMouse 2026-10-08 20:38:13 +02:00
daniu 5a39ed5193 ImGuizmo System OpenGL 2026-06-17 01:19:59 +02:00
copilot-swe-agent[bot] 7e49aa8740 Rewrite #includes to use explicit subdirectory paths
Co-authored-by: Hirek193 <23196899+Hirek193@users.noreply.github.com>
2026-03-14 19:16:48 +00:00
WLs50 a5f6397eca merge manul 2025-03-09 15:36:11 +01:00
milek7 2376aa6fb0 missing include in imgui_widgets.cpp 2021-01-31 00:19:04 +01:00
milek7 41cda4a889 skip precompiled headers for 3rd party files (fixes imgui2-modern renderer interaction) 2021-01-31 00:05:15 +01:00
milek7 8df7388db1 we do not use separate sampler binding, do not save them in imgui3 (also fixes gl3.0 context) 2021-01-30 01:36:39 +01:00
milek7 839b2116df fixes in imgui gl2 interaction with renderers 2021-01-22 02:36:49 +01:00
milek7 1374dec99c imgui2 fix, relax GL context requirements for legacy mode 2021-01-21 20:23:53 +01:00
milek7 0aa4293a5a cleanup imgui impl include as we're using glad anyway 2021-01-21 19:57:47 +01:00
milek7 edd218e880 don't need to check for clip origin in imgui (check wasn't correct for GLES anyway) 2021-01-21 00:40:39 +01:00
milek7 f0b364bafe basic GLES working again 2021-01-20 19:29:50 +01:00
milek7 29f8f91ad8 Merge remote-tracking branch 'tmj/master' into sim 2020-10-18 23:35:14 +02:00
milek7 5c84f8b156 remove DBG_NEW new preprocessor kludges, ensure stdafx.h is included everywhere, add debug build to Azure CI 2019-08-30 23:35:58 +02:00
milek7 684ff24087 update imgui 2019-07-01 00:09:04 +02:00
milek7 89cf20a251 map improvements 2019-02-18 17:46:31 +01:00
milek7 b9fbe7452b rename, configurable gamma mode 2018-10-17 19:16:32 +02:00
milek7 2ffdb35d0f GLES fixes, update GLM, build fixes 2018-10-17 16:00:26 +02:00
milek7 d16d96f2b2 GLES support 2018-10-16 20:32:45 +02:00
milek7 fae9718b71 Merge branch 'milek-dev' into gfx-work 2018-10-12 17:34:40 +02:00
milek7 b0dc3e5269 imgui update, fix gl2 imgui 2018-10-12 17:33:34 +02:00
milek7 2357026146 Merge branch 'milek-dev' into gfx-work 2018-10-11 00:14:49 +02:00
milek7 52c8b40f88 Merge branch 'tmj-dev' into milek-dev 2018-10-10 21:37:52 +02:00
milek7 d9687a4e1f Merge branch 'tmj-dev' into milek-dev 2018-09-16 22:48:53 +02:00
milek7 8cac3d4cc9 alpha changes, mouse cursor changes, other changes 2018-07-19 15:35:05 +02:00
milek7 c94820e8b7 work, proper gui gamma, restore cab picking 2018-07-12 23:28:39 +02:00
milek7 7299fc866e tmp 2018-07-11 14:38:34 +02:00
milek7 a13fc4e500 imgui 2018-07-10 23:21:50 +02:00