diff --git a/src/Client/AndroidBall.cpp b/src/Client/AndroidBall.cpp index ab5f1b4..536de08 100644 --- a/src/Client/AndroidBall.cpp +++ b/src/Client/AndroidBall.cpp @@ -46,7 +46,14 @@ bool AndroidBall::init() void AndroidBall::onOpenMenu() { - AndroidUI::addToScene(); + if (Client::get()->useImGuiUI()) + { + Client::get()->toggleWindowVisibility(WindowTransitionType::Vertical); + } + else + { + AndroidUI::addToScene(); + } } bool AndroidBall::_ccTouchBegan(cocos2d::CCTouch* touch, cocos2d::CCEvent* event)