Static variables in scripts are now reset when leaving play mode #351
|
@ -365,7 +365,7 @@ namespace SHADE
|
||||||
SHEventHandle SHScriptEngine::onUIElementClicked(SHEventPtr eventPtr)
|
SHEventHandle SHScriptEngine::onUIElementClicked(SHEventPtr eventPtr)
|
||||||
{
|
{
|
||||||
auto eventData = reinterpret_cast<const SHEventSpec<SHButtonClickEvent>*>(eventPtr.get());
|
auto eventData = reinterpret_cast<const SHEventSpec<SHButtonClickEvent>*>(eventPtr.get());
|
||||||
csUIElementOnRemoved(eventData->data->EID);
|
csUIElementOnClicked(eventData->data->EID);
|
||||||
return eventData->handle;
|
return eventData->handle;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue