@@ -133,13 +133,12 @@ struct BuildDocksToolbarWindow : Window
DTW_BUOY,
WIDGET_LIST_END);
}
virtual void OnClick(Point pt, int widget, int click_count)
{
this->last_clicked_widget = (DockToolbarWidgets)widget;
switch (widget) {
case DTW_CANAL: // Build canal button
HandlePlacePushButton(this, DTW_CANAL, SPR_CURSOR_CANAL, HT_RECT);
break;
case DTW_LOCK: // Build lock button
@@ -171,14 +170,15 @@ struct BuildDocksToolbarWindow : Window
case DTW_BUILD_AQUEDUCT: // Build aqueduct button
HandlePlacePushButton(this, DTW_BUILD_AQUEDUCT, SPR_CURSOR_AQUEDUCT, HT_SPECIAL);
default: break;
default: return;
virtual EventState OnKeyPress(uint16 key, uint16 keycode)
int num = CheckHotkeyMatch(dockstoolbar_hotkeys, keycode, this);
if (num == -1) return ES_NOT_HANDLED;
Status change: