fix virtuals from main cocos classes

This commit is contained in:
altalk23 2023-12-20 19:33:32 +03:00
parent d49e14d9ee
commit 40f99d6397
3 changed files with 16 additions and 1 deletions
loader
include/Geode/cocos
base_nodes
layers_scenes_transitions_nodes
test/members

View file

@ -1443,6 +1443,9 @@ public:
RT_REMOVE( virtual CCAffineTransform nodeToParentTransform(void); )
RT_ADD( virtual const CCAffineTransform nodeToParentTransform(void); )
// 2.2 additions
virtual const CCAffineTransform nodeToParentTransformFast();
/**
* Returns the matrix that transform parent's space coordinates to the node's (local) space coordinates.
* The matrix is in Pixels.
@ -1455,6 +1458,9 @@ public:
*/
virtual CCAffineTransform nodeToWorldTransform(void);
// 2.2 additions
virtual CCAffineTransform nodeToWorldTransformFast();
/**
* Returns the inverse world affine transform matrix. The matrix is in Pixels.
*/
@ -1583,6 +1589,9 @@ public:
CCNode& operator=(const CCNode&);
)
// 2.2 additions
virtual void updateTweenActionInt(float, int);
private:
/// lazy allocs
void childrenAlloc(void);

View file

@ -186,6 +186,10 @@ public:
RT_ADD(
void keyDown(enumKeyCodes);
)
// 2.2 additions
virtual void setPreviousPriority(int);
virtual int getPreviousPriority();
inline CCTouchScriptHandlerEntry* getScriptTouchHandlerEntry() { return m_pScriptTouchHandlerEntry; };
inline CCScriptHandlerEntry* getScriptKeypadHandlerEntry() { return m_pScriptKeypadHandlerEntry; };
@ -209,7 +213,7 @@ private:
ccTouchesMode m_eTouchMode;
// 2.2 additions
int m_unknown; // no idea
int m_uPreviousPriority; // no idea
int excuteScriptTouchHandler(int nEventType, CCTouch *pTouch);
int excuteScriptTouchHandler(int nEventType, CCSet *pTouches);

View file

@ -20,6 +20,8 @@ GEODE_SIZE_CHECK(CCMenu, 0x154);
GEODE_SIZE_CHECK(CCMenuItem, 0x12c);
GEODE_SIZE_CHECK(CCMenuItemSprite, 0x138);
GEODE_SIZE_CHECK(CCScale9Sprite, 0x1a4);
// needed classes are ones in the ids folder and some generic ones (i think they are already done though so only ids)