mirror of
https://github.com/geode-sdk/geode.git
synced 2024-11-27 01:45:35 -05:00
fix CCApplication member offsets
This commit is contained in:
parent
8a98f2d960
commit
7bcb6d75eb
3 changed files with 11 additions and 6 deletions
|
@ -97,7 +97,6 @@ class AppDelegate : cocos2d::CCApplication, cocos2d::CCSceneDelegate {
|
|||
void resumeSound() = win 0x3d4d0;
|
||||
void setupGLView() = win 0x3c950;
|
||||
|
||||
PAD = win 0x4;
|
||||
cocos2d::CCScene* m_runningScene;
|
||||
bool m_loadingFinished;
|
||||
// there's 0x18 more on Windows
|
||||
|
|
|
@ -67,11 +67,11 @@ public:
|
|||
return m_startupScriptFilename;
|
||||
}
|
||||
|
||||
protected:
|
||||
public:
|
||||
HINSTANCE m_hInstance;
|
||||
HACCEL m_hAccelTable;
|
||||
LARGE_INTEGER m_nAnimationInterval;
|
||||
PAD(4);
|
||||
PAD(8);
|
||||
std::string m_resourceRootPath;
|
||||
std::string m_startupScriptFilename;
|
||||
void* m_pUnknown;
|
||||
|
|
|
@ -132,16 +132,22 @@ void Notification::setTime(float time) {
|
|||
|
||||
void Notification::animateIn() {
|
||||
m_label->setOpacity(0);
|
||||
m_icon->setOpacity(0);
|
||||
if (m_icon) {
|
||||
m_icon->setOpacity(0);
|
||||
}
|
||||
m_bg->setOpacity(0);
|
||||
m_label->runAction(CCFadeTo::create(NOTIFICATION_FADEIN, 255));
|
||||
m_icon->runAction(CCFadeTo::create(NOTIFICATION_FADEIN, 255));
|
||||
if (m_icon) {
|
||||
m_icon->runAction(CCFadeTo::create(NOTIFICATION_FADEIN, 255));
|
||||
}
|
||||
m_bg->runAction(CCFadeTo::create(NOTIFICATION_FADEIN, 150));
|
||||
}
|
||||
|
||||
void Notification::animateOut() {
|
||||
m_label->runAction(CCFadeTo::create(NOTIFICATION_FADEOUT, 0));
|
||||
m_icon->runAction(CCFadeTo::create(NOTIFICATION_FADEOUT, 0));
|
||||
if (m_icon) {
|
||||
m_icon->runAction(CCFadeTo::create(NOTIFICATION_FADEOUT, 0));
|
||||
}
|
||||
m_bg->runAction(CCFadeTo::create(NOTIFICATION_FADEOUT, 0));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue