Amend gui's to work with touchscreen controls.

This commit is contained in:
Juanjo
2013-06-24 20:32:29 +02:00
committed by pelya
parent d5669bb677
commit 96d3b0695c
5 changed files with 21 additions and 0 deletions

View File

@@ -77,6 +77,7 @@ struct BuildAirToolbarWindow : Window {
~BuildAirToolbarWindow()
{
if (_thd.GetCallbackWnd() == this) this->OnPlaceObjectAbort();
if (_settings_client.gui.link_terraform_toolbar) DeleteWindowById(WC_SCEN_LAND_GEN, 0, false);
}
@@ -141,6 +142,8 @@ struct BuildAirToolbarWindow : Window {
DeleteWindowById(WC_BUILD_STATION, TRANSPORT_AIR);
DeleteWindowById(WC_SELECT_STATION, 0);
ResetObjectToPlace();
}
static HotkeyList hotkeys;