summaryrefslogtreecommitdiff
path: root/src/window_gui.h
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2013-05-26 19:27:44 +0000
committerfrosch <frosch@openttd.org>2013-05-26 19:27:44 +0000
commited851034f50d4a6614c40bdc45bd651fc1cf0a74 (patch)
treea833df0c25b4d30bea3ef39445668841808ba922 /src/window_gui.h
parent23ba42b66ccf915230cab163cdeca19db6e95f76 (diff)
downloadopenttd-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.h4
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.