diff options
author | frosch <frosch@openttd.org> | 2013-05-26 19:25:01 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2013-05-26 19:25:01 +0000 |
commit | 8157a8afd814cb24aaaa4c725817c864e0c583c6 (patch) | |
tree | f81c823727cb75370437179afd5ba452055f6512 /src/window_gui.h | |
parent | 8c4714ad9099308691059f0a7a3cd6bbd33ce538 (diff) | |
download | openttd-8157a8afd814cb24aaaa4c725817c864e0c583c6.tar.xz |
(svn r25290) -Add: Assign string names to notable windows.
Diffstat (limited to 'src/window_gui.h')
-rw-r--r-- | src/window_gui.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/window_gui.h b/src/window_gui.h index c21475442..59df38052 100644 --- a/src/window_gui.h +++ b/src/window_gui.h @@ -165,7 +165,7 @@ Point GetToolbarAlignedWindowPosition(int window_width); */ struct WindowDesc : ZeroedMemoryAllocator { - WindowDesc(WindowPosition default_pos, int16 def_width, int16 def_height, + WindowDesc(WindowPosition default_pos, const char *ini_key, int16 def_width, int16 def_height, WindowClass window_class, WindowClass parent_class, uint32 flags, const NWidgetPart *nwid_parts, int16 nwid_length); @@ -176,6 +176,7 @@ struct WindowDesc : ZeroedMemoryAllocator { int16 default_height; ///< Preferred initial height of the window. WindowClass cls; ///< Class of the window, @see WindowClass. WindowClass parent_cls; ///< Class of the parent window. @see WindowClass + const char *ini_key; ///< Key to store window defaults in openttd.cfg. \c NULL if nothing shall be stored. uint32 flags; ///< Flags. @see WindowDefaultFlag const NWidgetPart *nwid_parts; ///< Nested widget parts describing the window. int16 nwid_length; ///< Length of the #nwid_parts array. |