Skip to content

Commit

Permalink
Merge pull request #1 from iAndyHD3/main
Browse files Browse the repository at this point in the history
CCmenuItemSpriteExtra.h and build.bat change
  • Loading branch information
Partur-dev authored Aug 26, 2021
2 parents 96850ed + bf1c299 commit 1610a11
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Build.bat
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,5 @@ echo.
call ndk-build NDK_PROJECT_PATH=%pp%\x32 NDK_APPLICATION_MK=%pp%\x32\jni\Application.mk MAIN_LOCAL_PATH="%pp%\x32\jni"
if "%errorlevel%" == "0" (echo %ESC%[92mBuild successful%ESC%[0m) else (echo %ESC%[91mBuild failed%ESC%[0m)
xcopy /y "%pp%\x32\libs\armeabi-v7a" "%pp%\out\armeabi-v7a\"*
echo.
echo.
pause
1 change: 1 addition & 0 deletions x32/jni/libs/cocos2dx/include/cocos2d.h
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ THE SOFTWARE.
// menu_nodes
#include "menu_nodes/CCMenu.h"
#include "menu_nodes/CCMenuItem.h"
#include "menu_nodes/CCMenuItemSpriteExtra.h"

// misc_nodes
#include "misc_nodes/CCClippingNode.h"
Expand Down
19 changes: 19 additions & 0 deletions x32/jni/libs/cocos2dx/menu_nodes/CCMenuItemSpriteExtra.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#ifndef __CCMENUITEMSPRITEEXTRA_H__
#define __CCMENUITEMSPRITEEXTRA_H__

#include <gd.h>

#pragma runtime_checks("s", off)
class CCMenuItemSpriteExtra : public cocos2d::CCMenuItemSprite {
protected:
float m_fUnknown;
float m_fUnknown2;

public:
static CCMenuItemSpriteExtra *create(CCNode *normalSprite, CCNode *selectedSprite, CCObject *target, cocos2d::SEL_MenuHandler selector);
void setSizeMult(float mult);
};
#pragma runtime_checks("s", restore)


#endif

0 comments on commit 1610a11

Please sign in to comment.