Fixed button events only working once
This commit is contained in:
parent
7292f11cdb
commit
64be53bad3
|
@ -372,7 +372,7 @@ namespace SHADE
|
||||||
SHEventHandle SHScriptEngine::onUIElementReleased(SHEventPtr eventPtr)
|
SHEventHandle SHScriptEngine::onUIElementReleased(SHEventPtr eventPtr)
|
||||||
{
|
{
|
||||||
auto eventData = reinterpret_cast<const SHEventSpec<SHButtonClickEvent>*>(eventPtr.get());
|
auto eventData = reinterpret_cast<const SHEventSpec<SHButtonClickEvent>*>(eventPtr.get());
|
||||||
csUIElementOnRemoved(eventData->data->EID);
|
csUIElementOnReleased(eventData->data->EID);
|
||||||
return eventData->handle;
|
return eventData->handle;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue