Ingame GUI improvement#1342
Conversation
…e viewport updates, and modern slate/blue styling
…rubbing for numerical settings
…aesthetics and auto-scaling layout
|
Please forgive my limited understanding. |
|
i think that is different problem, winforms tied to system windowing, this one is for in game gui. my plan is if this completed, we may add a new xml file or maybe extend train.xml file to have all options like door toggle, pantograph and other maybe pluginstates functions can be triggered by this ingame GUI. Let say your shinkansen train has feature to open and close the coupler cover, we can make it as GUI toggle to trigger it than binding to a keyboard. |
|
Very neat :) I'll try and test on the Mac next week. If it's going to fall over, it'll do it there- the Retina scaling is a total Apple mess... |
|
Haven't looked into this at the minute, but at least the viewing distance is buggy. Start with a viewing distance of 4000. Background glitches out. (you can actually see a grey square marching in as you drop it downwards) On the plus side, it handled changing the Windows display scaling without a hitch! |
Yeah still long way to go until it stable... Idk if I can complete this PR, with a lot of recent stuff happens in real life, maybe this going to be another cliffhanger PR. Off topic, about MacOS do you think we can do non parity feature between each OS? I mean Mac has limit of opengl 4.1 but windows and Linux are not limited. As example I was developing volumetric clouds and atmospheric sky feature for my own test, if I limit it to ogl 4.1 the best we can do is using fragment shader, but with how the technique used a lot raymarching and samplings using fragment shader always make it bottleneck and not efficient (essentially we do heavy calculation for every pixel every frame) and it's scale up exponentially if we use large screen resolution. So the way I try is make a ogl version check, if the device support ogl 4.3+ it will use compute shader if not, just fallback to 4.1 and use fragment shader, but the performance gap using compute shader if very very noticeable... Stable 60fps and didn't lag on window resize, with fragment shader it's always sub 20fps and always have 3 second of window not responding when resized. |
|
Not sure what to do about GL version levels TBQH. I'd prefer to keep as one code path to make things simpler, but Apple are a mess. I suppose we could do a GL4.1 code path and a later path, but dunno... Really need to get to removing the GL1.2 renderer. I've just pushed a build, and when this goes to the main site, I may publish the GL1.2 removal notice at the same time, so the 'next' public build after that would then withdraw GL1.2 |
- Tweak a bit of AbstractMenu for better menu layout handling - Adjust Label primitives for improved text alignment - Add menu wiring in ObjectViewer Game/Menu and GameWindow - Update RouteViewer menu, ProgramR, and GameWindow
WIP.
not all tested, I mostly test with route viewer first.
i hope we could retire the F8 options window if all completed
Preview:
Screen.Recording.2026-06-27.092419.mp4
@leezer3 what do you think?