mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-02-02 20:34:41 +00:00
(svn r17890) -Feature: double clicking on a NewGRF opens the parameters window
This commit is contained in:
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)
|
||||
{
|
||||
switch (widget) {
|
||||
|
Loading…
Reference in New Issue
Block a user