forked from mirror/OpenTTD
(svn r18966) -Codechange: Remove Window::OnDoubleClick() in favour of a parameter for OnClick().
This commit is contained in:
@@ -143,7 +143,7 @@ struct SignListWindow : Window, SignList {
|
||||
if (widget == SLW_CAPTION) SetDParam(0, this->vscroll.GetCount());
|
||||
}
|
||||
|
||||
virtual void OnClick(Point pt, int widget)
|
||||
virtual void OnClick(Point pt, int widget, int click_count)
|
||||
{
|
||||
if (widget == SLW_LIST) {
|
||||
uint id_v = (pt.y - this->GetWidget<NWidgetBase>(SLW_LIST)->pos_y - WD_FRAMERECT_TOP) / this->resize.step_height;
|
||||
@@ -328,7 +328,7 @@ struct SignWindow : QueryStringBaseWindow, SignList {
|
||||
if (!this->IsShaded()) this->DrawEditBox(QUERY_EDIT_SIGN_WIDGET_TEXT);
|
||||
}
|
||||
|
||||
virtual void OnClick(Point pt, int widget)
|
||||
virtual void OnClick(Point pt, int widget, int click_count)
|
||||
{
|
||||
switch (widget) {
|
||||
case QUERY_EDIT_SIGN_WIDGET_PREVIOUS:
|
||||
|
Reference in New Issue
Block a user