diff options
author | frosch <frosch@openttd.org> | 2013-05-26 19:27:44 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2013-05-26 19:27:44 +0000 |
commit | ed851034f50d4a6614c40bdc45bd651fc1cf0a74 (patch) | |
tree | a833df0c25b4d30bea3ef39445668841808ba922 /src/window_gui.h | |
parent | 23ba42b66ccf915230cab163cdeca19db6e95f76 (diff) | |
download | openttd-ed851034f50d4a6614c40bdc45bd651fc1cf0a74.tar.xz |
(svn r25292) -Feature: Save stickyness of windows when Ctrl+Clicking the sticky button.
Diffstat (limited to 'src/window_gui.h')
-rw-r--r-- | src/window_gui.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/window_gui.h b/src/window_gui.h index 918c3374a..45e0bad9f 100644 --- a/src/window_gui.h +++ b/src/window_gui.h @@ -181,6 +181,8 @@ struct WindowDesc : ZeroedMemoryAllocator { const NWidgetPart *nwid_parts; ///< Nested widget parts describing the window. int16 nwid_length; ///< Length of the #nwid_parts array. + bool pref_sticky; ///< Preferred stickyness. + static void LoadFromConfig(); static void SaveToConfig(); }; @@ -508,6 +510,8 @@ public: */ virtual void OnInit() { } + virtual void ApplyDefaults(); + /** * Compute the initial position of the window. * @param sm_width Smallest width of the window. |