Amend gui's to work with touchscreen controls.
This commit is contained in:
@@ -18,6 +18,7 @@
|
||||
#include "command_func.h"
|
||||
#include "sound_func.h"
|
||||
#include "tree_map.h"
|
||||
#include "window_func.h"
|
||||
|
||||
#include "widgets/tree_widget.h"
|
||||
|
||||
@@ -58,6 +59,11 @@ public:
|
||||
ResetObjectToPlace();
|
||||
}
|
||||
|
||||
~BuildTreesWindow()
|
||||
{
|
||||
if (_thd.GetCallbackWnd() == this) this->OnPlaceObjectAbort();
|
||||
}
|
||||
|
||||
/**
|
||||
* Calculate the maximum size of all tree sprites
|
||||
* @return Dimension of the largest tree sprite
|
||||
@@ -171,6 +177,8 @@ public:
|
||||
virtual void OnPlaceObjectAbort()
|
||||
{
|
||||
this->RaiseButtons();
|
||||
|
||||
ResetObjectToPlace();
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user