Skip to content

Commit 8be1501

Browse files
Layers
Co-Authored-By: Bohdan Yanov <[email protected]>
1 parent 15e5fff commit 8be1501

File tree

5 files changed

+64
-23
lines changed

5 files changed

+64
-23
lines changed

x32/jni/Android.mk

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ LOCAL_EXPORT_C_INCLUDES := $(MAIN_LOCAL_PATH) \
88
$(MAIN_LOCAL_PATH)/libs/cocos2dx/include \
99
$(MAIN_LOCAL_PATH)/libs/cocos2dx/platform \
1010
$(MAIN_LOCAL_PATH)/libs/cocos2dx/platform/android \
11-
$(MAIN_LOCAL_PATH)/libs/cocos2dx/kazmath/include
11+
$(MAIN_LOCAL_PATH)/libs/cocos2dx/kazmath/include \
12+
$(MAIN_LOCAL_PATH)/libs/gd
1213
LOCAL_SRC_FILES := ${MAIN_LOCAL_PATH}/include/libcocos2dcpp.so
1314
include $(PREBUILT_SHARED_LIBRARY)
1415

@@ -25,7 +26,8 @@ LOCAL_C_INCLUDES += $(MAIN_LOCAL_PATH) \
2526
$(MAIN_LOCAL_PATH)/libs/cocos2dx/include \
2627
$(MAIN_LOCAL_PATH)/libs/cocos2dx/platform \
2728
$(MAIN_LOCAL_PATH)/libs/cocos2dx/platform/android \
28-
$(MAIN_LOCAL_PATH)/libs/cocos2dx/kazmath/include
29+
$(MAIN_LOCAL_PATH)/libs/cocos2dx/kazmath/include \
30+
$(MAIN_LOCAL_PATH)/libs/gd
2931

3032
LOCAL_SRC_FILES := src/main.cpp \
3133
libs/hook/inlineHook.c \

x32/jni/libs/gd/CreatorLayer.h

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
#ifndef CREATORLAYER_H
2+
#define CREATORLAYER_H
3+
#include <cocos2d.h>
4+
5+
class CreatorLayer : public cocos2d::CCNode {
6+
public:
7+
static cocos2d::CCScene* scene();
8+
static cocos2d::CCLayer* create();
9+
void onTreasureRoom(cocos2d::CCObject* pSender);
10+
void onSecretVault(cocos2d::CCObject* pSender);
11+
void onChallenge(cocos2d::CCObject* pSender);
12+
void onWeeklyLevel(cocos2d::CCObject* pSender);
13+
void onGauntlets(cocos2d::CCObject* pSender);
14+
void onMapPacks(cocos2d::CCObject* pSender);
15+
void onFameLevels(cocos2d::CCObject* pSender);
16+
void onOnlineLevels(cocos2d::CCObject* pSender);
17+
void onLeaderboards(cocos2d::CCObject* pSender);
18+
void onSavedLevels(cocos2d::CCObject* pSender);
19+
void onMyLevels(cocos2d::CCObject* pSender);
20+
void onDailyLevel(cocos2d::CCObject* pSender);
21+
void onFeaturedLevels(cocos2d::CCObject* pSender);
22+
bool init();
23+
};
24+
#endif

x32/jni/libs/gd/MenuLayer.h

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
#ifndef MENULAYER_H
2+
#define MENULAYER_H
3+
#include <cocos2d.h>
4+
5+
class MenuLayer : public cocos2d::CCNode {
6+
public:
7+
void endGame();
8+
void onYouTube(cocos2d::CCObject*);
9+
void onTwitter(cocos2d::CCObject*);
10+
void onFacebook(cocos2d::CCObject*);
11+
void onRobTop(cocos2d::CCObject*);
12+
void onNewgrounds(cocos2d::CCObject*);
13+
void onStats(cocos2d::CCObject*);
14+
void onEveryplay(cocos2d::CCObject*);
15+
void syncPlatformAchievements(float);
16+
void onAchievements(cocos2d::CCObject*);
17+
void onMoreGames(cocos2d::CCObject*);
18+
void onDaily(cocos2d::CCObject*);
19+
void onMyProfile(cocos2d::CCObject*);
20+
static cocos2d::CCNode* node(void);
21+
static cocos2d::CCScene* scene(bool);
22+
void updateUserProfileButton(void);
23+
bool init();
24+
void onGameCenter(cocos2d::CCObject*);
25+
void openOptions(bool);
26+
void onOptionsInstant();
27+
void onOptions(cocos2d::CCObject*);
28+
void onQuit(cocos2d::CCObject*);
29+
void onGarage(cocos2d::CCObject*);
30+
void onCreator(cocos2d::CCObject*);
31+
void onPlay(cocos2d::CCObject*);
32+
};
33+
#endif

x32/jni/libs/gd/gd.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#include "CreatorLayer.h"
2+
#include "MenuLayer.h"

x32/jni/src/main.cpp

Lines changed: 1 addition & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -2,31 +2,11 @@
22
#include <cstdlib>
33
#include <dlfcn.h>
44
#include <cocos2d.h>
5+
#include <gd.h>
56
#include "libs/hook/inlineHook.h"
67

78
using namespace cocos2d;
89

9-
// OMg BLaCkteA
10-
class CreatorLayer : public CCLayer {
11-
public:
12-
static CCScene* scene();
13-
static CCLayer* create();
14-
void onTreasureRoom(CCObject* pSender);
15-
void onSecretVault(CCObject* pSender);
16-
void onChallenge(CCObject* pSender);
17-
void onWeeklyLevel(CCObject* pSender);
18-
void onGauntlets(CCObject* pSender);
19-
void onMapPacks(CCObject* pSender);
20-
void onFameLevels(CCObject* pSender);
21-
void onOnlineLevels(CCObject* pSender);
22-
void onLeaderboards(CCObject* pSender);
23-
void onSavedLevels(CCObject* pSender);
24-
void onMyLevels(CCObject* pSender);
25-
void onDailyLevel(CCObject* pSender);
26-
void onFeaturedLevels(CCObject* pSender);
27-
bool init();
28-
};
29-
3010
namespace h_menuLayer {
3111
void* (*o_init)(CCLayer*);
3212
void* init(CCLayer* self) {

0 commit comments

Comments
 (0)