Signal GUI + Signal autocompletion

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

User avatar
Hackykid
Traffic Manager
Traffic Manager
Posts: 157
Joined: 22 Nov 2004 16:04
Location: Eindhoven de Gekste!!! (ongeveer ;P)
Contact:

Signal GUI + Signal autocompletion

Post by Hackykid »

Well, some people asked for this, so i'm posting this patch + win binaries here :-)

Its about the signal gui I made, a little window to help you build signals (see screenshot)

Also a new neat feature I call "signal autocompletion", which automatically builds signals on a connected stretch of tracks, even around corners! (click the autocompletion button, and do a normal drag, the signals will keep going in the direction you dragged!)

If you find a bug, or have a suggestion, let me know.
Attachments
Screenshot of the GUI
Screenshot of the GUI
Fort Bratfingburg Transport, 1st Feb 1950.png (16.72 KiB) Viewed 16892 times
build.zip
Windows build, based on svn r2364
(1006.89 KiB) Downloaded 814 times
siggui0.diff
The .diff, based on svn r2364
(23.41 KiB) Downloaded 769 times
Last edited by Hackykid on 25 May 2005 18:53, edited 2 times in total.
DopeFish Lives!!!
User avatar
Dextro
Chief Executive
Chief Executive
Posts: 701
Joined: 12 Jan 2005 21:56
Location: Lisboa, Portugal
Contact:

Post by Dextro »

OMFG GREAT!!!! :shock:

EDIT: I See I'm allready using this in the integrated nightly build, didn't noticed it at the start. LOVELY :D
Uncle Dex Says: Follow the KISS Principle!
MeusH
Tycoon
Tycoon
Posts: 4349
Joined: 25 Oct 2004 15:39
Location: Mississauga

Post by MeusH »

This is a great improvement! I saw this today and now I'm very happy you explained what's that :D Good job!
Sid
Engineer
Engineer
Posts: 37
Joined: 18 Dec 2004 12:44
Location: Germany
Contact:

Post by Sid »

Nice Work,

but is it possible, to configure the autoplacement so, that a signal is placed, when custom number of wagons fit between two signals, so that it is the same distance is between signals on straigths an digonals, instead of placing a signal every x title?
User avatar
Born Acorn
Tycoon
Tycoon
Posts: 7595
Joined: 10 Dec 2002 20:36
Skype: bornacorn
Location: Wrexham, Wales
Contact:

Post by Born Acorn »

Sid wrote:Nice Work,

but is it possible, to configure the autoplacement so, that a signal is placed, when custom number of wagons fit between two signals, so that it is the same distance is between signals on straigths an digonals, instead of placing a signal every x title?
It already does that :roll:
Image
Sid
Engineer
Engineer
Posts: 37
Joined: 18 Dec 2004 12:44
Location: Germany
Contact:

Post by Sid »

Okay, the last signal tool, I saw, didn`t have these feature....
User avatar
Dundee
Engineer
Engineer
Posts: 112
Joined: 28 Nov 2004 04:35
Location: Sydney, Australia

Post by Dundee »

It looks a bit cramped at the moment (shows both the signal image and the name of the signal, has a title for the distance between signals).

Perhaps a sort-of sentence could be formed: (image is a mockup)
Attachments
idea.png
idea.png (2.28 KiB) Viewed 16763 times
MeusH
Tycoon
Tycoon
Posts: 4349
Joined: 25 Oct 2004 15:39
Location: Mississauga

Post by MeusH »

Also, clicking anywhere should hide the dropdown list
wizeman
Engineer
Engineer
Posts: 18
Joined: 28 Jun 2004 22:53
Location: Portugal
Contact:

Post by wizeman »

HackyKid: very nice patch, I also hope this gets merged :D

A suggestion: it would be nice if the autocomplete would work when trains are in the tracks (even if it wouldn't place them where the trains are).
I don't like to cheat (build in pause mode), so I tend to build tracks while trains are passing through them :)
Horse
Transport Coordinator
Transport Coordinator
Posts: 325
Joined: 10 Sep 2004 20:25

Post by Horse »

It is nice there will be difference between the two types of signals.
User avatar
Born Acorn
Tycoon
Tycoon
Posts: 7595
Joined: 10 Dec 2002 20:36
Skype: bornacorn
Location: Wrexham, Wales
Contact:

Post by Born Acorn »

I prefer the traditional style icon buttons. More room for error, ie you must click on that small arrow in yours, but can click the whole button in Hackykid's

and, if drive side is set to left this icon should show

Image
Image
Roo
Engineer
Engineer
Posts: 72
Joined: 13 Dec 2004 17:47
Location: Roudnice, Czech Republic
Contact:

Post by Roo »

Question: Is new signal graphics for PBS, that will replace semaphores planned?
User avatar
Dundee
Engineer
Engineer
Posts: 112
Joined: 28 Nov 2004 04:35
Location: Sydney, Australia

Post by Dundee »

Mixing them a bit -- a little bit less verbose, and perhaps less cramped:

(ignore the white bits/title issues - mock up image from Acorn's above)
Attachments
signal.png
signal.png (2.2 KiB) Viewed 16697 times
User avatar
Gorre
Transport Coordinator
Transport Coordinator
Posts: 322
Joined: 03 Jan 2004 10:28
Location: Somewhere over the rainbow
Contact:

Post by Gorre »

Very good work HackyKid, indeed...

But I am missing function to remove semaphores in the same way as I placed them and also, when I once placed them as {style1] i can't change them to {style2]. But keep the good work.
User avatar
LKRaider
Transport Coordinator
Transport Coordinator
Posts: 360
Joined: 23 Mar 2005 04:05
Location: Brasil
Contact:

Post by LKRaider »

If you use remove signals and turn on autocompletion, it will remove the signals from whole stretch of the tracks.

Converting types of signal would be a cool feature :)
Nanaki13
Traffic Manager
Traffic Manager
Posts: 151
Joined: 08 Jan 2005 16:08

Post by Nanaki13 »

Will this be included in the trunk someday? (soon?) i hate it when the diff doesn't work with the latest svn.
User avatar
Hackykid
Traffic Manager
Traffic Manager
Posts: 157
Joined: 22 Nov 2004 16:04
Location: Eindhoven de Gekste!!! (ongeveer ;P)
Contact:

Post by Hackykid »

I sure hope it will be in trunk soon :-P

Anyway, i've updated the diff and windows build.
DopeFish Lives!!!
User avatar
LKRaider
Transport Coordinator
Transport Coordinator
Posts: 360
Joined: 23 Mar 2005 04:05
Location: Brasil
Contact:

Post by LKRaider »

One thing that bugs me is the position the window is created is right over the rail functions, then I am forced to move the window or close it to access these comands.

Can you point me to where in the code this can be changed? :) (ideally, it could also save the last position you placed it, if that is possible?)
User avatar
acidd_uk
Traffic Manager
Traffic Manager
Posts: 194
Joined: 08 Sep 2004 14:38

Post by acidd_uk »

Yes, that would be good.
User avatar
Arsenal
Traffic Manager
Traffic Manager
Posts: 227
Joined: 06 Jan 2004 21:25

Post by Arsenal »

LKRaider wrote:One thing that bugs me is the position the window is created is right over the rail functions, then I am forced to move the window or close it to access these comands.

Can you point me to where in the code this can be changed? :) (ideally, it could also save the last position you placed it, if that is possible?)
Hear, hear.
I wouldn't mind if this was extended to other windows too, especially the landscaping tools.
Post Reply

Return to “OpenTTD Development”

Who is online

Users browsing this forum: No registered users and 4 guests