Skip to content

Commit 8a6507d

Browse files
committed
A few CCMenuItemToggler and GJEffectManager bindings
1 parent 5e1c343 commit 8a6507d

1 file changed

Lines changed: 9 additions & 7 deletions

File tree

bindings/2.2074/GeometryDash.bro

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1738,7 +1738,7 @@ class CCMenuItemToggler : cocos2d::CCMenuItem {
17381738
ret->m_offButton->setContentSize({maxWidth, maxHeight});
17391739
ret->m_onButton->setContentSize({maxWidth, maxHeight});
17401740

1741-
ret->m_offButton->setPosition({maxWidth/2, maxHeight/2});
1741+
ret->m_offButton->setPosition({maxWidth/2, maxHeight/2});
17421742
ret->m_onButton->setPosition({maxWidth/2, maxHeight/2});
17431743

17441744
sprOff->setPosition({maxWidth/2, maxHeight/2});
@@ -1752,7 +1752,9 @@ class CCMenuItemToggler : cocos2d::CCMenuItem {
17521752
virtual void unselected() = win 0x454e0, m1 0x50004, imac 0x5a360, ios 0x19498c;
17531753
virtual void setEnabled(bool) = win 0x45530, m1 0x50044, imac 0x5a390, ios 0x1949cc;
17541754

1755-
TodoReturn activeItem();
1755+
CCMenuItemSpriteExtra* activeItem() = win inline, m1 0x4ff68, imac 0x5a2e0, ios 0x1948f0 {
1756+
return m_toggled ? m_onButton : m_offButton;
1757+
}
17561758
bool init(cocos2d::CCNode* off, cocos2d::CCNode* on, cocos2d::CCObject* target, cocos2d::SEL_MenuHandler callback) = ios 0x1945fc, win inline, imac 0x59d40, m1 0x4f964 {
17571759
if (!CCMenuItem::initWithTarget(target, callback)) return false;
17581760

@@ -1782,8 +1784,8 @@ class CCMenuItemToggler : cocos2d::CCMenuItem {
17821784
bool isToggled() {
17831785
return m_toggled;
17841786
}
1785-
void normalTouch(cocos2d::CCObject*) = win 0x45580, imac 0x59f80;
1786-
void selectedTouch(cocos2d::CCObject*) = win 0x455a0;
1787+
void normalTouch(cocos2d::CCObject*) = win 0x45580, m1 0x4fbbc, imac 0x59f80, ios 0x1947ac;
1788+
void selectedTouch(cocos2d::CCObject*) = win 0x455a0, m1 0x4fcac, imac 0x5a050, ios 0x1947c0;
17871789
void setClickable(bool on) {
17881790
m_notClickable = !on;
17891791
}
@@ -10516,9 +10518,9 @@ class GJEffectManager : cocos2d::CCNode {
1051610518
void playerButton(bool, bool) = win 0x25ae00, imac 0x2d61b0, m1 0x277110, ios 0x1921c;
1051710519
void playerDied();
1051810520
void postCollisionCheck() = ios 0x13cbc, win 0x254f50, imac 0x2cc390;
10519-
void postMoveActions() = ios 0x180fc, win 0x259470, imac 0x2d4110;
10521+
void postMoveActions() = win 0x259470, m1 0x275628, imac 0x2d4110, ios 0x180fc;
1052010522
void preCollisionCheck() = ios 0x13ca4, imac 0x2cc370;
10521-
void prepareMoveActions(float, bool) = ios 0x16a74, win 0x258060, imac 0x2d16c0;
10523+
void prepareMoveActions(float, bool) = win 0x258060, m1 0x27353c, imac 0x2d16c0, ios 0x16a74;
1052210524
void processColors() = ios 0x12d30, win 0x253fb0, imac 0x2ca520;
1052310525
void processCopyColorPulseActions() = imac 0x2cabf0;
1052410526
void processInheritedColors() = imac 0x2ca840, win 0x254190;
@@ -10576,7 +10578,7 @@ class GJEffectManager : cocos2d::CCNode {
1057610578
void updatePulseEffects(float) = win 0x259e30, imac 0x2cb9a0, m1 0x26e850;
1057710579
TodoReturn updateSpawnTriggers(float) = ios 0x18e14, win 0x25aa10;
1057810580
void updateTimer(int, double) = win 0x25b850;
10579-
void updateTimers(float, float) = win 0x25b9e0, imac 0x2d82a0, ios 0x19fcc;
10581+
void updateTimers(float, float) = win 0x25b9e0, m1 0x2789fc, imac 0x2d82a0, ios 0x19fcc;
1058010582
TodoReturn wasFollowing(int, int);
1058110583
TodoReturn wouldCreateLoop(InheritanceNode*, int);
1058210584

0 commit comments

Comments
 (0)