Select last tool for waterways and terraform toolbars
This commit is contained in:
@@ -293,6 +293,16 @@ struct TerraformToolbarWindow : Window {
|
||||
ResetObjectToPlace();
|
||||
}
|
||||
|
||||
virtual void SelectLastTool()
|
||||
{
|
||||
// User misplaced something - activate last selected tool again
|
||||
if (this->last_user_action == WIDGET_LIST_END)
|
||||
return;
|
||||
Point dummy = {0, 0};
|
||||
this->RaiseWidget(this->last_user_action);
|
||||
this->OnClick(dummy, this->last_user_action, 0);
|
||||
}
|
||||
|
||||
static HotkeyList hotkeys;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user