Added UI Element and other QoL fixes for scripting #329

Merged
Pycorax merged 7 commits from SP3-6-c-scripting into main 2023-02-02 10:57:20 +08:00
1 changed files with 1 additions and 1 deletions
Showing only changes of commit 0b0590180d - Show all commits

View File

@ -365,7 +365,7 @@ namespace SHADE
SHEventHandle SHScriptEngine::onUIElementClicked(SHEventPtr eventPtr)
{
auto eventData = reinterpret_cast<const SHEventSpec<SHButtonClickEvent>*>(eventPtr.get());
csUIElementOnRemoved(eventData->data->EID);
csUIElementOnClicked(eventData->data->EID);
return eventData->handle;
}