[Patch] less clicks (r14400)

Forum for technical discussions regarding development. If you have a general suggestion, problem or comment, please use one of the other forums.

Moderator: OpenTTD Developers

sulai
Traffic Manager
Traffic Manager
Posts: 159
Joined: 24 Sep 2004 18:23

[Patch] less clicks (r14400)

Post by sulai »

Hi There,

The game flow of OpenTTD suffers from too many unnecessary mouse clicks. This patch does many things to improve that and make things more consistent within the OTTD GUI.

This patch is all about saving clicks. The player can do the same stuff as before, but with less clicks, which makes gaming experience smoother and less annoying. Best example: you try to build a bus station, consisting of 20 tiles... you have to click that "build bus station" button 20 times: click button - build - click button - build - ... This patch makes the button persistent so all you have to do is: click button - build - build - build - ...

There are many different places in the game where to save clicks. Here a complete list of changes:

Vehicle Orders Window
  • - Quick Goto:
    • Go To Button is auto active and persistent;
      - Ctrl+click on station creates a "full load" entry.
      - Ctrl+click on depot creates a "service" order.
      - Ctrl+click on waypoint creates a "stop"/"nonstop" order.
    - modify last given order: You can modify the latest entry you just created in the list. Together with quick goto you can do the following in 5 clicks: open orders window, click on a station A, click on "Full Load", click on station B, click on "Unload".
Station Window
- There is no "Ratings" or "Accepts" button anymore. Instead, both rating and accepted cargo are shown in one window. Window size adapts automatically to the amount of shown ratings.

Building tools
Most building tools are now persistent, like "build roads/tracks" has always been:
- Build buttons for stations, Depots, tunnels, bridges, docks, buoys stay active
- Ctrl-Drag Bridge: instantly build fastest available.
- plant trees: random trees preselected
Attachments
station_gui_r14400.diff
(12.08 KiB) Downloaded 89 times
less_clicks_r14400.diff
(42.68 KiB) Downloaded 122 times
OpenTTD_lessclicks_win32.zip
(2.5 MiB) Downloaded 80 times
Last edited by sulai on 26 Sep 2008 11:49, edited 4 times in total.
User avatar
planetmaker
OpenTTD Developer
OpenTTD Developer
Posts: 9432
Joined: 07 Nov 2007 22:44
Location: Sol d

Re: [Patch] less clicks (r14300)

Post by planetmaker »

sulai wrote: (...saving clicks...)
Building tools
Most building tools are now persistent, like "build roads/tracks" has always been:
- Build stations, Depots, tunnels, bridges, docks, buoys stay active
- Ctrl-Drag Bridge: instantly build fastest available.
- plant trees: random trees preselected
Nice stuff!

I propose to use "build the same bridge type as last time" instead of "fastest". Allows faster eye candy and is no difference, if you seleced a tubular bridge. It's a shameless plug of mine, I know :P
sulai
Traffic Manager
Traffic Manager
Posts: 159
Joined: 24 Sep 2004 18:23

Re: [Patch] less clicks (r14300)

Post by sulai »

Here are some in-game screenshots of the patch. I personally like th reorganized station window most. If you open the station window you want to click the "Ratings" button in 80% of all cases. What about a window like this:
gui_station.png
gui_station.png (26.33 KiB) Viewed 6851 times
The following screenshot shows how you can modify your last given order entry. no need to click every entry after wards. just click the station and what you want the vehicle to do there:
modify_last_given_order.png
modify_last_given_order.png (75.1 KiB) Viewed 6829 times
It combines with Quick goto very well.
The "plant tree" buttons is one of many examples where an unnecessary mouse click was saved. Random trees are preselected.
persistent buttons.png
persistent buttons.png (32.92 KiB) Viewed 6823 times
dbkblk
Traffic Manager
Traffic Manager
Posts: 154
Joined: 29 Mar 2008 18:38

Re: [Patch] less clicks (r14300)

Post by dbkblk »

That would be a very simple & nice idea for the trunk :D !
User avatar
athanasios
Tycoon
Tycoon
Posts: 3138
Joined: 23 Jun 2005 00:09
Contact:

Re: [Patch] less clicks (r14300)

Post by athanasios »

Nice!
Only I am thinking if we could simplify the station window: Rating and Waiting to get merged somehow.
http://members.fortunecity.com/gamesart
"If no one is a fool I am also a fool." -The TTD maniac.


I prefer to be contacted through PMs. Thanks.
User avatar
PikkaBird
Graphics Moderator
Graphics Moderator
Posts: 5631
Joined: 13 Sep 2004 13:21
Location: The Moon

Re: [Patch] less clicks (r14300)

Post by PikkaBird »

Fewer.

/grammarnazi
DaleStan
TTDPatch Developer
TTDPatch Developer
Posts: 10285
Joined: 18 Feb 2004 03:06
Contact:

Re: [Patch] less clicks (r14300)

Post by DaleStan »

Indeed. Clicks are countable.
To get a good answer, ask a Smart Question. Similarly, if you want a bug fixed, write a Useful Bug Report. No TTDPatch crashlog? Then follow directions.
Projects: NFORenum (download) | PlaneSet (Website) | grfcodec (download) | grfdebug.log parser
MJS
Director
Director
Posts: 540
Joined: 28 Jul 2005 09:31

Re: [Patch] less clicks (r14300)

Post by MJS »

CTRL-click on a depot might autoselect 'Service at...', maybe.
User avatar
SirXavius
Transport Coordinator
Transport Coordinator
Posts: 302
Joined: 28 Jun 2006 18:25
Location: Florida

Re: [Patch] less clicks (r14300)

Post by SirXavius »

I love this idea, but it could be made even better by combining a vehicle's route and info windows. My normal routine is to build a vehicle, create its route, then name it (i use a numbering system so i can keep up with when the vehicle needs to be replaced). Click to choose route window, click on stations of destinations (or the vehicle whose manifest i will be copying), click on vehicle viewport, click to choose info window, click on "Name", type in vehicle ID and <ENTER>, click to close window. Boy' i'd love to streamline this with a few keystrokes or a couple less clicks for each new vehicle.

You have a good patch. Can you expand it? :wink:


BTW, does the windows binaries .zip contain the complete official release with the new patch?
User avatar
CommanderZ
Tycoon
Tycoon
Posts: 1872
Joined: 07 Apr 2008 18:29
Location: Czech Republic
Contact:

Re: [Patch] less clicks (r14300)

Post by CommanderZ »

SirXavius wrote: BTW, does the windows binaries .zip contain the complete official release with the new patch?
It surprisingly contains the patched SVN revision (it is the official source code with applied patch, bot any certain release).
User avatar
prissi
Chief Executive
Chief Executive
Posts: 648
Joined: 15 Nov 2004 19:46
Location: Berlin, Germany
Contact:

Re: [Patch] less clicks (r14300)

Post by prissi »

This is very important and something I really think is needed.

(Although I feel that the usual commetn on UI improvement like "The are used to do it like this" will come up again. Personally, I still think the UI needs a lot of improvement and the idea here is a good one.)
I like to look at great maps and see how things flow. A little like a finished model railway, but it is evolving and actually never finished. http://www.simutrans.com
User avatar
SirkoZ
Tycoon
Tycoon
Posts: 1518
Joined: 06 Mar 2004 23:51
Location: The sunny side of Alps

Re: [Patch] less clicks (r14300)

Post by SirkoZ »

Beautiful, sulai! :]

Now to get it into the trunk...
Attachments
looking.gif
looking.gif (239 Bytes) Viewed 5497 times
User avatar
Gremnon
Tycoon
Tycoon
Posts: 1517
Joined: 16 Sep 2005 12:23
Skype: the_gremnon
Location: /home
Contact:

Re: [Patch] less clicks (r14300)

Post by Gremnon »

Just a little pick, although it might just be my computer.
When a station window is open showing cargo waiting etc, the game slows down a little - and opening several slows it down further. 6 is about enough to almost kill the computers I've tried it on.
Using r14300 with just this patch.
sulai
Traffic Manager
Traffic Manager
Posts: 159
Joined: 24 Sep 2004 18:23

Re: [Patch] less clicks (r14400)

Post by sulai »

Update to r14400 (see first post)
Gremnon wrote:Just a little pick, although it might just be my computer.
When a station window is open showing cargo waiting etc, the game slows down a little - and opening several slows it down further. 6 is about enough to almost kill the computers I've tried it on.
Using r14300 with just this patch.
The window was set dirty on every paint. I removed this issue.

I share the idea of athanasios and others, that rating and waiting should be merged somehow.
SirXavius wrote:I love this idea, but it could be made even better by combining a vehicle's route and info windows. My normal routine is to build a vehicle, create its route, then name it (i use a numbering system so i can keep up with when the vehicle needs to be replaced). Click to choose route window, click on stations of destinations (or the vehicle whose manifest i will be copying), click on vehicle viewport, click to choose info window, click on "Name", type in vehicle ID and <ENTER>, click to close window. Boy' i'd love to streamline this with a few keystrokes or a couple less clicks for each new vehicle.

You have a good patch. Can you expand it? :wink:
A conceptual idea about it: instead of renaming vehicles, put them in groups. Idea for a patch: when a group is selected, somehow say "put new vehicles in this group". This should save a lot of work since you don't need to rename anymore. Just buy and set the vehicle orders.

All changes:
- fixed station gui
- quick goto: ctrl+depot=service, ctrl+waypoint=nonstop
Youri219
Traffic Manager
Traffic Manager
Posts: 191
Joined: 28 Apr 2007 11:53

Re: [Patch] less clicks (r14400)

Post by Youri219 »

Having lots of trains with 32 orders (alternating full load/normal) this patch is really amazing. Bridge building is real nice too. Having to deselect depots is something I still need to get used to, but that's only a small price to pay for such a great feature.
User avatar
SirXavius
Transport Coordinator
Transport Coordinator
Posts: 302
Joined: 28 Jun 2006 18:25
Location: Florida

Re: [Patch] less clicks (r14400)

Post by SirXavius »

Note for you Windows 98 users: the .zip file above only works with higher than win9x...

I simply replaced the 2 files present in the .zip into my OTTD folder. Upon starting, i was told the application needs Windows NT or higher, or something to that effect. Would not run under Win98SE... :cry:
sulai
Traffic Manager
Traffic Manager
Posts: 159
Joined: 24 Sep 2004 18:23

Re: [Patch] less clicks (r14400)

Post by sulai »

SirXavius wrote:Note for you Windows 98 users: the .zip file above only works with higher than win9x...
Maybe you can apply the patch using BuildOTTD.
Terkhen
OpenTTD Developer
OpenTTD Developer
Posts: 1034
Joined: 11 Sep 2008 07:32
Location: Spain

Re: [Patch] less clicks (r14400)

Post by Terkhen »

I love this patch!. I hope we get a version for latest trunk soon.
User avatar
planetmaker
OpenTTD Developer
OpenTTD Developer
Posts: 9432
Joined: 07 Nov 2007 22:44
Location: Sol d

Re: [Patch] less clicks (r14400)

Post by planetmaker »

I like this patch, too (as you might have noted, sulai :P )
Maybe, it's an idea to break it up into a few patches like the quick goto, a random tree, persistant build tools, station gui.... patches. Did I miss anything? It makes it easier to keep track of the changes and maybe enhances chances for trunk inclusion :)
EDIT: or keep both, a combined version and the single ones :)
sulai
Traffic Manager
Traffic Manager
Posts: 159
Joined: 24 Sep 2004 18:23

Re: [Patch] less clicks (r14400)

Post by sulai »

Nice to hear you like it =) Here are the two missing single patches. All other patches are available somewhere. quickgoto and ctrl+drag bridge have their own forum threads. station_gui is on the first post of this thread.
Isn't persistent building the same like "persistent buttons"?
modify_last_given_order is nice to have it in the game, but it's quite intrusive code.
Attachments
persistent_buttons_r14400.diff
(4.51 KiB) Downloaded 93 times
modify_last_given_order_r14400.diff
(15.55 KiB) Downloaded 87 times
Post Reply

Return to “OpenTTD Development”

Who is online

Users browsing this forum: No registered users and 1 guest