New viewpoints center on mouse, not middle of screen

Got an idea for OpenTTD? Post it here!

Moderator: OpenTTD Developers

Post Reply
Nommy
Engineer
Engineer
Posts: 30
Joined: 19 Sep 2010 11:31

New viewpoints center on mouse, not middle of screen

Post by Nommy »

IMO, it'd be better if new view points open centered on the mouse, not the middle of the screen.

This is a small thing that's been niggling me coz the only time I use the viewpoints is when zoomed right out, and as it is I find myself always moving the main view just to get the viewpoint to open on the right spot, thinking 'it'd be nice if it just opened showing what the mouse is over...'
User avatar
ChillCore
Tycoon
Tycoon
Posts: 2852
Joined: 04 Oct 2008 23:05
Location: Lost in spaces

Re: New viewpoints center on mouse, not middle of screen

Post by ChillCore »

Not saying that your suggestion is a bad one but where will the extra viewport center on if you open it by means of the toolbar and the mousepointer is over at a button?
-- .- -.-- / - .... . / ..-. --- .-. -.-. . / -... . / .-- .. - .... / -.-- --- ..- .-.-.-
--- .... / -.-- . .- .... --..-- / .- -. -.. / .--. .-. .- .. ... . / - .... . / .-.. --- .-. -.. / ..-. --- .-. / .... . / --. .- ...- . / ..- ... / -.-. .... --- --- -.-. .... --- --- ... .-.-.- / ---... .--.

Playing with my patchpack? Ask questions on usage and report bugs in the correct thread first, please.
All included patches have been modified and are no longer 100% original.
Nommy
Engineer
Engineer
Posts: 30
Joined: 19 Sep 2010 11:31

Re: New viewpoints center on mouse, not middle of screen

Post by Nommy »

The button :P
Yeah good point, maybe it'd be best if it only centered on the mouse when you use a keyboard shortcut to open the viewpoint and center on the main view if you use the menu.
User avatar
ChillCore
Tycoon
Tycoon
Posts: 2852
Joined: 04 Oct 2008 23:05
Location: Lost in spaces

Re: New viewpoints center on mouse, not middle of screen

Post by ChillCore »

Just to give you a hard time and increase my postcount ... :P

I am giving my trains some orders, I open the extra viewport by means of the shortcut to find the other station but my mouse is still over the orders gui. What happens in this case?
-- .- -.-- / - .... . / ..-. --- .-. -.-. . / -... . / .-- .. - .... / -.-- --- ..- .-.-.-
--- .... / -.-- . .- .... --..-- / .- -. -.. / .--. .-. .- .. ... . / - .... . / .-.. --- .-. -.. / ..-. --- .-. / .... . / --. .- ...- . / ..- ... / -.-. .... --- --- -.-. .... --- --- ... .-.-.- / ---... .--.

Playing with my patchpack? Ask questions on usage and report bugs in the correct thread first, please.
All included patches have been modified and are no longer 100% original.
Nommy
Engineer
Engineer
Posts: 30
Joined: 19 Sep 2010 11:31

Re: New viewpoints center on mouse, not middle of screen

Post by Nommy »

That's cool, my postcount could use some upping too :)

In that case, the viewpoint would open containing what's under the orders gui... for the first couple of times until you learnt that you can put the mouse near where you need to move the viewpoint and it'll open showing that.
In that example you would need to move the viewpoint to find the other station anyway, right?

Or maybe there could be an interface option to select either the 'original - center on screen' or 'center on mouse' behavior, so the behavior remained unchanged by default.

There's also the 'Copy to Viewpoint' button to center it on the screen.

Thing is, I don't think I've ever used the viewpoints without either moving them or the main view in order to get what I want to see in the viewpoint, and I think it would be easier to just be able to point at what you want to see & hit V.
Eddi
Tycoon
Tycoon
Posts: 8289
Joined: 17 Jan 2007 00:14

Re: New viewpoints center on mouse, not middle of screen

Post by Eddi »

to add a level of crazyness:

what if i open a viewport while my mouse is in a window which has a viewport?
Nommy
Engineer
Engineer
Posts: 30
Joined: 19 Sep 2010 11:31

Re: New viewpoints center on mouse, not middle of screen

Post by Nommy »

I dunno, just make it center on the mouse, so if the mouse is in a vewport or a train window it would center there.

So do you folks like this idea or not?
frosch
OpenTTD Developer
OpenTTD Developer
Posts: 991
Joined: 20 Dec 2006 13:31
Location: Aschaffenburg

Re: New viewpoints center on mouse, not middle of screen

Post by frosch »

Sorry, but this conversation annoyed me :p
(added in r20956)
⢇⡸⢸⠢⡇⡇⢎⡁⢎⡱⢸⡱⢸⣭⠀⢸⢜⢸⢸⣀⢸⣀⢸⣭⢸⡱⠀⢰⠭⡆⣫⠰⣉⢸⢸⠀⢰⠭⡆⡯⡆⢹⠁⠀⢐⠰⡁
Nommy
Engineer
Engineer
Posts: 30
Joined: 19 Sep 2010 11:31

Re: New viewpoints center on mouse, not middle of screen

Post by Nommy »

LOL, thank you.
Post Reply

Return to “OpenTTD Suggestions”

Who is online

Users browsing this forum: No registered users and 4 guests