diff --git a/src/hooks/EditorUI.cpp b/src/hooks/EditorUI.cpp index edafb8d..3a0cd05 100644 --- a/src/hooks/EditorUI.cpp +++ b/src/hooks/EditorUI.cpp @@ -74,4 +74,12 @@ struct EditorUIHook : Modify { } return EditorUI::ccTouchEnded(touch, event); } + + void showUI(bool show) { + EditorUI::showUI(show); + + auto alliumButton = static_cast(this->getChildByIDRecursive("allium-button"_spr)); + alliumButton->setEnabled(show); + alliumButton->setVisible(show); + } }; \ No newline at end of file