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

@@ -158,6 +158,7 @@ struct TerraformToolbarWindow : Window {
~TerraformToolbarWindow()
{
if (_thd.GetCallbackWnd() == this) this->OnPlaceObjectAbort();
}
virtual void OnInit()
@@ -287,6 +288,7 @@ struct TerraformToolbarWindow : Window {
{
DeleteWindowById(WC_BUILD_OBJECT, 0);
this->RaiseButtons();
ResetObjectToPlace();
}
static HotkeyList hotkeys;