1
0
mirror of https://github.com/OpenTTD/OpenTTD synced 2026-01-19 10:22:39 +01:00

Codechange: replace SetDataTip(STR_ with SetStringTip(STR_

This commit is contained in:
Rubidium
2025-01-02 11:28:18 +01:00
committed by rubidium42
parent 7d8bbd4669
commit 4bf36e3fa6
58 changed files with 899 additions and 899 deletions

View File

@@ -2674,28 +2674,28 @@ NWidgetLeaf::NWidgetLeaf(WidgetType tp, Colours colour, WidgetID index, uint32_t
case WWT_STICKYBOX:
this->SetFill(0, 0);
this->SetMinimalSize(WidgetDimensions::WD_STICKYBOX_WIDTH, WidgetDimensions::WD_CAPTION_HEIGHT);
this->SetDataTip(STR_NULL, STR_TOOLTIP_STICKY);
this->SetStringTip(STR_NULL, STR_TOOLTIP_STICKY);
this->SetAspect(this->min_x, this->min_y);
break;
case WWT_SHADEBOX:
this->SetFill(0, 0);
this->SetMinimalSize(WidgetDimensions::WD_SHADEBOX_WIDTH, WidgetDimensions::WD_CAPTION_HEIGHT);
this->SetDataTip(STR_NULL, STR_TOOLTIP_SHADE);
this->SetStringTip(STR_NULL, STR_TOOLTIP_SHADE);
this->SetAspect(this->min_x, this->min_y);
break;
case WWT_DEBUGBOX:
this->SetFill(0, 0);
this->SetMinimalSize(WidgetDimensions::WD_DEBUGBOX_WIDTH, WidgetDimensions::WD_CAPTION_HEIGHT);
this->SetDataTip(STR_NULL, STR_TOOLTIP_DEBUG);
this->SetStringTip(STR_NULL, STR_TOOLTIP_DEBUG);
this->SetAspect(this->min_x, this->min_y);
break;
case WWT_DEFSIZEBOX:
this->SetFill(0, 0);
this->SetMinimalSize(WidgetDimensions::WD_DEFSIZEBOX_WIDTH, WidgetDimensions::WD_CAPTION_HEIGHT);
this->SetDataTip(STR_NULL, STR_TOOLTIP_DEFSIZE);
this->SetStringTip(STR_NULL, STR_TOOLTIP_DEFSIZE);
this->SetAspect(this->min_x, this->min_y);
break;
@@ -2708,7 +2708,7 @@ NWidgetLeaf::NWidgetLeaf(WidgetType tp, Colours colour, WidgetID index, uint32_t
case WWT_CLOSEBOX:
this->SetFill(0, 0);
this->SetMinimalSize(WidgetDimensions::WD_CLOSEBOX_WIDTH, WidgetDimensions::WD_CAPTION_HEIGHT);
this->SetDataTip(STR_NULL, STR_TOOLTIP_CLOSE_WINDOW);
this->SetStringTip(STR_NULL, STR_TOOLTIP_CLOSE_WINDOW);
this->SetAspect(this->min_x, this->min_y);
break;