mirror of
https://github.com/geode-sdk/geode.git
synced 2025-03-22 02:45:49 -04:00
remove uses of RT_ADD + more bindings
This commit is contained in:
parent
72728464bb
commit
11299df20c
3 changed files with 10 additions and 13 deletions
|
@ -1327,6 +1327,7 @@ class EditorUI : cocos2d::CCLayer, FLAlertLayerProtocol, ColorSelectDelegate, GJ
|
|||
virtual void scrollWheel(float vertical, float horizontal) = win 0x921d0, mac 0x31370, ios 0x2c4884;
|
||||
void createMoveMenu() = mac 0x275e0, win 0x8c0d0;
|
||||
void sliderChanged(cocos2d::CCObject* slider) = win 0x78cc0;
|
||||
void repositionObjectsToCenter(cocos2d::CCArray* objs, cocos2d::CCPoint center, bool ignoreGroupParent) = win 0x88410;
|
||||
virtual void draw() = win 0x8fbe0;
|
||||
|
||||
bool m_isPlayingMusic;
|
||||
|
|
20
loader/include/Geode/cocos/cocoa/CCArray.h
vendored
20
loader/include/Geode/cocos/cocoa/CCArray.h
vendored
|
@ -177,12 +177,10 @@ public:
|
|||
unsigned int indexOfObject(CCObject* object) const;
|
||||
/** Returns an element with a certain index */
|
||||
CCObject* objectAtIndex(unsigned int index);
|
||||
RT_ADD(
|
||||
/**
|
||||
* Rob modification
|
||||
* Returns an element with a certain index casted to CCString */
|
||||
CCString* stringAtIndex(unsigned int index);
|
||||
);
|
||||
/**
|
||||
* Rob modification
|
||||
* Returns an element with a certain index casted to CCString */
|
||||
CCString* stringAtIndex(unsigned int index);
|
||||
|
||||
/**
|
||||
* Returns first element, or null if empty
|
||||
|
@ -202,12 +200,10 @@ public:
|
|||
/** Add a certain object */
|
||||
void addObject(CCObject* object);
|
||||
|
||||
RT_ADD(
|
||||
/**
|
||||
* Rob modification
|
||||
* Add a certain object */
|
||||
void addObjectNew(CCObject* object);
|
||||
);
|
||||
/**
|
||||
* Rob modification
|
||||
* Add a certain object */
|
||||
void addObjectNew(CCObject* object);
|
||||
/** Add all elements of an existing array */
|
||||
void addObjectsFromArray(CCArray* otherArray);
|
||||
/** Insert a certain object at a certain index */
|
||||
|
|
|
@ -25,7 +25,7 @@ struct json::Serialize<cocos2d::ccColor4B> {
|
|||
};
|
||||
|
||||
// operators for CC geometry
|
||||
namespace geode {
|
||||
namespace cocos2d {
|
||||
static cocos2d::CCPoint& operator*=(cocos2d::CCPoint& pos, float mul) {
|
||||
pos.x *= mul;
|
||||
pos.y *= mul;
|
||||
|
|
Loading…
Reference in a new issue