|
9 | 9 | #include "../Utils/RealtimeAction.hpp" |
10 | 10 | #include "../Localisation/LocalisationManager.hpp" |
11 | 11 | #include "BetterInputNode.hpp" |
12 | | -#include "BlurLayer.hpp" |
| 12 | + |
13 | 13 | #include "FloatingButton/FloatingUIManager.hpp" |
14 | 14 | #include "EasyBG.hpp" |
| 15 | +#include <BlurAPI.hpp> |
15 | 16 |
|
16 | 17 | bool AndroidUI::setup() |
17 | 18 | { |
18 | | - this->addChild(CCBlurLayer::create(), -3); |
| 19 | + instance = this; |
19 | 20 | this->scheduleUpdate(); |
20 | 21 |
|
21 | 22 | rt = CCRenderTexture::create(getContentWidth(), getContentHeight()); |
@@ -128,7 +129,6 @@ void AndroidUI::populateTabs() |
128 | 129 | tabsMenu->setAnchorPoint(ccp(0, 0.5f)); |
129 | 130 | tabsMenu->ignoreAnchorPointForPosition(false); |
130 | 131 | tabsMenu->setLayout(ColumnLayout::create()->setAxisReverse(true)->setAxisAlignment(AxisAlignment::End)->setCrossAxisOverflow(true)->setAutoScale(false)->setGap(2.5f)); |
131 | | - tabsMenu->getLayout()->ignoreInvisibleChildren(true); |
132 | 132 |
|
133 | 133 | m_mainLayer->addChildAtPosition(bg, Anchor::Left, ccp(10, 0)); |
134 | 134 | m_mainLayer->addChildAtPosition(tabsMenu, Anchor::Left, ccp(10 + 2.5f, 0)); |
@@ -251,7 +251,6 @@ AndroidUI* AndroidUI::create() |
251 | 251 | if (pRet && pRet->initAnchored(475.f, 280.f)) |
252 | 252 | { |
253 | 253 | PlatformToolbox::showCursor(); |
254 | | - instance = pRet; |
255 | 254 | pRet->m_noElasticity = true; |
256 | 255 |
|
257 | 256 | pRet->autorelease(); |
@@ -307,7 +306,7 @@ void AndroidUI::runAnimation(MenuAnimation anim) |
307 | 306 | bottomRight->setOpacity(150); |
308 | 307 | this->setOpacity(150); |
309 | 308 |
|
310 | | - if (BlurMenuBG::get()->getRealEnabled() && anim == MenuAnimation::FadeIn) |
| 309 | + if (/*BlurMenuBG::get()->getRealEnabled() && BlurAPI::isBlurAPIEnabled() && */anim == MenuAnimation::FadeIn) |
311 | 310 | anim = MenuAnimation::None; |
312 | 311 |
|
313 | 312 | switch (anim) |
@@ -400,7 +399,7 @@ void AndroidUI::close() |
400 | 399 |
|
401 | 400 | void AndroidUI::keyDown(cocos2d::enumKeyCodes key, double timestamp) |
402 | 401 | { |
403 | | - geode::Popup<>::keyDown(key, 0); |
| 402 | + PopupBase::keyDown(key, 0); |
404 | 403 |
|
405 | 404 | auto old = selectedCategory; |
406 | 405 |
|
@@ -437,13 +436,13 @@ void AndroidUI::visit() |
437 | 436 | // for an animation i was making, but i couldnt get clipping to work right |
438 | 437 |
|
439 | 438 | if (drawOpacity->getOpacity() == 255) |
440 | | - return geode::Popup<>::visit(); |
| 439 | + return PopupBase::visit(); |
441 | 440 |
|
442 | 441 | auto op = getOpacity(); |
443 | 442 | this->setOpacity(0); |
444 | 443 |
|
445 | 444 | rt->beginWithClear(0, 0, 0, op / 255.0f); |
446 | | - geode::Popup<>::visit(); |
| 445 | + PopupBase::visit(); |
447 | 446 | rt->end(); |
448 | 447 |
|
449 | 448 | this->setOpacity(op); |
|
0 commit comments