summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordarkvater <darkvater@openttd.org>2004-12-23 11:36:22 +0000
committerdarkvater <darkvater@openttd.org>2004-12-23 11:36:22 +0000
commitb4c80052feeef465c98d68f5c2fd22ad2071f2de (patch)
tree5747b4fdf9cbb5ca82dba310146e228e61950a3f
parent79bbc37daa0898023d9278fbe3824f6ecf47cf79 (diff)
downloadopenttd-b4c80052feeef465c98d68f5c2fd22ad2071f2de.tar.xz
(svn r1243) -Fix: Scenario road-building toolbar also stickified. Thx for the notice teeone
-rw-r--r--road_gui.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/road_gui.c b/road_gui.c
index ccf6c3310..ef43bf060 100644
--- a/road_gui.c
+++ b/road_gui.c
@@ -310,7 +310,8 @@ void ShowBuildRoadToolbar()
static const Widget _build_road_scen_widgets[] = {
{ WWT_TEXTBTN, 7, 0, 10, 0, 13, STR_00C5, STR_018B_CLOSE_WINDOW},
-{ WWT_CAPTION, 7, 11, 173, 0, 13, STR_1802_ROAD_CONSTRUCTION, STR_018C_WINDOW_TITLE_DRAG_THIS},
+{ WWT_CAPTION, 7, 11, 161, 0, 13, STR_1802_ROAD_CONSTRUCTION, STR_018C_WINDOW_TITLE_DRAG_THIS},
+{ WWT_STICKYBOX, 7, 162, 173, 0, 13, 0x0, STR_STICKY_BUTTON},
{ WWT_IMGBTN, 7, 0, 21, 14, 35, 0x51D, STR_180B_BUILD_ROAD_SECTION},
{ WWT_IMGBTN, 7, 22, 43, 14, 35, 0x51E, STR_180B_BUILD_ROAD_SECTION},
@@ -328,7 +329,7 @@ static const Widget _build_road_scen_widgets[] = {
static const WindowDesc _build_road_scen_desc = {
-1, -1, 174, 36,
WC_SCEN_BUILD_ROAD,0,
- WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET,
+ WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_STICKY_BUTTON,
_build_road_scen_widgets,
BuildRoadToolbWndProc
};