Canal locks in scenario editor

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

Post Reply
odd-sock
Engineer
Engineer
Posts: 12
Joined: 11 Apr 2006 19:10
Location: Dublin, Ireland
Contact:

Canal locks in scenario editor

Post by odd-sock »

Hey All

I'd like to enhance the scenario editor so that it supports the ability to create canal locks. I'm a full time programmer, with a reasonabe understanding of c/c++. However, this will be my first contribution to OpenTTD, and the mass of code is a bit overwhelming.

Could some point me in the right direction on how to implement this patch?

Specifically:

* Is there any known technical limitation why this would not be possible?
* Which code files would be of interest to me?
* How do I add an extra button to a window (and make them function)?
* Are there any other caveats that I should be aware of?
* Assuming I am successful in making the change, how do I then release the change?

Thanks,

Patrick
User avatar
Brianetta
Tycoon
Tycoon
Posts: 2567
Joined: 15 Oct 2003 22:00
Location: Jarrow, UK
Contact:

Post by Brianetta »

I can only answer the first question - there is no technical impediment to allowing canal locks to be built in the scenario editor. It's simply an interface thing.
PGP fingerprint: E66A 9D58 AA10 E967 41A6 474E E41D 10AE 082C F3ED
Sacro
Tycoon
Tycoon
Posts: 1145
Joined: 18 Jun 2005 21:08
Location: Here
Contact:

Post by Sacro »

Well i'd firstly check out dock_gui.c, seems a likely place to put that kind of thing.

To release it, you can post a source patch, or the full source, plus a Windows exe always goes down well with those who don't know how to compile.
We Am De Best

Host of ThroughTheTube site
Bot_40
Engineer
Engineer
Posts: 105
Joined: 27 Jan 2005 18:56
Contact:

Post by Bot_40 »

Ya, I'd quite like this, don't really know why it's missing in the first place really
Post Reply

Return to “OpenTTD Development”

Who is online

Users browsing this forum: No registered users and 14 guests