(svn r20120) -Feature [FS#3913]: Tooltips are shown by hovering the mouse over a widget instead of by right clicking on it.

This commit is contained in:
terkhen
2010-07-11 10:58:55 +00:00
parent 086a424b7a
commit 840f09ddf0
3 changed files with 22 additions and 9 deletions

View File

@@ -842,10 +842,10 @@ struct DepotWindow : Window {
uint64 args[2];
args[0] = (whole_chain ? num : v->engine_type);
args[1] = (uint64)(size_t)details;
GuiShowTooltips(whole_chain ? STR_DEPOT_VEHICLE_TOOLTIP_CHAIN : STR_DEPOT_VEHICLE_TOOLTIP, 2, args);
GuiShowTooltips(whole_chain ? STR_DEPOT_VEHICLE_TOOLTIP_CHAIN : STR_DEPOT_VEHICLE_TOOLTIP, 2, args, TCC_RIGHT_CLICK);
} else {
/* Show tooltip help */
GuiShowTooltips(STR_DEPOT_TRAIN_LIST_TOOLTIP + this->type);
GuiShowTooltips(STR_DEPOT_TRAIN_LIST_TOOLTIP + this->type, TCC_RIGHT_CLICK);
}
}