-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f4e253b
commit fbed59e
Showing
43 changed files
with
11 additions
and
2,270 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,5 @@ | ||
#include <Geode/Geode.hpp> | ||
#include "ui/hooks/MenuLayer.h" | ||
#include "ui/hooks/LoadingLayer.h" | ||
#include "ui/hooks/CreatorLayer.h" | ||
#include "ui/hooks/CCDirector.h" | ||
#include "ui/hooks/CCMenuItemSpriteExtra.h" | ||
#include "ui/hooks/CCMenuItemToggler.h" | ||
#include "ui/hooks/FLAlertLayer.h" | ||
#include "ui/hooks/PauseLayer.h" | ||
#include "ui/hooks/PlayLayer.h" | ||
#include "ui/hooks/GJDropDownLayer.h" | ||
#include "ui/hooks/CCMenuItemToggler.h" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,11 @@ | ||
#pragma once | ||
|
||
#include <Geode/Geode.hpp> | ||
#include <Geode/modify/CCDirector.hpp> | ||
#include <Geode/modify/LoadingLayer.hpp> | ||
|
||
class $modify(MyCCDirector, CCDirector){ | ||
|
||
bool replaceScene(CCScene *pScene){ | ||
|
||
if (!GlobalVars::getSharedInstance()->isInitialLaunch){ | ||
return CCDirector::replaceScene(pScene); | ||
} | ||
else { | ||
CCScene* currentScene = CCScene::get(); | ||
CCLayer* child = typeinfo_cast<CCLayer*>(currentScene->getChildren()->objectAtIndex(0)); | ||
|
||
LoadingLayer* loadingLayer = typeinfo_cast<LoadingLayer*>(child); | ||
|
||
if (loadingLayer) { | ||
MyLoadingLayer* myLoadingLayer = static_cast<MyLoadingLayer*>(child); | ||
if (GlobalVars::getSharedInstance()->isInitialLaunch){ | ||
myLoadingLayer->scheduleOnce(schedule_selector(MyLoadingLayer::doFadeOut), 0.05f); | ||
} | ||
else { | ||
GlobalVars::getSharedInstance()->isInitialLaunch = false; | ||
return CCDirector::replaceScene(pScene); | ||
} | ||
} | ||
} | ||
return true; | ||
return CCDirector::replaceScene(pScene); | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.