Moved UIRoutines call order. Call FinalizeChanges. Fixed UI Button Events. #359
|
@ -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