mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-09-01 02:49:10 +00:00
Codechange: use SetDParam and CopyOutDParam for tooltips
This commit is contained in:
@@ -1849,10 +1849,10 @@ public:
|
||||
|
||||
if (IsInsideMM(pt.x, player_icon_x, player_icon_x + d2.width)) {
|
||||
if (index == this->player_self_index) {
|
||||
GuiShowTooltips(this, STR_NETWORK_CLIENT_LIST_PLAYER_ICON_SELF_TOOLTIP, 0, nullptr, close_cond);
|
||||
GuiShowTooltips(this, STR_NETWORK_CLIENT_LIST_PLAYER_ICON_SELF_TOOLTIP, close_cond);
|
||||
return true;
|
||||
} else if (index == this->player_host_index) {
|
||||
GuiShowTooltips(this, STR_NETWORK_CLIENT_LIST_PLAYER_ICON_HOST_TOOLTIP, 0, nullptr, close_cond);
|
||||
GuiShowTooltips(this, STR_NETWORK_CLIENT_LIST_PLAYER_ICON_HOST_TOOLTIP, close_cond);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
@@ -1860,7 +1860,7 @@ public:
|
||||
ButtonCommon *button = this->GetButtonAtPoint(pt);
|
||||
if (button == nullptr) return false;
|
||||
|
||||
GuiShowTooltips(this, button->tooltip, 0, nullptr, close_cond);
|
||||
GuiShowTooltips(this, button->tooltip, close_cond);
|
||||
return true;
|
||||
};
|
||||
}
|
||||
|
Reference in New Issue
Block a user