The International Simutrans Forum

Development => Patches & Projects => Incorporated Patches and Solved Bug Reports => Topic started by: Yona-TYT on January 14, 2026, 01:37:02 AM

Title: [PATCH] Add set_followed method to convoy script API
Post by: Yona-TYT on January 14, 2026, 01:37:02 AM
Edit
0001-Add-set_followed-method-to-convoy-script-API.patch


Title: Re: [PATCH] Add set_followed method to convoy script API
Post by: prissi on January 14, 2026, 12:41:14 PM
In in r11871. Maybe there shoudl be also a method to make windows sticky, since I have closed tutorial and scenario windows countless times by accident.
Title: Re: [PATCH] Add set_followed method to convoy script API
Post by: Yona-TYT on January 14, 2026, 12:50:37 PM
Quote from: prissi on January 14, 2026, 12:41:14 PMIn in r11871. Maybe there shoudl be also a method to make windows sticky, since I have closed tutorial and scenario windows countless times by accident.
Now that you mention it, I've been thinking that it would be good if the scenario information window remembered the last selected tab, so when you open the window again, it would be displayed in the tab where it was previously closed.
Title: Re: [PATCH] Add set_followed method to convoy script API
Post by: prissi on January 14, 2026, 12:52:08 PM
First you have to be able to open it again. This is not so easy for a newby. Maybe how about set it sticky to not close it in the first place.
Title: Re: [PATCH] Add set_followed method to convoy script API
Post by: Yona-TYT on January 14, 2026, 12:55:04 PM
Quote from: prissi on January 14, 2026, 12:52:08 PMFirst you have to be able to open it again. This is not so easy for a newby. Maybe how about set it sticky to not close it in the first place.
That seems fine to me, as long as it can be rolled up or minimized.
Title: Re: [PATCH] Add set_followed method to convoy script API
Post by: Andarix on January 14, 2026, 09:38:59 PM
In pak64, pak64.german and pak128, there's a button for the Scenario window in the main menu.

In pak64.german, it's highlighted.

So, in principle, it would be sufficient to include it in Chapter 1. Alternatively or additionally, include it in the info.txt file.

In any case, I wouldn't create a special case for the tutorial window.

Screenshot 2026-01-14 224057.png