mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-02 09:40:35 +00:00
(svn r14209) -Feature(tte): doubleclick to join selected server/company
This commit is contained in:
parent
8b926efae3
commit
3c5ab035d8
@ -530,6 +530,14 @@ public:
|
||||
}
|
||||
}
|
||||
|
||||
virtual void OnDoubleClick(Point pt, int widget)
|
||||
{
|
||||
if (widget == NGWW_MATRIX) {
|
||||
/* is the Join button enabled? */
|
||||
if (!this->IsWidgetDisabled(NGWW_JOIN)) this->OnClick(pt, NGWW_JOIN);
|
||||
}
|
||||
}
|
||||
|
||||
virtual void OnDropdownSelect(int widget, int index)
|
||||
{
|
||||
switch (widget) {
|
||||
@ -1211,6 +1219,14 @@ struct NetworkLobbyWindow : public Window {
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
virtual void OnDoubleClick(Point pt, int widget)
|
||||
{
|
||||
if (widget == NLWW_MATRIX) {
|
||||
/* is the Join button enabled? */
|
||||
if (!this->IsWidgetDisabled(NLWW_JOIN)) this->OnClick(pt, NLWW_JOIN);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
static const Widget _network_lobby_window_widgets[] = {
|
||||
|
Loading…
Reference in New Issue
Block a user