News:

Simutrans Sites
Know our official sites. Find tools and resources for Simutrans.

PR#537 - Directly open the details dialog

Started by Ranran(retired), May 17, 2022, 10:57:25 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Ranran(retired)

The patch provides a way to open the details dialog directly.
The station or convoy panel of the list dialog opens the info dialog with a left click, but a CTRLShift-pressed click opens the details dialog directly.
The same applies to station numbers. EDIT: Also main view.
ひめしという日本人が開発者達の助言を無視して自分好みの機能をextendedに"強引に"実装し、
コードをぐちゃぐちゃにしてメンテナンスを困難にし(とりわけ道路と建物関連)、
挙句にバグを大量に埋め込み、それを知らんぷりして放置し(隠居するなどと言って)別のところに逃げ隠れて自分のフォーク(OTRP)は開発を続けている
その事実と彼の無責任さに日本人プレイヤーは目を向けるべき。らんらんはそれでやる気をなくした(´・ω・`)
他人の振り見て我が振り直せ。ひめしのようにならないために、らんらんが生み出したバグや問題は自分で修正しなくちゃね(´・ω・`)

Matthew

Thank you for this contribution, Ranran. It's great to see you active again!

I think this is a great idea for a patch, so I compiled and tested it in pak128.Britain-Ex.

It works correctly in the Line Manager.  :done: 

However, when I Ctrl+Left-click on the map, then I get the Building Info Window.  ::'(  For example, if I Ctrl+Left-click on a railway station tile, I get this:



I think this is correct behaviour, as it is a Simutrans convention that Ctrl+Left-click opens the Info Window that would usually be opened if you Left-clicked twice on that tile. However, I have to say that I almost never use this behaviour, but I expect that I would use direct access to the Details Window very often.

Maybe this feature is a better use of Ctrl+Left-click. Or maybe it should be changed to a different key? Maybe Right-click? I know Right-click is used for dragging the map; I don't know if it would be possible to separate clicking from dragging. Or maybe Alt+Left-click or something. Whatever is chosen should be the same in the Line Manager and the map, please.

Personally, I would also prefer the Details Window to open at the Services Tab, rather than the Passengers/mail Tab or Freight Tab, because I use the Service Tab more often. But IIRC we had this conversation before and you disagreed. I guess I need to learn to make my own patch for that!  ;D
(Signature being tested) If you enjoy playing Simutrans, then you might also enjoy watching Japan Railway Journal
Available in English and simplified Chinese
如果您喜欢玩Simutrans的话,那么说不定就想看《日本铁路之旅》(英语也有简体中文字幕)。

jamespetts

Perhaps shift+left click would be better for this feature so as not to clash with the feature of opening the building window? Thank you for your work on this in any event: it is certainly a worthwhile innovation.
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.

Ranran(retired)

I'm late to report this, but the patch has already changed to shift+left click. (alt was currently unavailable due to lack of definition)
And the same access to the detail dialog is now available from the main screen.

I also found that specifying a tab to open is complicated and takes a lot of time because the tab index is not fixed in this dialog. Therefore I would not do it.
ひめしという日本人が開発者達の助言を無視して自分好みの機能をextendedに"強引に"実装し、
コードをぐちゃぐちゃにしてメンテナンスを困難にし(とりわけ道路と建物関連)、
挙句にバグを大量に埋め込み、それを知らんぷりして放置し(隠居するなどと言って)別のところに逃げ隠れて自分のフォーク(OTRP)は開発を続けている
その事実と彼の無責任さに日本人プレイヤーは目を向けるべき。らんらんはそれでやる気をなくした(´・ω・`)
他人の振り見て我が振り直せ。ひめしのようにならないために、らんらんが生み出したバグや問題は自分で修正しなくちゃね(´・ω・`)

jamespetts

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.