News:

Simutrans Wiki Manual
The official on-line manual for Simutrans. Read and contribute.

PR#565 - Search box has a placeholder

Started by Ranran(retired), August 08, 2022, 01:42:15 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Ranran(retired)

This patch just puts the text there, but it might suggest what the icon means, or make it clear that it's a search box even if the icon isn't there.
This will modernize the UI design just a bit. There was also an idea to combine the symbol with the box, but it was ruled out because there are cases where the symbol is larger than the box size, and in addition the difference from the standard can be large.


The placeholder text color can be specified in the theme.
gui_color_text_placeholder  = #CCCCCCPlease update the theme as it has been edited in some themes.


I believe this can be backported to the standard. (IIRC, SYSCOL_TEXT_PLACEHOLDER/gui_color_text_placeholder is an extended specific parameter.)
ひめしという日本人が開発者達の助言を無視して自分好みの機能をextendedに"強引に"実装し、
コードをぐちゃぐちゃにしてメンテナンスを困難にし(とりわけ道路と建物関連)、
挙句にバグを大量に埋め込み、それを知らんぷりして放置し(隠居するなどと言って)別のところに逃げ隠れて自分のフォーク(OTRP)は開発を続けている
その事実と彼の無責任さに日本人プレイヤーは目を向けるべき。らんらんはそれでやる気をなくした(´・ω・`)
他人の振り見て我が振り直せ。ひめしのようにならないために、らんらんが生み出したバグや問題は自分で修正しなくちゃね(´・ω・`)

jamespetts

Excellent, thank you: now incorporated.
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.