Multi-screen - offset center?

OpenTTD is a fully open-sourced reimplementation of TTD, written in C++, boasting improved gameplay and many new features.

Moderator: OpenTTD Developers

Post Reply
Quinch
Engineer
Engineer
Posts: 50
Joined: 15 Mar 2004 10:49

Multi-screen - offset center?

Post by Quinch »

Heya! I have a maybe-weird question - I have two screens, and I play OpenTTD in windowed mode, stretching the window across both screens. Obviously, when I centre on something, the object is centred right across the seam, which is... inconvenient. So, with that in mind, is it possible to move the "centre" of the window to not be in actual centre, but offset by a certain value so centres on the left display, for example?
skc
Traffic Manager
Traffic Manager
Posts: 177
Joined: 17 Sep 2022 02:02

Re: Multi-screen - offset center?

Post by skc »

The most straight-forward way would be to have the window not centred across your two screens, so that the middle of the window isn't exactly in-line with the split between your two monitors.
Quinch
Engineer
Engineer
Posts: 50
Joined: 15 Mar 2004 10:49

Re: Multi-screen - offset center?

Post by Quinch »

Yep - but I wanna make the most of both!

{you can never have too many in-game windows open!}
Eddi
Tycoon
Tycoon
Posts: 8272
Joined: 17 Jan 2007 00:14

Re: Multi-screen - offset center?

Post by Eddi »

you can try extra viewport windows (press "V")

if you feel adventurous, you could fiddle with the source code, the keyword to look for here is "main viewport"
User avatar
jfs
Tycoon
Tycoon
Posts: 1766
Joined: 08 Jan 2003 23:09
Location: Denmark

Re: Multi-screen - offset center?

Post by jfs »

This makes me wonder how much work it would be to let the game support having multiple "local clients" to the same game, so you could actually have separate views of your ongoing game on multiple monitors, possibly even with full UI and separate active tools on each. There's a lot of global state involved right now, so probably a huge amount of refactoring needed. The entire video driver interface also assumes that there is only ever one game window active, which would have to change too.
Quinch
Engineer
Engineer
Posts: 50
Joined: 15 Mar 2004 10:49

Re: Multi-screen - offset center?

Post by Quinch »

I suppose that would be a question for code wizards - it would definitely be a nice feature, especially since multi-monitor setups are becoming more common nowadays.
User avatar
Emperor Jake
Tycoon
Tycoon
Posts: 3428
Joined: 24 Apr 2007 09:37
Skype: Discord: Emperor Jake #4106
Location: Not Actually Japan
Contact:

Re: Multi-screen - offset center?

Post by Emperor Jake »

jfs wrote: 25 Nov 2023 12:38 This makes me wonder how much work it would be to let the game support having multiple "local clients" to the same game, so you could actually have separate views of your ongoing game on multiple monitors, possibly even with full UI and separate active tools on each.
This is already possible, you can just start a local multiplayer game on your computer, and then open another instance of the game and join yourself :)
Post Reply

Return to “General OpenTTD”

Who is online

Users browsing this forum: No registered users and 6 guests