mirror of
https://github.com/geode-sdk/geode.git
synced 2024-11-27 09:55:34 -05:00
fix Notification not being at the top of the scene tree
This commit is contained in:
parent
7bcb6d75eb
commit
475499407f
1 changed files with 2 additions and 1 deletions
|
@ -166,7 +166,8 @@ void Notification::show() {
|
||||||
if (!this->getParent()) {
|
if (!this->getParent()) {
|
||||||
auto winSize = CCDirector::get()->getWinSize();
|
auto winSize = CCDirector::get()->getWinSize();
|
||||||
this->setPosition(winSize.width / 2, winSize.height / 4);
|
this->setPosition(winSize.width / 2, winSize.height / 4);
|
||||||
CCDirector::get()->getRunningScene()->addChild(this);
|
this->setZOrder(CCScene::get()->getHighestChildZ() + 100);
|
||||||
|
CCScene::get()->addChild(this);
|
||||||
}
|
}
|
||||||
SceneManager::get()->keepAcrossScenes(this);
|
SceneManager::get()->keepAcrossScenes(this);
|
||||||
m_showing = true;
|
m_showing = true;
|
||||||
|
|
Loading…
Reference in a new issue