Link to line management from station/stop details window January 09, 2009, 08:14:06 am I was just playing simutrans and suddenly realized that I needed to change destination platform for several lines serving one particular station so that the traffic would flow more easily. So I opened the station details to see which lines served the station and then it hit, it would be nice to have link or button for each line in the station details window's lines serving stop list that would open the line management window for that particular line which button or link is clicked. That way you would not need to open the line management window first and the search for the line you want to change.How does it sound? Quote Selected
Re: Link to line management from station/stop details window Reply #1 – January 09, 2009, 08:20:36 am There is a tool for changing all schedule... can't remember since when exactly. Click old platform, click new platform. It should be in special tools if it's in the version you play. Quote Selected
Re: Link to line management from station/stop details window Reply #2 – January 09, 2009, 08:32:38 am QuoteI needed to change destination platform for several lines serving one particular stationQuoteThere is a tool for changing all scheduleThe tool is there, VS, and it's very useful, but I don't think that's what he wants. Going directly to a line from that window would be handy, but there are some difficulties. For example, all lines are shown, also lines from other players. And you can't go to edit these. But all and all, it would be a really useful extension. Quote Selected
Re: Link to line management from station/stop details window Reply #3 – January 09, 2009, 08:45:30 am Quote from: Combuijs – on January 09, 2009, 08:32:38 amGoing directly to a line from that window would be handyThat was the point.Quote from: Combuijs – on January 09, 2009, 08:32:38 amFor example, all lines are shown, also lines from other players. And you can't go to edit these.Couldn't that be handled so that only the lines of the current player has this link/button?Edit: Btw, I'm using Simutrans 100.0 (r1867) Quote Selected Last Edit: January 09, 2009, 08:48:46 am by Simppe
Re: Link to line management from station/stop details window Reply #4 – January 09, 2009, 08:52:55 am Oh, I see. I thought it was that you have to look at station, look at lines, look at schedules, compare coordinates... Quote Selected
Re: Link to line management from station/stop details window Reply #5 – January 09, 2009, 09:43:33 am Quote from: VS – on January 09, 2009, 08:52:55 amOh, I see. I thought it was that you have to look at station, look at lines, look at schedules, compare coordinates...MEE TOO. Quote Selected
Re: Link to line management from station/stop details window Reply #6 – January 09, 2009, 07:21:13 pm Quote from: Simppe – on January 09, 2009, 08:45:30 amCouldn't that be handled so that only the lines of the current player has this link/button?And also printing the line name with the color of the owner would be handy for multiplayer. Quote Selected
Re: Link to line management from station/stop details window Reply #7 – January 09, 2009, 07:31:00 pm Umhhmmm, that really depends on background. Anywhere you put a colour, a square of the colour with some border around is better than text. If you want to make it bulletproof, black and white lines simulating 3d feel are perfect. Only a pattern of the same lines defeats that. Quote Selected
Re: Link to line management from station/stop details window Reply #8 – January 14, 2009, 05:20:25 am A somewhat first version of a patch to do this. Lines are colored, buttons are created only for current player's lines, lines are identified when buttons pushed, but left:Opening the line information window and show the lineIf player is changed, adjust the buttons to current player Quote Selected
Re: Link to line management from station/stop details window Reply #9 – January 14, 2009, 08:00:50 am I support this idea, but watching the attached image in detail I have one doubt. Does this window have a max size? I mean, people usually create a lot of service lines, so easilly you can have no less then 10-15 lines serving in a stop. Therefore, the window may take more and more space and that may become a problem. Wouldn't be possible to use scrolling if the number of lines serving exceed a certain limit, let's say 10 lines? Quote Selected
Re: Link to line management from station/stop details window Reply #10 – January 15, 2009, 03:23:45 am That's independent from the patch. I don't know how scrolling is implemented. I guess it should no be difficult, but I don't know. Quote Selected
Re: Link to line management from station/stop details window Reply #11 – January 16, 2009, 02:16:53 am This version of the patch should do it. The only way I found to make the links to the lines change was to implement a virtual method for all opens windows to be notified when active player changes. That method perhaps can also be used to make changes to some windows of even auto-close them when active player changes. Quote Selected
Re: Link to line management from station/stop details window Reply #12 – January 16, 2009, 09:38:34 am YOu can check in zeichnen, if a player has change too. Quote Selected
Re: Link to line management from station/stop details window Reply #13 – January 16, 2009, 07:54:08 pm Corrected. Much cleaner approach... Quote Selected
Re: Link to line management from station/stop details window Reply #14 – January 17, 2009, 08:57:16 pm In trunk: However, I have some problem with using those buttons as UI; in principle color button would have been needed there. Quote Selected
Re: Link to line management from station/stop details window Reply #15 – January 18, 2009, 02:50:27 am I've also noticed that the line is selected in the tabs window... Thanx. Quote Selected
Re: Link to line management from station/stop details window Reply #16 – January 18, 2009, 07:22:34 pm Is it possible to add same button on vehicle window, too ?[attachment deleted by admin] Quote Selected
Re: Link to line management from station/stop details window Reply #17 – January 18, 2009, 07:47:33 pm Should be easy too ...EDIT: done (isn't it 4am in Japan?) Quote Selected Last Edit: January 18, 2009, 08:25:22 pm by prissi
Re: Link to line management from station/stop details window Reply #18 – January 21, 2009, 09:54:22 pm Grr, I was supposed to implement this, I had even some lines of code written already... :-) Maybe I'll just have to settle on working with something less challenging things such as threading p****anger generation and route finding to take advantage of the second core I have there... :-/Thanks anyway, it's really a desperately needed feature for any decently sized network that needs to be expanded.In addition to the linking I would want to see also the type(s) of vehicles that are serving on a particular line in order to pick the mail line on the first click. Quote Selected
Re: Link to line management from station/stop details window Reply #19 – January 22, 2009, 12:27:21 am My fault. If you are working on something, open a thread so that we all know and can focus our efforts on different things... Quote Selected