summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-10-27 19:22:07 +0000
committerrubidium <rubidium@openttd.org>2009-10-27 19:22:07 +0000
commit2ef0746007bc4b60e885db4ef0cf9ab7615be7b7 (patch)
tree5e6d00ab352f932a16bfa0b0c55d61906c813145
parent8a6ddc8706cc3ab9cf278a21d0a9cd3b7c77503f (diff)
downloadopenttd-2ef0746007bc4b60e885db4ef0cf9ab7615be7b7.tar.xz
(svn r17890) -Feature: double clicking on a NewGRF opens the parameters window
-rw-r--r--src/newgrf_gui.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/newgrf_gui.cpp b/src/newgrf_gui.cpp
index 2815599b1..1084e978d 100644
--- a/src/newgrf_gui.cpp
+++ b/src/newgrf_gui.cpp
@@ -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) {