Skip to content

Commit

Permalink
expose setDocument of UI
Browse files Browse the repository at this point in the history
  • Loading branch information
ShreeSinghi committed Sep 3, 2023
1 parent 5fb0034 commit 38014c2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions rootex/script/interpreter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -571,6 +571,7 @@ void LuaInterpreter::registerTypes()
sol::base_classes, sol::bases<Component>(),
"document", sol::property(&UIComponent::getDocument));
ui["getDocumentID"] = [](UIComponent* ui) { return ui->getDocument()->GetId(); };
ui["setDocument"] = &UIComponent::setDocument;
}
{
sol::usertype<AudioComponent> audioComponent = rootex.new_usertype<AudioComponent>(
Expand Down

0 comments on commit 38014c2

Please sign in to comment.