News:

Do you need help?
Simutrans Wiki Manual can help you to play and extend Simutrans. In 9 languages.

PR#573 - Color-code the waytype

Started by Ranran, September 19, 2022, 01:17:18 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Ranran

Hi, there.
Unfortunately the typhoon gave me time to code. (´・ω・`)

The patch color-codes the waytype and makes the GUI gorgeous. It's about having the system do exactly what pak192.comic does.
The color of each waytype can be customized by describing it in simuconf.tab. If nothing is set, the default color will be used. If you don't want to use any color, set it to black, i.e. 0(#000000).

The sample is commented out in simuconf.tab, so please refer to it. Pakset should set the colors in own simuconf.tab.

Waytype colors are used as depot color, tab background color and background color of waytype symbol.
This change clarifies the difference between waytype symbols and facility symbols.
In other words, the symbol indicating that the station has a bus stop does not have a background color, but the symbol indicating that the station has a bus route has a background color.

In some UIs, the background color of the depot symbol indicates which waytype type of depot it is. You can see it on the depot list and minimap. The depot symbol on the minimap varies in size depending on its level. The color scale displays the depot color legend.

I hope this patch can add some delicious flavor to your simutrans extended.
See you again when the next typhoon hits. (´・ω・`)

Ranran

#1
Quote from: Ranran on September 19, 2022, 01:17:18 PMIf nothing is set, the default color will be used. If you don't want to use any color, set it to black, i.e. 0(#000000).
My apologies. This explanation is incorrect.
Disabled if simconf.tab is not edited. In other words, it is synonymous with setting 0.
It is recommended to set any color code by referring to the commented out line.


EDIT:
This was a bug. I'll make a pull request for the patch later.

Ranran

Quote from: Ranran on November 12, 2022, 01:47:26 PMThis was a bug. I'll make a pull request for the patch later.
Check the pull request #588.
I apologize for any inconvenience this may cause. (´・ω・`)

jamespetts

For some reason, I omitted to state that this had been incorporated. Thank you for your work on this.
Download Simutrans-Extended.

Want to help with development? See here for things to do for coding, and here for information on how to make graphics/objects.

Follow Simutrans-Extended on Facebook.