1
0
Fork 0

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

release/1.0
rubidium 2009-10-27 19:22:07 +00:00
parent 8a6ddc8706
commit 2ef0746007
1 changed files with 5 additions and 0 deletions

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) virtual void OnClick(Point pt, int widget)
{ {
switch (widget) { switch (widget) {