mirror of https://github.com/OpenTTD/OpenTTD
(svn r17890) -Feature: double clicking on a NewGRF opens the parameters window
parent
8a6ddc8706
commit
2ef0746007
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue