mirror of
https://github.com/edubart/otclient.git
synced 2025-10-19 05:53:26 +02:00
sources are broken
This commit is contained in:
@@ -45,6 +45,7 @@ void UIElement::destroy()
|
||||
setVisible(false);
|
||||
setEnabled(false);
|
||||
|
||||
g_dispatcher.addTask(boost::bind(&UIContainer::removeChild, getParent(), asUIElement()));
|
||||
if(getParent()) {
|
||||
// schedule removal from parent
|
||||
g_dispatcher.addTask(boost::bind(&UIContainer::removeChild, getParent(), asUIElement()));
|
||||
|
@@ -86,6 +86,7 @@ public:
|
||||
virtual UIContainerPtr asUIContainer() { return UIContainerPtr(); }
|
||||
virtual const char *getScriptableName() const { return "UIElement"; }
|
||||
|
||||
void setOnDestroy(
|
||||
friend class UIContainer;
|
||||
|
||||
private:
|
||||
|
Reference in New Issue
Block a user