Fix tooltip string parameters, change function signatures to match upstream

This commit is contained in:
Jonathan G Rennison
2023-11-17 17:26:57 +00:00
parent 9ceef09e9c
commit c76dc937e3
20 changed files with 96 additions and 110 deletions

View File

@@ -567,14 +567,14 @@ struct CompanyFinancesWindow : Window {
{
switch (widget) {
case WID_CF_INCREASE_LOAN: {
uint64 arg = STR_FINANCES_BORROW_TOOLTIP;
GuiShowTooltips(this, STR_FINANCES_BORROW_TOOLTIP_EXTRA, 1, &arg, close_cond);
SetDParam(0, STR_FINANCES_BORROW_TOOLTIP);
GuiShowTooltips(this, STR_FINANCES_BORROW_TOOLTIP_EXTRA, close_cond, 1);
return true;
}
case WID_CF_REPAY_LOAN: {
uint64 arg = STR_FINANCES_REPAY_TOOLTIP;
GuiShowTooltips(this, STR_FINANCES_REPAY_TOOLTIP_EXTRA, 1, &arg, close_cond);
SetDParam(0, STR_FINANCES_REPAY_TOOLTIP);
GuiShowTooltips(this, STR_FINANCES_REPAY_TOOLTIP_EXTRA, close_cond, 1);
return true;
}