// // KeybindingsLayer::addKeyPair from 0x852d1c to 0x852fd0 (692 bytes) // // 50 xrefs: // > KeybindingsLayer::init @ 0x853688 // > KeybindingsLayer::init @ 0x8536b0 // > KeybindingsLayer::init @ 0x8536c8 // > KeybindingsLayer::init @ 0x8536e0 // > KeybindingsLayer::init @ 0x8536f8 // > KeybindingsLayer::init @ 0x853718 // > KeybindingsLayer::init @ 0x85374c // > KeybindingsLayer::init @ 0x853764 // > KeybindingsLayer::init @ 0x85377c // > KeybindingsLayer::init @ 0x853794 // > KeybindingsLayer::init @ 0x8537ac // > KeybindingsLayer::init @ 0x8537c4 // > KeybindingsLayer::init @ 0x8537dc // > KeybindingsLayer::init @ 0x8537f4 // > KeybindingsLayer::init @ 0x85380c // > KeybindingsLayer::init @ 0x853824 // > KeybindingsLayer::init @ 0x85383c // > KeybindingsLayer::init @ 0x853854 // > KeybindingsLayer::init @ 0x85386c // > KeybindingsLayer::init @ 0x853884 // > KeybindingsLayer::init @ 0x85389c // > KeybindingsLayer::init @ 0x8538b4 // > KeybindingsLayer::init @ 0x8538cc // > KeybindingsLayer::init @ 0x8538e4 // > KeybindingsLayer::init @ 0x8538fc // > KeybindingsLayer::init @ 0x853914 // > KeybindingsLayer::init @ 0x85392c // > KeybindingsLayer::init @ 0x853944 // > KeybindingsLayer::init @ 0x85395c // > KeybindingsLayer::init @ 0x853974 // > KeybindingsLayer::init @ 0x85398c // > KeybindingsLayer::init @ 0x8539a4 // > KeybindingsLayer::init @ 0x8539bc // > KeybindingsLayer::init @ 0x8539d4 // > KeybindingsLayer::init @ 0x8539ec // > KeybindingsLayer::init @ 0x853a04 // > KeybindingsLayer::init @ 0x853a1c // > KeybindingsLayer::init @ 0x853a2c // > KeybindingsLayer::init @ 0x853a3c // > KeybindingsLayer::init @ 0x853a54 // > KeybindingsLayer::init @ 0x853a6c // > KeybindingsLayer::init @ 0x853a84 // > KeybindingsLayer::init @ 0x853a9c // > KeybindingsLayer::init @ 0x853ab4 // > KeybindingsLayer::init @ 0x853acc // > KeybindingsLayer::init @ 0x853ae4 // > KeybindingsLayer::init @ 0x853afc // > KeybindingsLayer::init @ 0x853b14 // > KeybindingsLayer::init @ 0x853b2c // > @ 0x77820 // // 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 // cocos2d::CCLabelBMFont *KeybindingsLayer::addKeyPair(KeybindingsLayer *a1, const char *a2, const char *a3) { int m_keyCount; // w19 float v5; // s0 cocos2d::CCPoint v6; // x0 int v7; // w19 int m_maxPage; // w23 cocos2d::CCLayer *v9; // x26 const cocos2d::_ccColor4B *v10; // x1 cocos2d::CCNode *v11; // x23 cocos2d::CCLabelBMFont *v12; // x23 void (__fastcall *setAnchorPoint)(cocos2d::CCLabelBMFont *__hidden, const cocos2d::CCPoint *); // x28 void (__fastcall *v14)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x28 cocos2d::CCLabelBMFont *v15; // x24 void (__fastcall *v16)(cocos2d::CCLabelBMFont *__hidden, const cocos2d::CCPoint *); // x28 void (__fastcall *v17)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x26 void (__fastcall *setPosition)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // [xsp+68h] [xbp+68h] char v20[8]; // [xsp+70h] [xbp+70h] BYREF cocos2d::CCPoint v21; // [xsp+78h] [xbp+78h] BYREF cocos2d::CCPoint v22[2]; // [xsp+80h] [xbp+80h] BYREF m_keyCount = a1->m_keyCount; v5 = floorf((float)(m_keyCount / 7)); v6 = (cocos2d::CCPoint)_stack_chk_guard; a1->m_keyCount = m_keyCount + 1; v22[1] = v6; if ( v5 <= 0.0 ) v7 = 0; else v7 = (int)v5; if ( v7 < a1->m_maxPage ) m_maxPage = a1->m_maxPage; else m_maxPage = v7; a1->m_maxPage = m_maxPage; v9 = KeybindingsLayer::layerForPage(a1, v7); KeybindingsLayer::nextPosition(a1, v7); LOWORD(v22[0].x) = 0; if ( (a1->m_keyCount & 1) != 0 ) v10 = (const cocos2d::_ccColor4B *)(&qword_60 + 4); else v10 = (const cocos2d::_ccColor4B *)(&dword_30 + 2); BYTE2(v22[0].x) = 0; HIBYTE(v22[0].x) = (_BYTE)v10; v11 = (cocos2d::CCNode *)cocos2d::CCLayerColor::create((cocos2d::CCLayerColor *)v22, v10, 360.0); v9->addChild_0(v9, v11, -1); setPosition = v11->setPosition; cocos2d::CCPoint::CCPoint(&v21, -180.0, -15.0); cocos2d::CCPoint::operator+(v22, v20, &v21); setPosition(v11, v22); v12 = cocos2d::CCLabelBMFont::create(); setAnchorPoint = v12->setAnchorPoint; cocos2d::CCPoint::CCPoint(v22, 0.0, 0.5); setAnchorPoint(v12, v22); v9->addChild(v9, v12); v14 = v12->setPosition; cocos2d::CCPoint::CCPoint(&v21, -170.0, 0.0); cocos2d::CCPoint::operator+(v22, v20, &v21); v14(v12, v22); cocos2d::CCLabelBMFont::limitLabelWidth(v12, 260.0, 0.5, 0.0); v15 = cocos2d::CCLabelBMFont::create(); v16 = v15->setAnchorPoint; cocos2d::CCPoint::CCPoint(v22, 1.0, 0.5); v16(v15, v22); v9->addChild(v9, v15); v17 = v15->setPosition; cocos2d::CCPoint::CCPoint(&v21, 170.0, 0.0); cocos2d::CCPoint::operator+(v22, v20, &v21); v17(v15, v22); cocos2d::CCLabelBMFont::limitLabelWidth(v15, 100.0, 0.6, 0.0); KeybindingsLayer::incrementCountForPage(a1, v7); return v12; }
GD Web Decomp Icon

GD Web Decomp

Raw Source