327 void ShowBuildRoadToolbar(void) |
327 void ShowBuildRoadToolbar(void) |
328 { |
328 { |
329 if (!IsValidPlayer(_current_player)) return; |
329 if (!IsValidPlayer(_current_player)) return; |
330 |
330 |
331 DeleteWindowById(WC_BUILD_TOOLBAR, 0); |
331 DeleteWindowById(WC_BUILD_TOOLBAR, 0); |
332 AllocateWindowDesc(&_build_road_desc); |
332 Window *w = AllocateWindowDesc(&_build_road_desc); |
333 if (_patches.link_terraform_toolbar) ShowTerraformToolbar(); |
333 if (_patches.link_terraform_toolbar) ShowTerraformToolbar(w); |
334 } |
334 } |
335 |
335 |
336 static const Widget _build_road_scen_widgets[] = { |
336 static const Widget _build_road_scen_widgets[] = { |
337 { WWT_CLOSEBOX, RESIZE_NONE, 7, 0, 10, 0, 13, STR_00C5, STR_018B_CLOSE_WINDOW}, |
337 { WWT_CLOSEBOX, RESIZE_NONE, 7, 0, 10, 0, 13, STR_00C5, STR_018B_CLOSE_WINDOW}, |
338 { WWT_CAPTION, RESIZE_NONE, 7, 11, 139, 0, 13, STR_1802_ROAD_CONSTRUCTION, STR_018C_WINDOW_TITLE_DRAG_THIS}, |
338 { WWT_CAPTION, RESIZE_NONE, 7, 11, 139, 0, 13, STR_1802_ROAD_CONSTRUCTION, STR_018C_WINDOW_TITLE_DRAG_THIS}, |