// // InfoLayer::init from 0x1402baa70 to 0x1402bc9af (7999 bytes) // // 2 xrefs: // > InfoLayer::create @ 0x1402baa2f // > @ 0x1406d27d4 // // 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 // // Hidden C++ exception states: #wind=29 bool InfoLayer::init(InfoLayer *a1, GJGameLevel *a2, GJUserScore *a3, GJLevelList *a4) { InfoLayer *v7; // rsi bool result; // al GameManager *v9; // rcx GameManager *v10; // rcx GameManager *v11; // rcx bool v12; // r12 int v13; // eax __int64 v14; // rcx __int64 v15; // rax cocos2d::CCDirector *v16; // rax struct cocos2d::CCRect *v17; // rax struct cocos2d::extension::CCScale9Sprite *v18; // rdi __int64 v19; // rdx cocos2d::extension::CCScale9Sprite_vtbl *v20; // rbx const cocos2d::CCSize *v21; // rax size_t v22; // r14 float v23; // xmm0_4 cocos2d::extension::CCScale9Sprite_vtbl *v24; // rbx double v25; // xmm0_8 const cocos2d::CCPoint *v26; // rax __int64 v27; // rcx __int64 v28; // rax GJUserScore *m_score; // rdx void **v30; // rdx cocos2d::CCString *v31; // rax const char *v32; // rbx struct cocos2d::CCLabelBMFont *v33; // rdi cocos2d::CCLabelBMFont_vtbl *v34; // rbx const cocos2d::CCPoint *v35; // rax char v36; // r15 GJLevelList *m_levelList; // rdx void **v38; // rax int v39; // edi void **v40; // rcx struct cocos2d::CCLabelBMFont *v41; // r15 cocos2d::CCLabelBMFont_vtbl *v42; // rbx const cocos2d::CCPoint *v43; // rax int v44; // eax float v45; // xmm6_4 float v46; // xmm2_4 GJLevelList *v47; // rax int m_accountID; // eax __int64 v49; // rcx cocos2d::CCString *v50; // rax GJLevelList *v51; // rdx void **v52; // rax int v53; // edi __int128 v54; // xmm0 void **v55; // rdx cocos2d::CCString *v56; // rax const char *CString; // rax struct cocos2d::CCLabelBMFont *v58; // r13 double v59; // xmm0_8 float *v60; // rbx float v61; // xmm7_4 cocos2d::CCLabelBMFont_vtbl *v62; // rbx float *v63; // rax const cocos2d::CCPoint *v64; // rax float v65; // xmm6_4 float v66; // xmm0_4 __int64 v67; // rax CCMenuItemSpriteExtra *v68; // r15 CCMenuItemSpriteExtra_vtbl *v69; // rbx struct cocos2d::CCPoint v70; // rax struct cocos2d::CCRect *v71; // rax struct cocos2d::extension::CCScale9Sprite *v72; // rbx unsigned __int64 v73; // r15 __int64 v74; // rcx __int64 UnpackedDescription; // rax char v76; // di __int128 v77; // xmm7 __m128i v78; // xmm6 int v79; // ebx void **v80; // rdx size_t v81; // r8 size_t v82; // rdi size_t v83; // rbx void **v84; // rcx unsigned __int64 v85; // r12 unsigned __int64 v86; // rax unsigned __int64 v87; // rbx char *v88; // r9 float v89; // xmm6_4 int v90; // eax int v91; // edx struct cocos2d::CCLabelBMFont *v92; // r13 void **v93; // rdx size_t v94; // r8 const struct cocos2d::CCPoint *v95; // rax char *v96; // rbx float v97; // xmm0_4 void *v98; // rcx void *v99; // rcx void *v100; // rcx GJGameLevel *m_level; // rcx GameManager *v102; // rcx ButtonSprite *v103; // rbx CCMenuItemSpriteExtra *v104; // rdi float v105; // xmm6_4 double v106; // xmm0_8 __int64 v107; // rax struct cocos2d::CCSprite *v108; // rax CCMenuItemSpriteExtra *v109; // rdi float v110; // xmm0_4 CCMenuItemSpriteExtra_vtbl *v111; // rbx struct cocos2d::CCPoint v112; // rax struct cocos2d::CCSprite *v113; // rax CCMenuItemSpriteExtra *v114; // rax float v115; // xmm0_4 CCMenuItemSpriteExtra_vtbl *v116; // rbx struct cocos2d::CCPoint v117; // rax GJUserScore *v118; // rbx int m_userID; // ebx GJLevelList *v120; // rbx GJGameLevel *v121; // rax GameLevelManager *v122; // rcx bool v123; // bl int *v124; // r15 __int64 v125; // rax void *v126; // rcx void *v127; // rcx struct cocos2d::CCSprite *v128; // rax CCMenuItemSpriteExtra *v129; // rdi float v130; // xmm0_4 CCMenuItemSpriteExtra_vtbl *v131; // rbx struct cocos2d::CCPoint v132; // rax LoadingCircle *v133; // rax float v134; // xmm0_4 __int64 *m_sprite; // rbx __int64 v136; // rdi __int64 v137; // rax __int64 v138; // rcx cocos2d::CCNode *v139; // rdi struct cocos2d::CCSprite *v140; // rbx CCMenuItemSpriteExtra *v141; // rax float v142; // xmm0_4 CCMenuItemSpriteExtra_vtbl *v143; // rbx struct cocos2d::CCPoint v144; // rax cocos2d::CCSprite *v145; // rbx CCMenuItemSpriteExtra *v146; // rax float v147; // xmm0_4 CCMenuItemSpriteExtra_vtbl *v148; // rbx struct cocos2d::CCPoint v149; // rax struct cocos2d::CCLabelBMFont *v150; // rax cocos2d::CCLabelBMFont_vtbl *v151; // rbx __int64 v152; // rcx cocos2d::CCDirector *v153; // rax __int64 v154; // rcx cocos2d::CCDirector *v155; // rax float v156; // xmm0_4 __int64 v157; // rax float v158; // xmm0_4 cocos2d::CCLabelBMFont_vtbl *v159; // rbx const cocos2d::CCPoint *v160; // rax __int64 v161; // rcx cocos2d::CCMenu *v162; // rdi float v163; // xmm0_4 cocos2d::CCPoint v164; // rax CCMenuItemSpriteExtra *SpriteButton; // rax float v166; // xmm0_4 double v167; // xmm0_8 cocos2d::CCPoint v168; // rax CCMenuItemSpriteExtra *v169; // rax cocos2d::CCPoint v170; // rax CCMenuItemSpriteExtra *v171; // rax const char *v172; // rbx ButtonSprite *v173; // rax cocos2d::CCPoint v174; // rax CCMenuItemSpriteExtra *v175; // r15 GameManager *v176; // rcx const char *v177; // rbx ButtonSprite *v178; // rax ButtonSprite *v179; // rax cocos2d::CCNode *v180; // rbx CCMenuItemSpriteExtra *v181; // rax float v182; // xmm0_4 CCMenuItemSpriteExtra_vtbl *v183; // rbx struct cocos2d::CCPoint v184; // rax struct cocos2d::CCLabelBMFont *v185; // rax float v186; // xmm0_4 cocos2d::CCLabelBMFont_vtbl *v187; // rbx const cocos2d::CCPoint *v188; // rax GameManager *v189; // rcx CommentKeyType m_mode; // edi BOOL GameVariable; // r15d GJUserScore *v192; // rbx int v193; // ebx GJLevelList *v194; // rbx GJGameLevel *v195; // rax cocos2d::CCString *v196; // rax const char *v197; // rax char v198; // r14 const char *v199; // rbx GameLevelManager *v200; // rcx GameManager *v201; // rcx struct cocos2d::CCSprite *v202; // rax CCMenuItemSpriteExtra *v203; // rdi float v204; // xmm0_4 CCMenuItemSpriteExtra_vtbl *v205; // rbx struct cocos2d::CCPoint v206; // rax struct cocos2d::CCSprite *v207; // rbx CCMenuItemSpriteExtra *v208; // rax float v209; // xmm0_4 CCMenuItemSpriteExtra_vtbl *v210; // rbx struct cocos2d::CCPoint v211; // rax bool v212; // [rsp+58h] [rbp-B0h] int v213; // [rsp+5Ch] [rbp-ACh] BYREF int v214; // [rsp+60h] [rbp-A8h] float v215; // [rsp+68h] [rbp-A0h] int v216; // [rsp+70h] [rbp-98h] BYREF bool v217; // [rsp+74h] [rbp-94h] _QWORD *v218; // [rsp+78h] [rbp-90h] BYREF struct cocos2d::CCPoint v219; // [rsp+80h] [rbp-88h] BYREF cocos2d::CCSize v220; // [rsp+88h] [rbp-80h] BYREF struct cocos2d::CCLabelBMFont *v221; // [rsp+90h] [rbp-78h] BYREF float v222; // [rsp+98h] [rbp-70h] char v223[8]; // [rsp+A0h] [rbp-68h] BYREF cocos2d::CCPoint v224; // [rsp+A8h] [rbp-60h] BYREF InfoLayer *v225; // [rsp+B0h] [rbp-58h] cocos2d::CCPoint v226; // [rsp+B8h] [rbp-50h] BYREF cocos2d::CCRect v227; // [rsp+C0h] [rbp-48h] BYREF cocos2d::CCRect Buf2; // [rsp+D0h] [rbp-38h] BYREF __int64 v229; // [rsp+E0h] [rbp-28h] __int64 v230; // [rsp+E8h] [rbp-20h] void *Buf1[2]; // [rsp+F0h] [rbp-18h] BYREF __m128i v232; // [rsp+100h] [rbp-8h] void *v233[2]; // [rsp+110h] [rbp+8h] BYREF size_t v234; // [rsp+120h] [rbp+18h] unsigned __int64 v235; // [rsp+128h] [rbp+20h] __int128 v236; // [rsp+130h] [rbp+28h] BYREF __int64 v237; // [rsp+140h] [rbp+38h] __int64 v238; // [rsp+148h] [rbp+40h] void *v239[2]; // [rsp+150h] [rbp+48h] BYREF __int128 v240; // [rsp+160h] [rbp+58h] void *Block[2]; // [rsp+170h] [rbp+68h] BYREF size_t v242; // [rsp+180h] [rbp+78h] __int64 v243; // [rsp+188h] [rbp+80h] __int128 v244; // [rsp+190h] [rbp+88h] BYREF __int64 v245; // [rsp+1A0h] [rbp+98h] __int64 v246; // [rsp+1A8h] [rbp+A0h] __int128 v247; // [rsp+1B0h] [rbp+A8h] BYREF __int64 v248; // [rsp+1C0h] [rbp+B8h] unsigned __int64 v249; // [rsp+1C8h] [rbp+C0h] void *v250[2]; // [rsp+1D0h] [rbp+C8h] BYREF __int128 v251; // [rsp+1E0h] [rbp+D8h] _BYTE v252[32]; // [rsp+1F0h] [rbp+E8h] BYREF v7 = a1; v225 = a1; v216 = 0; result = FLAlertLayer::init_1(a1, 150); if ( !result ) return result; if ( a3 ) { v7->m_score = a3; cocos2d::CCObject::retain(a3); v7->m_mode = 1; } else if ( a4 ) { v7->m_levelList = a4; cocos2d::CCObject::retain(a4); v7->m_mode = User; } else { v7->m_level = a2; cocos2d::CCObject::retain(a2); v7->m_mode = 0; } v9 = (GameManager *)qword_1406C2ED8; if ( !qword_1406C2ED8 ) { v218 = operator new(0x668u); qword_1406C2ED8 = sub_14017AB00((__int64)v218); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8); v9 = (GameManager *)qword_1406C2ED8; } LOBYTE(v214) = GameManager::getGameVariable(v9, "0075"); if ( (_BYTE)v214 ) { v10 = (GameManager *)qword_1406C2ED8; if ( !qword_1406C2ED8 ) { v218 = operator new(0x668u); qword_1406C2ED8 = sub_14017AB00((__int64)v218); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8); v10 = (GameManager *)qword_1406C2ED8; } GameManager::setGameVariable(v10, "0089", 0); } v11 = (GameManager *)qword_1406C2ED8; if ( !qword_1406C2ED8 ) { v218 = operator new(0x668u); qword_1406C2ED8 = sub_14017AB00((__int64)v218); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8); v11 = (GameManager *)qword_1406C2ED8; } v12 = GameManager::getGameVariable(v11, "0089") || v7->m_score; v212 = v12; v13 = -53; v14 = 4294967292LL; if ( v12 ) v13 = -4; v222 = (float)v13; v15 = qword_1406C2EC0; if ( !qword_1406C2EC0 ) { v218 = operator new(0x3D0u); qword_1406C2EC0 = sub_140141280((__int64)v218); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EC0 + 72LL))(qword_1406C2EC0); v15 = qword_1406C2EC0; } *(_QWORD *)(v15 + 744) = &v7->CommentUploadDelegate; v16 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v14); cocos2d::CCDirector::getWinSize(v16); cocos2d::CCRect::CCRect(&v227, 0.0, 0.0, 80.0, 80.0); v18 = cocos2d::extension::CCScale9Sprite::create("GJ_square01.png", v17); LOBYTE(v19) = -1; v18->setOpacity(&v18->cocos2d::CCRGBAProtocol, v19); v20 = v18->cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v218, 440.0, 290.0); v20->setContentSize(v18, v21); v22 = -1; v23 = ((float (__fastcall *)(cocos2d::CCLayer *, struct cocos2d::extension::CCScale9Sprite *, __int64))v7->m_mainLayer->addChild_0)( v7->m_mainLayer, v18, 0xFFFFFFFFLL); v24 = v18->cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; v25 = cocos2d::CCPoint::CCPoint(v23, v215 * 0.5); v24->setPosition_0(v18, v26); v28 = cocos2d::CCMenu::create(v27); v7->m_buttonMenu = (cocos2d::CCMenu *)v28; v7->m_mainLayer->addChild_0(v7->m_mainLayer, (cocos2d::CCNode *)v28, 10); m_score = v7->m_score; if ( !m_score ) { m_levelList = v7->m_levelList; if ( m_levelList ) { sub_14003BDB0((__int64)&v236, (__int64)&m_levelList->m_listName); v38 = (void **)&v236; v39 = 2049; } else { sub_14003BDB0((__int64)Buf1, (__int64)&v7->m_level->m_levelName); v38 = Buf1; v39 = 258; } v216 = v39; *(_OWORD *)v250 = *(_OWORD *)v38; v251 = *((_OWORD *)v38 + 1); v38[2] = nullptr; v38[3] = (void *)15; *(_BYTE *)v38 = 0; if ( (v39 & 2) != 0 ) { v39 &= ~2u; v216 = v39; sub_14003A830((__int64)Buf1); } if ( (v39 & 1) != 0 ) { v39 &= ~1u; v216 = v39; sub_14003A830((__int64)&v236); } v40 = v250; if ( *((_QWORD *)&v251 + 1) > 0xFu ) v40 = (void **)v250[0]; v41 = cocos2d::CCLabelBMFont::create((const char *)v40, (const char *)&qword_14052A4D8); v42 = v41->cocos2d::CCSpriteBatchNode::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; cocos2d::CCPoint::CCPoint((float)(4 * !v12 + 16), v215 * 0.5); v42->setPosition_0(v41, v43); v44 = 300; if ( v12 ) v44 = 150; v45 = (float)v44; if ( v12 ) v46 = 0.60000002; else v46 = 1.0; cocos2d::CCLabelBMFont::limitLabelWidth(v41, v45, v46, 0.0); v47 = v7->m_levelList; if ( v47 ) { m_accountID = v47->m_accountID; } else { v213 = v7->m_level->m_accountID.random - v7->m_level->m_accountID.seed; if ( v213 ) { LABEL_48: v51 = v7->m_levelList; if ( v51 ) { sub_14003BDB0((__int64)&v236, (__int64)&v51->m_creatorName); v52 = (void **)&v236; v53 = v39 | 0x404; } else { sub_14003BDB0((__int64)Buf1, (__int64)&v7->m_level->m_creatorName); v52 = Buf1; v53 = v39 | 0x208; } v216 = v53; v54 = *(_OWORD *)v52; *(_OWORD *)v239 = *(_OWORD *)v52; v240 = *((_OWORD *)v52 + 1); v52[2] = nullptr; v52[3] = (void *)15; *(_BYTE *)v52 = 0; if ( (v53 & 8) != 0 ) { v53 &= ~8u; v216 = v53; sub_14003A830((__int64)Buf1); } if ( (v53 & 4) != 0 ) { v53 &= ~4u; v216 = v53; sub_14003A830((__int64)&v236); } v55 = v239; if ( *((_QWORD *)&v240 + 1) > 0xFu ) v55 = (void **)v239[0]; v56 = cocos2d::CCString::createWithFormat("By %s", (const char *)v55); CString = cocos2d::CCString::getCString(v56); v58 = cocos2d::CCLabelBMFont::create(CString, "goldFont.fnt"); v221 = v58; v41->getPosition_0(v41); v59 = cocos2d::CCPoint::CCPoint(*(float *)&v54, v215 * 0.5); if ( v12 ) { cocos2d::CCLabelBMFont::limitLabelWidth(v58, v45, 0.5, 0.0); v60 = (float *)((__int64 (__fastcall *)(struct cocos2d::CCLabelBMFont *, _QWORD **))v41->getScaledContentSize)( v41, &v218); v61 = (float)(*(float *)((__int64 (__fastcall *)(struct cocos2d::CCLabelBMFont *, cocos2d::CCSize *))v58->getScaledContentSize)( v58, &v220) + *v60) + 15.0; v62 = v41->cocos2d::CCSpriteBatchNode::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; v41->getPosition_0(v41); v63 = (float *)((__int64 (__fastcall *)(struct cocos2d::CCLabelBMFont *, _QWORD **))v41->getScaledContentSize)( v41, &v218); cocos2d::CCPoint::CCPoint(*v63 * 0.5, (float)((float)(v215 * 0.5) - (float)(v61 * 0.5)) + (float)(*v63 * 0.5)); v62->setPosition_0(v41, v64); v65 = *(float *)((__int64 (__fastcall *)(struct cocos2d::CCLabelBMFont *, _QWORD **))v41->getScaledContentSize)( v41, &v218); v66 = *(float *)((__int64 (__fastcall *)(struct cocos2d::CCLabelBMFont *, struct cocos2d::CCPoint *))v58->getScaledContentSize)( v58, &v219) * 0.5; cocos2d::CCPoint::CCPoint(v66, (float)((float)(v65 * 0.5) + v66) + 15.0); v67 = (__int64)v41->getPosition_0(v41); cocos2d::CCPoint::operator+(v67, &v220); v59 = cocos2d::CCPoint::operator=(v223, &v220); } else { cocos2d::CCLabelBMFont::limitLabelWidth(v58, v45, 0.80000001, 0.0); } v7->m_mainLayer->addChild_0(v7->m_mainLayer, v41, 20); v68 = CCMenuItemSpriteExtra::create(v58, nullptr, v7, (cocos2d::SEL_MenuHandler *)InfoLayer::onMore); v218 = &v68->cocos2d::CCMenuItemSprite::cocos2d::CCMenuItem::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; v7->m_buttonMenu->addChild_1(v7->m_buttonMenu, v68); v69 = v68->cocos2d::CCMenuItemSprite::cocos2d::CCMenuItem::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; v70 = cocos2d::CCNode::convertToNodeSpace(v7->m_buttonMenu, &Buf2.origin); ((void (__fastcall *)(CCMenuItemSpriteExtra *, struct cocos2d::CCPoint))v69->setPosition_0)(v68, v70); if ( !v213 ) { LOWORD(v213) = -166; BYTE2(v213) = -1; v58->setColor(&v58->cocos2d::CCRGBAProtocol, (const cocos2d::ccColor3B *)&v213); *(float *)&v59 = ((float (__fastcall *)(CCMenuItemSpriteExtra *, _QWORD))v68->setEnabled)(v68, 0); } cocos2d::CCPoint::CCPoint(*(float *)&v59, v215 * 0.5); if ( v12 ) { InfoLayer::setupLevelInfo(v7); } else { cocos2d::CCRect::CCRect(&v227, 0.0, 0.0, 80.0, 80.0); v71 = (struct cocos2d::CCRect *)cocos2d::CCRect::CCRect(&Buf2, &v227); v72 = cocos2d::extension::CCScale9Sprite::create("square02b_001.png", v71); cocos2d::CCSize::CCSize(&v220, 340.0, 55.0); v72->setContentSize(v72, &v220); v7->m_mainLayer->addChild_0(v7->m_mainLayer, v72, -1); v72->setPosition_0(v72, &v224); LOWORD(v213) = 16514; BYTE2(v213) = 33; v72->setColor(&v72->cocos2d::CCRGBAProtocol, (const cocos2d::ccColor3B *)&v213); *(_OWORD *)v233 = 0; v234 = 0; v73 = 15; v235 = 15; v233[0] = sub_14003AA10(0x20u); v234 = 25; v235 = 31; strcpy((char *)v233[0], "(No description provided)"); v74 = (__int64)v7->m_levelList; if ( v74 ) { UnpackedDescription = GJLevelList::getUnpackedDescription(v74, (__int64)v252); v76 = v53 | 0x10; } else { UnpackedDescription = GJGameLevel::getUnpackedLevelDescription((__int64)v7->m_level, (__int64)&v236); v76 = v53 | 0x20; } v77 = *(_OWORD *)UnpackedDescription; *(_OWORD *)Buf1 = *(_OWORD *)UnpackedDescription; v78 = *(__m128i *)(UnpackedDescription + 16); v232 = v78; *(_QWORD *)(UnpackedDescription + 16) = 0; *(_QWORD *)(UnpackedDescription + 24) = 15; *(_BYTE *)UnpackedDescription = 0; if ( (v76 & 0x20) != 0 ) { v76 &= ~0x20u; sub_14003A830((__int64)&v236); } if ( (v76 & 0x10) != 0 ) sub_14003A830((__int64)v252); Buf2 = 0; v229 = 0; v230 = 15; LOBYTE(Buf2.origin.x) = 0; v79 = sub_14003A760(Buf1, &Buf2); sub_14003A830((__int64)&Buf2); if ( v79 ) { v80 = Buf1; if ( _mm_srli_si128(v78, 8).m128i_u64[0] > 0xF ) v80 = (void **)v77; v81 = -1; do ++v81; while ( *((_BYTE *)v80 + v81) ); sub_14003CCE0(v233, v80, v81); } v244 = 0; v245 = 1; v246 = 15; LOWORD(v244) = 160; *(_OWORD *)Block = 0; v82 = 0; v242 = 0; v243 = 15; LOBYTE(Block[0]) = 0; v83 = 0; while ( 1 ) { v84 = v233; v217 = v235 > 0xF; if ( v235 > 0xF ) v84 = (void **)v233[0]; v85 = v234; v86 = sub_14003BCE0((__int64)v84, v234, v83, (char *)&v244, 1u); v87 = v86; if ( v86 == -1 ) break; v88 = (char *)Block; if ( v73 > 0xF ) v88 = (char *)Block[0]; sub_140041FF0(v233, v86, 1u, v88, v82); v82 = v242; v83 = v242 + v87; v73 = v243; } v89 = 1.0; v90 = 180; v7 = v225; if ( v225->m_levelList ) v90 = 300; v91 = v90; if ( v85 < (unsigned int)v90 ) v90 = v85; v92 = v221; if ( v90 > 70 ) v89 = (float)((float)((float)(180 - v90) / (float)v91) * 0.30000001) + 0.69999999; Buf2.origin = (cocos2d::CCPoint)&v236; v93 = v233; if ( v217 ) v93 = (void **)v233[0]; v236 = 0; v237 = 0; v238 = 0; v94 = -1; do ++v94; while ( *((_BYTE *)v93 + v94) ); sub_14003A930(&v236, v93, v94); cocos2d::CCPoint::CCPoint(0.0, 0.5); v96 = TextArea::create((__int64)&v236, "chatFont.fnt", 1.0, 295.0 / v89, v95, 1101004800, 1); v97 = ((float (__fastcall *)(cocos2d::CCLayer *, char *))v7->m_mainLayer->addChild_1)(v7->m_mainLayer, v96); cocos2d::CCPoint::CCPoint(v97, 0.0); cocos2d::CCPoint::operator+(&v224, &v221); (*(void (__fastcall **)(char *, struct cocos2d::CCLabelBMFont **))(*(_QWORD *)v96 + 184LL))(v96, &v221); (*(void (__fastcall **)(char *))(*(_QWORD *)v96 + 160LL))(v96); if ( v73 > 0xF ) { v98 = Block[0]; if ( v73 + 1 >= 0x1000 ) { v98 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v98 - 8) > 0x1F ) invalid_parameter_noinfo_noreturn(); } j_j_free(v98); } if ( v232.m128i_i64[1] > 0xFuLL ) { v99 = Buf1[0]; if ( (unsigned __int64)(v232.m128i_i64[1] + 1) >= 0x1000 ) { v99 = *((void **)Buf1[0] - 1); if ( (unsigned __int64)((char *)Buf1[0] - (char *)v99 - 8) > 0x1F ) invalid_parameter_noinfo_noreturn(); } j_j_free(v99); } if ( v235 > 0xF ) { v100 = v233[0]; if ( v235 + 1 >= 0x1000 ) { v100 = *((void **)v233[0] - 1); if ( (unsigned __int64)((char *)v233[0] - (char *)v100 - 8) > 0x1F ) invalid_parameter_noinfo_noreturn(); } j_j_free(v100); } InfoLayer::setupLevelInfo(v7); m_level = v7->m_level; if ( m_level && m_level->m_originalLevel.random != m_level->m_originalLevel.seed ) { v102 = (GameManager *)qword_1406C2ED8; if ( !qword_1406C2ED8 ) { Buf2.origin = (cocos2d::CCPoint)operator new(0x668u); qword_1406C2ED8 = sub_14017AB00(*(_QWORD *)&Buf2.origin); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8); v102 = (GameManager *)qword_1406C2ED8; } if ( !GameManager::getGameVariable(v102, "0077") && v7->m_level->m_originalLevel.random - v7->m_level->m_originalLevel.seed != v7->m_level->m_levelID.random - v7->m_level->m_levelID.seed ) { Buf2.origin = (cocos2d::CCPoint)operator new(0x2C0u); v103 = ButtonSprite::ButtonSprite(*(ButtonSprite **)&Buf2.origin); if ( v103 ) { if ( ButtonSprite::init_1( v103, "Original", 220, 0, 0.44999999, 0, (const char *)&qword_14052A4D8, "GJ_button_01.png", 25.0) ) { cocos2d::CCObject::autorelease(v103); } else { ((void (__fastcall *)(ButtonSprite *, __int64))v103->~ButtonSprite)(v103, 1); v103 = nullptr; } } ((void (__fastcall *)(ButtonSprite *))v103->setScale_0)(v103); v104 = CCMenuItemSpriteExtra::create(v103, nullptr, v7, (cocos2d::SEL_MenuHandler *)InfoLayer::onOriginal); v7->m_buttonMenu->addChild_1(v7->m_buttonMenu, v104); HIDWORD(v104->m_pfnSelector.adj) = 1067030938; v105 = v92->getContentSize(v92)->width * 0.5; v106 = ((double (__fastcall *)(struct cocos2d::CCLabelBMFont *))v92->getScale)(v92); cocos2d::CCPoint::CCPoint((float)(*(float *)&v106 * v105) + 70.0, (float)(*(float *)&v106 * v105) + 70.0); v107 = (*(__int64 (__fastcall **)(_QWORD *))(*v218 + 200LL))(v218); cocos2d::CCPoint::operator+(v107, &v221); v104->setPosition_0(v104, (const cocos2d::CCPoint *)&v221); } } v12 = v212; } v108 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_chatBtn_001.png"); v109 = CCMenuItemSpriteExtra::create(v108, nullptr, v7, (cocos2d::SEL_MenuHandler *)InfoLayer::onComment); HIDWORD(v109->m_pfnSelector.adj) = 1069547520; v110 = ((float (__fastcall *)(cocos2d::CCMenu *, CCMenuItemSpriteExtra *))v7->m_buttonMenu->addChild_1)( v7->m_buttonMenu, v109); v111 = v109->cocos2d::CCMenuItemSprite::cocos2d::CCMenuItem::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; cocos2d::CCPoint::CCPoint(v110, (float)((float)(v215 * 0.5) + 220.0) - 10.0); v112 = cocos2d::CCNode::convertToNodeSpace(v7->m_buttonMenu, &v219); ((void (__fastcall *)(CCMenuItemSpriteExtra *, struct cocos2d::CCPoint))v111->setPosition_0)(v109, v112); v113 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_reportBtn_001.png"); v114 = CCMenuItemSpriteExtra::create(v113, nullptr, v7, (cocos2d::SEL_MenuHandler *)InfoLayer::confirmReport); v7->m_reportBtn = v114; HIDWORD(v114->m_pfnSelector.adj) = 1069547520; v115 = ((float (__fastcall *)(cocos2d::CCMenu *, CCMenuItemSpriteExtra *))v7->m_buttonMenu->addChild_1)( v7->m_buttonMenu, v7->m_reportBtn); v116 = v7->m_reportBtn->__vftable; cocos2d::CCPoint::CCPoint(v115, (float)((float)(v215 * 0.5) - 220.0) + 10.0); v117 = cocos2d::CCNode::convertToNodeSpace(v7->m_buttonMenu, &v219); ((void (__fastcall *)(CCMenuItemSpriteExtra *, struct cocos2d::CCPoint))v116->setPosition_0)( v7->m_reportBtn, v117); v118 = v7->m_score; if ( v118 ) { m_userID = v118->m_userID; } else { v120 = v7->m_levelList; if ( v120 ) { m_userID = -v120->m_listID; } else { v121 = v7->m_level; if ( v121 ) m_userID = v121->m_levelID.random - v121->m_levelID.seed; else m_userID = 0; } } v122 = (GameLevelManager *)qword_1406C2EC0; if ( !qword_1406C2EC0 ) { v218 = operator new(0x3D0u); qword_1406C2EC0 = sub_140141280((__int64)v218); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EC0 + 72LL))(qword_1406C2EC0); v122 = (GameLevelManager *)qword_1406C2EC0; } v123 = !GameLevelManager::hasReportedLevel(v122, m_userID); if ( v123 ) { LOWORD(v213) = -1; BYTE2(v213) = -1; v124 = &v213; } else { LOWORD(v213) = 19275; memset(&v216, 75, 3); v124 = &v216; } v125 = (__int64)v7->m_reportBtn->getNormalImage(v7->m_reportBtn); (**(void (__fastcall ***)(__int64, int *))(v125 + 320))(v125 + 320, v124); v7->m_reportBtn->setEnabled(v7->m_reportBtn, v123); v36 = v214; if ( (_BYTE)v214 ) { v109->setVisible(v109, 0); v109->setEnabled(v109, 0); } if ( *((_QWORD *)&v240 + 1) > 0xFu ) { v126 = v239[0]; if ( (unsigned __int64)(*((_QWORD *)&v240 + 1) + 1LL) >= 0x1000 ) { v126 = *((void **)v239[0] - 1); if ( (unsigned __int64)((char *)v239[0] - (char *)v126 - 8) > 0x1F ) invalid_parameter_noinfo_noreturn(); } j_j_free(v126); } *(_QWORD *)&v240 = 0; *((_QWORD *)&v240 + 1) = 15; LOBYTE(v239[0]) = 0; if ( *((_QWORD *)&v251 + 1) > 0xFu ) { v127 = v250[0]; if ( (unsigned __int64)(*((_QWORD *)&v251 + 1) + 1LL) >= 0x1000 ) { v127 = *((void **)v250[0] - 1); if ( (unsigned __int64)((char *)v250[0] - (char *)v127 - 8) > 0x1F ) invalid_parameter_noinfo_noreturn(); } j_j_free(v127); } goto LABEL_145; } v49 = qword_1406C2EC0; if ( !qword_1406C2EC0 ) { v218 = operator new(0x3D0u); qword_1406C2EC0 = sub_140141280((__int64)v218); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EC0 + 72LL))(qword_1406C2EC0); v49 = qword_1406C2EC0; } v50 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey( *(cocos2d::CCDictionary **)(v49 + 536), v7->m_level->m_userID.random - v7->m_level->m_userID.seed); m_accountID = cocos2d::CCString::intValue(v50); } v213 = m_accountID; goto LABEL_48; } sub_14003BDB0((__int64)Buf1, (__int64)&m_score->m_userName); v30 = Buf1; if ( v232.m128i_i64[1] > 0xFuLL ) v30 = (void **)Buf1[0]; v31 = cocos2d::CCString::createWithFormat("%s's comments", (const char *)v30); v32 = cocos2d::CCString::getCString(v31); sub_14003A830((__int64)Buf1); v33 = cocos2d::CCLabelBMFont::create(v32, (const char *)&qword_14052A4D8); v34 = v33->cocos2d::CCSpriteBatchNode::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; cocos2d::CCPoint::CCPoint(*(float *)&v25, v215 * 0.5); v34->setPosition_0(v33, v35); cocos2d::CCLabelBMFont::limitLabelWidth(v33, 180.0, 0.55000001, 0.0); v7->m_mainLayer->addChild_1(v7->m_mainLayer, v33); v36 = v214; LABEL_145: v128 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_closeBtn_001.png"); v129 = CCMenuItemSpriteExtra::create(v128, nullptr, v7, (cocos2d::SEL_MenuHandler *)InfoLayer::onClose); v130 = ((float (__fastcall *)(cocos2d::CCMenu *, CCMenuItemSpriteExtra *))v7->m_buttonMenu->addChild_1)( v7->m_buttonMenu, v129); HIDWORD(v129->m_pfnSelector.adj) = 1070386381; v131 = v129->cocos2d::CCMenuItemSprite::cocos2d::CCMenuItem::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; cocos2d::CCPoint::CCPoint(v130, (float)((float)(v215 * 0.5) - 220.0) + 10.0); v132 = cocos2d::CCNode::convertToNodeSpace(v7->m_buttonMenu, &v219); ((void (__fastcall *)(CCMenuItemSpriteExtra *, struct cocos2d::CCPoint))v131->setPosition_0)(v129, v132); v133 = LoadingCircle::create(); v7->m_loadingCircle = v133; v133->m_parentLayer = v7->m_mainLayer; v7->m_loadingCircle->m_fade = 0; cocos2d::CCObject::retain(v7->m_loadingCircle); LoadingCircle::show(v7->m_loadingCircle); v134 = ((float (__fastcall *)(LoadingCircle *, _QWORD))v7->m_loadingCircle->setVisible)(v7->m_loadingCircle, 0); m_sprite = (__int64 *)v7->m_loadingCircle->m_sprite; v136 = *m_sprite; cocos2d::CCPoint::CCPoint(v134, v215 * 0.5); (*(void (__fastcall **)(__int64 *, __int64))(v136 + 184))(m_sprite, v137); v139 = (cocos2d::CCNode *)cocos2d::CCMenu::create(v138); v7->m_mainLayer->addChild_0(v7->m_mainLayer, v139, 10); v140 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_arrow_01_001.png"); ((void (__fastcall *)(struct cocos2d::CCSprite *))v140->setScale_0)(v140); v141 = CCMenuItemSpriteExtra::create(v140, nullptr, v7, (cocos2d::SEL_MenuHandler *)InfoLayer::onPrevPage); v7->m_leftArrow = v141; v142 = ((float (__fastcall *)(cocos2d::CCNode *, CCMenuItemSpriteExtra *))v139->addChild_1)(v139, v141); v143 = v7->m_leftArrow->__vftable; cocos2d::CCPoint::CCPoint(v142, (float)(v215 * 0.5) - 195.0); v144 = cocos2d::CCNode::convertToNodeSpace(v139, &v219); ((void (__fastcall *)(CCMenuItemSpriteExtra *, struct cocos2d::CCPoint))v143->setPosition_0)(v7->m_leftArrow, v144); HIDWORD(v7->m_leftArrow->m_pfnSelector.adj) = 0x40000000; v145 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_arrow_01_001.png"); cocos2d::CCSprite::setFlipX(v145, 1); ((void (__fastcall *)(cocos2d::CCSprite *))v145->setScale_0)(v145); v146 = CCMenuItemSpriteExtra::create(v145, nullptr, v7, (cocos2d::SEL_MenuHandler *)InfoLayer::onNextPage); v7->m_rightArrow = v146; v147 = ((float (__fastcall *)(cocos2d::CCNode *, CCMenuItemSpriteExtra *))v139->addChild_1)(v139, v146); v148 = v7->m_rightArrow->__vftable; cocos2d::CCPoint::CCPoint(v147, (float)(v215 * 0.5) + 195.0); v149 = cocos2d::CCNode::convertToNodeSpace(v139, &v219); ((void (__fastcall *)(CCMenuItemSpriteExtra *, struct cocos2d::CCPoint))v148->setPosition_0)(v7->m_rightArrow, v149); HIDWORD(v7->m_rightArrow->m_pfnSelector.adj) = 0x40000000; v7->m_leftArrow->setVisible(v7->m_leftArrow, 0); v7->m_rightArrow->setVisible(v7->m_rightArrow, 0); v150 = cocos2d::CCLabelBMFont::create(" ", "goldFont.fnt"); v7->m_pageLabel = v150; v7->m_mainLayer->addChild_0(v7->m_mainLayer, v150, 10); v151 = v7->m_pageLabel->__vftable; v153 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v152); cocos2d::CCDirector::getScreenTop(v153); v155 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v154); v156 = (float)(cocos2d::CCDirector::getScreenRight(v155) - 7.0) - 0.0; cocos2d::CCPoint::CCPoint(v156, v156); v158 = ((float (__fastcall *)(cocos2d::CCLabelBMFont *, __int64))v151->setPosition_0)(v7->m_pageLabel, v157); v159 = v7->m_pageLabel->__vftable; cocos2d::CCPoint::CCPoint(v158, 1.0); v159->setAnchorPoint(v7->m_pageLabel, v160); ((void (__fastcall *)(cocos2d::CCLabelBMFont *))v7->m_pageLabel->setScale_0)(v7->m_pageLabel); v162 = (cocos2d::CCMenu *)cocos2d::CCMenu::create(v161); v163 = ((float (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCMenu *, __int64))v7->m_mainLayer->addChild_0)( v7->m_mainLayer, v162, 10); cocos2d::CCPoint::CCPoint(v163, 0.0); SpriteButton = InfoLayer::getSpriteButton( v7, "GJ_likesIcon_001.png", (cocos2d::SEL_MenuHandler *)InfoLayer::toggleCommentMode, v162, 0.69999999, v164); v7->m_likeBtn = SpriteButton; v166 = ((float (__fastcall *)(CCMenuItemSpriteExtra *, _QWORD))SpriteButton->setTag)(SpriteButton, 0); v167 = cocos2d::CCPoint::CCPoint(v166, 0.0); v169 = InfoLayer::getSpriteButton( v7, "GJ_timeIcon_001.png", (cocos2d::SEL_MenuHandler *)InfoLayer::toggleCommentMode, v162, 0.69999999, v168); v7->m_timeBtn = v169; v169->setTag(v169, 1); if ( !v36 ) { if ( !v7->m_score ) { v167 = cocos2d::CCPoint::CCPoint(*(float *)&v167, 0.0); v171 = InfoLayer::getSpriteButton( v7, "GJ_extendedIcon_001.png", (cocos2d::SEL_MenuHandler *)InfoLayer::toggleExtendedMode, v162, 0.69999999, v170); v172 = "GJ_button_01.png"; if ( v12 ) v172 = "GJ_button_02.png"; v173 = (ButtonSprite *)v171->getNormalImage(v171); ButtonSprite::updateBGImage(v173, v172); } v167 = cocos2d::CCPoint::CCPoint(*(float *)&v167, 0.0); v175 = InfoLayer::getSpriteButton( v7, "GJ_smallModeIcon_001.png", (cocos2d::SEL_MenuHandler *)InfoLayer::toggleSmallCommentMode, v162, 0.69999999, v174); v176 = (GameManager *)qword_1406C2ED8; if ( !qword_1406C2ED8 ) { v219 = (struct cocos2d::CCPoint)operator new(0x668u); qword_1406C2ED8 = sub_14017AB00(*(_QWORD *)&v219); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8); v176 = (GameManager *)qword_1406C2ED8; } v177 = "GJ_button_01.png"; if ( GameManager::getGameVariable(v176, "0088") ) v177 = "GJ_button_02.png"; v178 = (ButtonSprite *)v175->getNormalImage(v175); ButtonSprite::updateBGImage(v178, v177); } InfoLayer::updateCommentModeButtons(v7); cocos2d::CCPoint::CCPoint(*(float *)&v167, (float)(v215 * 0.5) - 195.0); v162->setPosition_0(v162, &v226); cocos2d::CCMenu::alignItemsVerticallyWithPadding(v162, 4.0); Buf2.origin = (cocos2d::CCPoint)operator new(0x2C0u); v179 = ButtonSprite::ButtonSprite(*(ButtonSprite **)&Buf2.origin); v180 = v179; if ( v179 ) { if ( ButtonSprite::init_1( v179, "Load Comments", 220, 0, 0.60000002, 0, (const char *)&qword_14052A4D8, "GJ_button_01.png", 25.0) ) { cocos2d::CCObject::autorelease(v180); } else { ((void (__fastcall *)(cocos2d::CCNode *, __int64))v180->~CCNode)(v180, 1); v180 = nullptr; } } v181 = CCMenuItemSpriteExtra::create(v180, nullptr, v7, (cocos2d::SEL_MenuHandler *)InfoLayer::onGetComments); v7->m_commentsBtn = v181; v182 = ((float (__fastcall *)(cocos2d::CCMenu *, CCMenuItemSpriteExtra *))v7->m_buttonMenu->addChild_1)( v7->m_buttonMenu, v181); HIDWORD(v7->m_commentsBtn->m_pfnSelector.adj) = 0x40000000; v183 = v7->m_commentsBtn->__vftable; cocos2d::CCPoint::CCPoint(v182, v215 * 0.5); v184 = cocos2d::CCNode::convertToNodeSpace(v7->m_buttonMenu, &v219); ((void (__fastcall *)(CCMenuItemSpriteExtra *, struct cocos2d::CCPoint))v183->setPosition_0)(v7->m_commentsBtn, v184); v185 = cocos2d::CCLabelBMFont::create("No comments", "goldFont.fnt"); v7->m_noComments = v185; v186 = ((float (__fastcall *)(cocos2d::CCLayer *, struct cocos2d::CCLabelBMFont *, __int64))v7->m_mainLayer->addChild_0)( v7->m_mainLayer, v185, 10); v187 = v7->m_noComments->__vftable; cocos2d::CCPoint::CCPoint(v186, v215 * 0.5); v187->setPosition_0(v7->m_noComments, v188); ((void (__fastcall *)(cocos2d::CCLabelBMFont *))v7->m_noComments->setScale_0)(v7->m_noComments); v7->m_noComments->setVisible(v7->m_noComments, 0); v189 = (GameManager *)qword_1406C2ED8; if ( !qword_1406C2ED8 ) { Buf2.origin = (cocos2d::CCPoint)operator new(0x668u); qword_1406C2ED8 = sub_14017AB00(*(_QWORD *)&Buf2.origin); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8); v189 = (GameManager *)qword_1406C2ED8; } m_mode = v7->m_mode; GameVariable = GameManager::getGameVariable(v189, "0069"); v192 = v7->m_score; if ( v192 ) { v193 = v192->m_userID; } else { v194 = v7->m_levelList; if ( v194 ) { v193 = -v194->m_listID; } else { v195 = v7->m_level; if ( v195 ) v193 = v195->m_levelID.random - v195->m_levelID.seed; else v193 = 0; } } if ( !qword_1406C2EC0 ) { Buf2.origin = (cocos2d::CCPoint)operator new(0x3D0u); qword_1406C2EC0 = sub_140141280(*(_QWORD *)&Buf2.origin); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EC0 + 72LL))(qword_1406C2EC0); } v196 = cocos2d::CCString::createWithFormat("comment_%i_%i_%i_%i", v193, 0, GameVariable, m_mode); v197 = cocos2d::CCString::getCString(v196); v247 = 0; v248 = 0; v249 = 0; do ++v22; while ( v197[v22] ); sub_14003A930(&v247, v197, v22); v198 = v214; if ( (_BYTE)v214 ) goto LABEL_182; v199 = (const char *)&v247; if ( v249 > 0xF ) v199 = (const char *)v247; v200 = (GameLevelManager *)qword_1406C2EC0; if ( !qword_1406C2EC0 ) { Buf2.origin = (cocos2d::CCPoint)operator new(0x3D0u); qword_1406C2EC0 = sub_140141280(*(_QWORD *)&Buf2.origin); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EC0 + 72LL))(qword_1406C2EC0); v200 = (GameLevelManager *)qword_1406C2EC0; } if ( GameLevelManager::getStoredLevelComments(v200, v199) ) goto LABEL_181; v201 = (GameManager *)qword_1406C2ED8; if ( !qword_1406C2ED8 ) { Buf2.origin = (cocos2d::CCPoint)operator new(0x668u); qword_1406C2ED8 = sub_14017AB00(*(_QWORD *)&Buf2.origin); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8); v201 = (GameManager *)qword_1406C2ED8; } if ( GameManager::getGameVariable(v201, "0090") ) LABEL_181: InfoLayer::loadPage(v7, 0, 0); else LABEL_182: InfoLayer::setupCommentsBrowser(v7, nullptr); if ( !v7->m_score ) { v202 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_infoIcon_001.png"); v203 = CCMenuItemSpriteExtra::create(v202, nullptr, v7, (cocos2d::SEL_MenuHandler *)InfoLayer::onLevelInfo); HIDWORD(v203->m_pfnSelector.adj) = 0x40000000; v204 = ((float (__fastcall *)(cocos2d::CCMenu *, CCMenuItemSpriteExtra *))v7->m_buttonMenu->addChild_1)( v7->m_buttonMenu, v203); v205 = v203->cocos2d::CCMenuItemSprite::cocos2d::CCMenuItem::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; cocos2d::CCPoint::CCPoint(v204, (float)((float)(v215 * 0.5) + 220.0) - 17.0); v206 = cocos2d::CCNode::convertToNodeSpace(v7->m_buttonMenu, &v219); ((void (__fastcall *)(CCMenuItemSpriteExtra *, struct cocos2d::CCPoint))v205->setPosition_0)(v203, v206); } v207 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_updateBtn_001.png"); ((void (__fastcall *)(struct cocos2d::CCSprite *))v207->setScale_0)(v207); v208 = CCMenuItemSpriteExtra::create(v207, nullptr, v7, (cocos2d::SEL_MenuHandler *)InfoLayer::onRefreshComments); v7->m_refreshCommentsBtn = v208; HIDWORD(v208->m_pfnSelector.adj) = 1069547520; v209 = ((float (__fastcall *)(cocos2d::CCMenu *, CCMenuItemSpriteExtra *))v7->m_buttonMenu->addChild_1)( v7->m_buttonMenu, v7->m_refreshCommentsBtn); v210 = v7->m_refreshCommentsBtn->__vftable; cocos2d::CCPoint::CCPoint(v209, (float)(v215 * 0.5) + 195.0); v211 = cocos2d::CCNode::convertToNodeSpace(v7->m_buttonMenu, &v219); ((void (__fastcall *)(CCMenuItemSpriteExtra *, struct cocos2d::CCPoint))v210->setPosition_0)( v7->m_refreshCommentsBtn, v211); if ( v198 ) { v7->m_refreshCommentsBtn->setVisible(v7->m_refreshCommentsBtn, 0); v7->m_refreshCommentsBtn->setEnabled(v7->m_refreshCommentsBtn, 0); v7->m_noComments->setVisible(v7->m_noComments, 0); v7->m_commentsBtn->setVisible(v7->m_commentsBtn, 0); v7->m_likeBtn->setVisible(v7->m_likeBtn, 0); v7->m_likeBtn->setEnabled(v7->m_likeBtn, 0); v7->m_timeBtn->setVisible(v7->m_timeBtn, 0); v7->m_timeBtn->setEnabled(v7->m_timeBtn, 0); } sub_14003A830((__int64)&v247); return 1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source