Page 1 of 1

[1.0.0] can't copy default color from locomotives and stations

Posted: Tue Sep 15, 2020 5:07 am
by joshinils
After placing a locomotive by hand I can not copy the specific color from the loco to a station.
After changing the stations color and pasting a locos color it gets the station-default color of 242,0,0 not the locos (default) color 234,17,0.

Copy-pasting the default color from a station to a loco doesn't work at all, not to a default color loco nor a color changed one.

Changing any color to the default values fixes this.

Re: [1.0.0] can't copy default color from locomotives and stations

Posted: Tue Sep 15, 2020 7:08 pm
by robot256
This must be related to the fact that color is set to "nil" initially to indicate default color. So it is actually copying "set color to default" from the stop to the loco, not the color itself.

Re: [1.0.0] can't copy default color from locomotives and stations

Posted: Tue Sep 15, 2020 7:29 pm
by Rseding91
Currently this is intended.. but I don't have any objection to changing the behavior.

How should all of the combinations work?

Re: [1.0.0] can't copy default color from locomotives and stations

Posted: Tue Sep 15, 2020 8:53 pm
by Theikkru
I'd expect whatever color is actually shown on the source to copy over, just like any non-default color. In other words, if the copy function sees that the source color it's trying to get is default/nil, actually look up what color that default is referring to (e.g. 234, 17, 0), and put that color on the clipboard.

Re: [1.0.0] can't copy default color from locomotives and stations

Posted: Tue Sep 15, 2020 11:39 pm
by Khagan
Theikkru wrote:
Tue Sep 15, 2020 8:53 pm
I'd expect whatever color is actually shown on the source to copy over, just like any non-default color.
Yes, and this should be complemented by an option in the colour setting UI to 'delete' the custom colour (or to 'restore the default') so that if you really do want 'nil' you can easily get it. (Copying 'nil' from some other object reminds me of the old joke about what to do if you are running out of plain paper: just take one of your remaining blank sheets to the nearest photocopier, and make as many copies as you need.)

Re: [1.0.0] can't copy default color from locomotives and stations

Posted: Wed Sep 16, 2020 12:03 am
by robot256
Khagan wrote:
Tue Sep 15, 2020 11:39 pm
Yes, and this should be complemented by an option in the colour setting UI to 'delete' the custom colour (or to 'restore the default') so that if you really do want 'nil' you can easily get it.
Yes, the only reason the current behavior is unexpected is that there no visual indication that a default color is anything other than a starting point for the color sliders. If "erasing" the custom color back to default is a desired behavior, it should be explicitly available.

Default train and character colors

Posted: Wed Sep 16, 2020 3:40 pm
by Brent Rine
Any way to do this right now?

Re: Default train and character colors

Posted: Wed Sep 16, 2020 3:54 pm
by valneq
Can you specify? Do you mean

"Is there a way to reset the colors of trains or characters to default?"

Re: Default train and character colors

Posted: Thu Sep 17, 2020 6:39 am
by ssilk
merged with same topic — ssilk
Brent Rine wrote:
Wed Sep 16, 2020 3:40 pm
Any way to do this right now?
Brent Rine wins the price for “shortest suggestion” this month. :)