News:

Simutrans.com Portal
Our Simutrans site. You can find everything about Simutrans from here.

new simple_tool - roll up all windows

Started by Ranran(retired), November 06, 2020, 01:20:00 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Ranran(retired)

I made a patch from an idea I posted in another thread. (´・ω・`)
Quote from: Ranran on November 01, 2020, 04:51:06 AMWhat I came up with the idea is adding hide_all_window to the simple tool.
This is similar to the ability to display the desktop in windows. It hides all windows. But in simutrans the title bar remains.
This action calls open_all_windows if all windows are hidden and conversely opens all windows.
The contents are as written there.
This is more convenient when used in combination with the previously submitted lock the window feature. (Especially the title bar transparency)
The rollup function is a very useful function. I love it. These two will enhance the usefulness of the rollup feature.

This feature uses simple_tool number 37.

simple_tool[37]=,F5


Demo:

Just press the key once to roll up all dialogs. Press it again to open all windows.
Personally, I'll be using this feature more often than backspace.

The patch is here, but I'm sorry I've only tested it with extended. The demo image is also extended. However, I hope you like this. (´・ω・`)

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

prissi

I think this tool is a very useful tool. We are running out of hotkeys. Maybe I should assign useless keys like scroll lock to this action on PCs or F12 or so ...

THLeaderH


Ranran(retired)

Laptops may not have Scroll Lock on the keyboard layout.
I don't know which key is intuitively appropriate. In the example of windows, it is [windows key] + [D key].
Since F1 is the help, I was wondering if I could assign a shortcut key for the F2 and later keys to each gadget in the title bar.
ひめしという日本人が開発者達の助言を無視して自分好みの機能をextendedに"強引に"実装し、
コードをぐちゃぐちゃにしてメンテナンスを困難にし(とりわけ道路と建物関連)、
挙句にバグを大量に埋め込み、それを知らんぷりして放置し(隠居するなどと言って)別のところに逃げ隠れて自分のフォーク(OTRP)は開発を続けている
その事実と彼の無責任さに日本人プレイヤーは目を向けるべき。らんらんはそれでやる気をなくした(´・ω・`)
他人の振り見て我が振り直せ。ひめしのようにならないために、らんらんが生み出したバグや問題は自分で修正しなくちゃね(´・ω・`)

prissi


Ranran(retired)

Thanks for the integration.

Quote from: prissi on November 12, 2020, 12:24:32 AMMaybe I should assign useless keys like scroll lock to this action on PCs or F12 or so ...
Did you decide not to assign it to a unique key?
ひめしという日本人が開発者達の助言を無視して自分好みの機能をextendedに"強引に"実装し、
コードをぐちゃぐちゃにしてメンテナンスを困難にし(とりわけ道路と建物関連)、
挙句にバグを大量に埋め込み、それを知らんぷりして放置し(隠居するなどと言って)別のところに逃げ隠れて自分のフォーク(OTRP)は開発を続けている
その事実と彼の無責任さに日本人プレイヤーは目を向けるべき。らんらんはそれでやる気をなくした(´・ω・`)
他人の振り見て我が振り直せ。ひめしのようにならないために、らんらんが生み出したバグや問題は自分で修正しなくちゃね(´・ω・`)

Mariculous

#6
Pak192.comic agreed on this tool being useful, so we'd like to assign a key to it.

We'd like to map this tool to either shift+backspace or shift+esc as it's some kind of "soft close all", thus the functionality is tied to the functionality of those keys.

I don't know how to map this key combination and I suspect it's not even possible at the moment.

Could anyone help us to get this working?

prissi

This would require code changes (as only the ASCII code is compared).

Mariculous

Well you suggested scroll lock or F12, which aren't ASCII too, so I assumed it might be possible.
Would this be a major code change?

prissi

#9
Adding modifier key will involve some change, but I would not call this major. The modifier keys are part of the event structur, they are just not taken care. And the function and some other keys are translated to simutrans keys, so for scroll lock one just would need to add a key binding there.

EDIT:
r9471  added SCROLLLOCK, DELETE, ESCAPE, and BACKSPACE as well as modifier "+" for shift (to get the plus key with additional comma seperated parameter use "++". Please not that backspace, escape and delete without modifier cannot be overlaid!