(svn r17890) -Feature: double clicking on a NewGRF opens the parameters window

This commit is contained in:
rubidium 2009-10-27 19:22:07 +00:00
parent 8a6ddc8706
commit 2ef0746007

View File

@ -685,6 +685,11 @@ struct NewGRFWindow : public Window {
}
}
virtual void OnDoubleClick(Point pt, int widget)
{
if (widget == SNGRFS_FILE_LIST) this->OnClick(pt, SNGRFS_SET_PARAMETERS);
}
virtual void OnClick(Point pt, int widget)
{
switch (widget) {