// // MapSelectLayer::update from 0x97fc84 to 0x97fe3c (440 bytes) // // 2 xrefs: // > @ 0xc19b0 // > @ 0x11c3738 // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // void MapSelectLayer::update(MapSelectLayer *a1, float a2) { GJBigSprite *v3; // x25 float v4; // s8 void (__fastcall *v5)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x26 __int64 v6; // x27 float v7; // s0 float v8; // s1 GJBigSprite *m_bigSprite; // x21 void (__fastcall *setPosition)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x22 __int64 v11; // x0 GJBigSprite *v12; // x21 void (__fastcall *setScale)(cocos2d::CCNode *__hidden, float); // x22 _BYTE v14[8]; // [xsp+60h] [xbp+60h] BYREF __int64 v15; // [xsp+68h] [xbp+68h] BYREF _BYTE v16[8]; // [xsp+70h] [xbp+70h] BYREF cocos2d::CCPoint ConstrainedMapPos; // 0:kr00_8.8 cocos2d::CCPoint v18; // 0:s0.4,4:s1.4 if ( !a1->m_inTouch ) { if ( a1->m_editMode ) { m_bigSprite = a1->m_bigSprite; setPosition = m_bigSprite->setPosition; v11 = ((__int64 (__fastcall *)(cocos2d::CCLayer *, float))a1->m_editorLayer->m_objectLayer->getPosition)( a1->m_editorLayer->m_objectLayer, a2); setPosition(m_bigSprite, (const cocos2d::CCPoint *)v11); v12 = a1->m_bigSprite; setScale = v12->setScale; a1->m_editorLayer->m_objectLayer->getScale(a1->m_editorLayer->m_objectLayer); ((void (__fastcall *)(GJBigSprite *))setScale)(v12); GJBigSprite::updateSpriteVisibility(a1->m_bigSprite); } else { v3 = a1->m_bigSprite; v4 = a2 * 60.0; v5 = v3->setPosition; v6 = (__int64)v3->getPosition(v3); cocos2d::CCPoint::operator*(&a1->m_mapPos, v4); cocos2d::CCPoint::operator+(&v15, v6, v16); ConstrainedMapPos = MapSelectLayer::getConstrainedMapPos(a1, v18); ((void (__fastcall *)(GJBigSprite *, _BYTE *, float, float))v5)(v3, v14, ConstrainedMapPos.x, ConstrainedMapPos.y); GJBigSprite::updateSpriteVisibility(a1->m_bigSprite); cocos2d::CCPoint::operator*(&a1->m_mapPos, 1.0 - (float)(v4 * 0.05)); cocos2d::CCPoint::operator=(&a1->m_mapPos, v7, v8); if ( fabsf(a1->m_mapPos.x) <= 0.1 ) a1->m_mapPos.x = 0.0; if ( fabsf(a1->m_mapPos.y) <= 0.1 ) a1->m_mapPos.y = 0.0; } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source