mirror of
https://github.com/geode-sdk/geode.git
synced 2024-11-27 01:45:35 -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()) {
|
||||
auto winSize = CCDirector::get()->getWinSize();
|
||||
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);
|
||||
m_showing = true;
|
||||
|
|
Loading…
Reference in a new issue