From 78676962a82c1400e4e6d20316857224e1ebc7e7 Mon Sep 17 00:00:00 2001 From: TheSillyDoggo Date: Sat, 21 Sep 2024 13:37:20 +1000 Subject: [PATCH] mrrow --- src/Client/AndroidBall.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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)