mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-16 00:12:51 +00:00
(svn r17889) -Feature: double click on a item in the refit list refits without the need to click on the refit button
This commit is contained in:
parent
90f7fcb3ca
commit
fdde27ff0a
@ -372,6 +372,11 @@ struct RefitWindow : public Window {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
virtual void OnDoubleClick(Point pt, int widget)
|
||||||
|
{
|
||||||
|
if (widget == VRW_MATRIX) this->OnClick(pt, VRW_REFITBUTTON);
|
||||||
|
}
|
||||||
|
|
||||||
virtual void OnClick(Point pt, int widget)
|
virtual void OnClick(Point pt, int widget)
|
||||||
{
|
{
|
||||||
switch (widget) {
|
switch (widget) {
|
||||||
|
Loading…
Reference in New Issue
Block a user