Moved UIRoutines call order. Call FinalizeChanges. Fixed UI Button Events. #359

Merged
maverickdgg merged 8 commits from SP3-20-UI-System into main 2023-02-23 14:00:51 +08:00
1 changed files with 1 additions and 1 deletions
Showing only changes of commit 64be53bad3 - Show all commits

View File

@ -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;
} }