From 38014c234b3a741010ea9ee40921f81d4976438b Mon Sep 17 00:00:00 2001 From: shree Date: Mon, 4 Sep 2023 00:41:39 +0530 Subject: [PATCH] expose setDocument of UI --- rootex/script/interpreter.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/rootex/script/interpreter.cpp b/rootex/script/interpreter.cpp index 392ca10d8..3d91e094e 100644 --- a/rootex/script/interpreter.cpp +++ b/rootex/script/interpreter.cpp @@ -571,6 +571,7 @@ void LuaInterpreter::registerTypes() sol::base_classes, sol::bases(), "document", sol::property(&UIComponent::getDocument)); ui["getDocumentID"] = [](UIComponent* ui) { return ui->getDocument()->GetId(); }; + ui["setDocument"] = &UIComponent::setDocument; } { sol::usertype audioComponent = rootex.new_usertype(