The International Simutrans Forum

Development => Patches & Projects => Incorporated Patches and Solved Bug Reports => Topic started by: Ranran on January 24, 2022, 03:30:53 AM

Title: PR#479 - Implies that the button will open another window
Post by: Ranran on January 24, 2022, 03:30:53 AM
This is a kind of "More graphical symbol!" pooroejct that Ranran has been promoting for a long time. (´・ω・`)

Web page buttons may have a button design that implies opening another window.
I thought it would be useful if the buttons in the simutrans GUI could be done the same way.
Pull request #479 provides such functionality. That said, you can rest assured that simutrans will not lead you to a malicious money collection website. So you don't even need a pop-up blocker. ;)

In order for this to work, pakset must have a symbol for it. Otherwise, it will just keep the same appearance as before.


An example of a design is an arrow pointing to the upper right. Therefore, it would not be too difficult to create it.


I attach an icon pak for testing.

Obj=symbol
name=OpenWindow
copyright=Ranran
Image[0]=> ex-gui-icons.2.3
--------------------
Title: Re: PR#479 - Implies that the button will open another window
Post by: jamespetts on January 25, 2022, 10:33:49 PM
This is very interesting, thank you for this. Can I just confirm what exactly that I need to compile to test this and where I need to look out for it?
Title: Re: PR#479 - Implies that the button will open another window
Post by: Ranran on January 25, 2022, 11:26:22 PM
Quote from: jamespetts on January 25, 2022, 10:33:49 PMCan I just confirm what exactly that I need to compile to test this and where I need to look out for it?
The patch is pull request #479.
Please put the OpenWindow.pak file attached to the first post in the pakset folder.
To update the pakset, you need to update the attached image (ex-gui-icons.png) and add the aforementioned line to gui_symbols.dat.
The pakset creators can also provide their own unique design.
Title: Re: PR#479 - Implies that the button will open another window
Post by: jamespetts on January 29, 2022, 04:17:49 PM
Excellent, thank you. Now incorporated (both code and pakset).