Changes to rich-text-input
Posted: Sat Mar 09, 2019 9:56 pm
So I was playing around with the rich text this weekend and I thought of a couple of improvements it could use.
Keep in mind that if you just type in some text, it will have the default color White if station in enabled, and Red if the station is disabled.
But if you override color with for example "[color≈blue] Station" the name will stay blue regardless of enabled/disabled.
This led me to use for example "X [color≈blue] Station", meaning I could see the color of the X if station was working or not.
So I ended up on discord trying to find a way to reset the color because I wanted to have the X at the end, and we found that using "[color≈blue]station[/color] X" but without a cheatsheet for this, its not really intuitive.
My suggestion is like this, some of it might be overkill, but some of it should be easy.
* easy: Have an extra, optional, UI to toggle when entering text. A UI that has a searchable list of possibilities, showing colors and items we can link in, as well as other possibilities.
* easy: The abovementioned UI should have two textboxes with the text, one with markup, and one without. Making it easier to work with.
* complex: Status based text based on signals. Like where T is a signal read from the train id with switch between two different names if a train is docked or not. Maybe even add the possibility to combine longer texts with several options.
* complex: Rich text being able to show signals and counts. Like will show "This station has 23963 copper plates and 38472 items".
I have some more clear pictures in my mind and will be happy to share if this seems interesting.
Keep in mind that if you just type in some text, it will have the default color White if station in enabled, and Red if the station is disabled.
But if you override color with for example "[color≈blue] Station" the name will stay blue regardless of enabled/disabled.
This led me to use for example "X [color≈blue] Station", meaning I could see the color of the X if station was working or not.
So I ended up on discord trying to find a way to reset the color because I wanted to have the X at the end, and we found that using "[color≈blue]station[/color] X" but without a cheatsheet for this, its not really intuitive.
My suggestion is like this, some of it might be overkill, but some of it should be easy.
* easy: Have an extra, optional, UI to toggle when entering text. A UI that has a searchable list of possibilities, showing colors and items we can link in, as well as other possibilities.
* easy: The abovementioned UI should have two textboxes with the text, one with markup, and one without. Making it easier to work with.
* complex: Status based text based on signals. Like
Code: Select all
"[if T > 0]Train is at station[endif][if T = 0]Station is free of trains[endif]"
* complex: Rich text being able to show signals and counts. Like
Code: Select all
"This station has [signal]copper-plate[/signal] copper plates and [signal]everything[/signal] items"
I have some more clear pictures in my mind and will be happy to share if this seems interesting.