construction and landscape window sticky by default
Moderator: OpenTTD Developers
construction and landscape window sticky by default
Closing all windows but the stickies by pressing del would be useful if the build tools would keep their stickyness. Sadly switching between track types, roads, etc. clears the sticky status. This patch solves that issue by providing an interface switch to change the default stickyness of said windows.
- Attachments
-
- sticky_by_default.patch
- (3.12 KiB) Downloaded 107 times
Re: construction and landscape window sticky by default
can i ask what happens, when you have a railway, an a monailrail, construction windows open, and you hit the autorail shortcut key ?
which on will you be building ?
which on will you be building ?
Re: construction and landscape window sticky by default
in default OpenTTD you can't have two different construction windows open (in your case railway&monorail), since opening the second one will close the first one
and judging from the text (i didn't test it) this patch does not change this behavior.
stickiness means the little icon on the top right end of a window, meaning it will not close if you hit DEL.
and judging from the text (i didn't test it) this patch does not change this behavior.
stickiness means the little icon on the top right end of a window, meaning it will not close if you hit DEL.
Re: construction and landscape window sticky by default
- start a game0004tom wrote:can i ask what happens, when you have a railway, an a monailrail, construction windows open, and you hit the autorail shortcut key ?
which on will you be building ?
- press shift-f7
- click the the sticky icon in the upper right corner of that window
- press f4
- press del
the railroad construction toolbar will stay and the map will close
- press shift-f6
- press shift-f7
- press f4
- press del
All windows will be hidden, even the railroad construction toolbar. The whole idea of the stickyness of windows is that they stay until the user tells the window otherwise.
The right way to do it would be to teach the window to remeber it's stickyness, even when it got closed. Sadly windows get destroyed when they get closed and the sticky bit with it. There would be need for a lot infrastructure to change that behaviour.
The really right way would be to give the console a bind function and the ability to change the stickyness of a window. One would be able to do the following.
Code: Select all
bind shift-f7 openwindow railroadconstruction; windowsticky railroadconstruction true
For now the way I did it has to do to make the del key actually useful.
Re: construction and landscape window sticky by default
so what your saying is, that this paych will save a number of stickied windows, and open all those windows, with a touch of a key ?
if i'm wrong, and going by the title of this thead, you still have yet to answer my question
if i'm wrong, and going by the title of this thead, you still have yet to answer my question
0004tom wrote:can i ask what happens, when you have a railway, an a monailrail, construction windows open, and you hit the autorail shortcut key ?
which on will you be building ?
Re: construction and landscape window sticky by default
I think it's time for ,0004tom wrote:so what your saying is, that this paych will save a number of stickied windows, and open all those windows, with a touch of a key ?
if i'm wrong, and going by the title of this thead, you still have yet to answer my question
0004tom wrote:can i ask what happens, when you have a railway, an a monailrail, construction windows open, and you hit the autorail shortcut key ?
which on will you be building ?
Re: construction and landscape window sticky by default
*boggle*
"A picture is worth a thousand words" indeed.
"A picture is worth a thousand words" indeed.
To get a good answer, ask a Smart Question. Similarly, if you want a bug fixed, write a Useful Bug Report. No TTDPatch crashlog? Then follow directions.
Projects: NFORenum (download) | PlaneSet (Website) | grfcodec (download) | grfdebug.log parser
Projects: NFORenum (download) | PlaneSet (Website) | grfcodec (download) | grfdebug.log parser
Who is online
Users browsing this forum: No registered users and 7 guests