// // GJScoreCell::loadFromScore from 0x1001077fc to 0x100108a60 (4708 bytes) // // 1 xrefs: // > CustomListView::loadCell @ 0x10010103c // // 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 __fastcall GJScoreCell::loadFromScore(GJScoreCell *a1, GJUserScore *a2) { char m_glowEnabled; // w22 int m_creatorPoints; // w26 float v6; // s8 SimplePlayer *v7; // x21 __n128 v8; // q0 __n128 v9; // q1 GameManager *v10; // x0 GameManager *v11; // x0 GJUserScore *m_score; // x8 cocos2d::CCNode *v13; // x22 GJUserScore *v14; // x8 cocos2d::CCString *v15; // x0 const char *CString; // x0 cocos2d::CCLabelBMFont *v17; // x23 __n128 v18; // q0 __n128 v19; // q1 std::string *p_p; // x0 cocos2d::CCLabelBMFont *v21; // x23 CCMenuItemSpriteExtra *v22; // x24 float v23; // s13 float v24; // s10 float32x2_t *v25; // x25 __n128 v26; // q0 __n128 v27; // q1 double v28; // d0 float v29; // s8 __n128 v30; // q0 __n128 v31; // q1 GJUserScore *v32; // x0 float32x2_t *v33; // x22 __n128 v34; // q0 __n128 v35; // q1 double v36; // d0 cocos2d::CCLayerColor *m_backgroundLayer; // x0 float m_height; // s11 float v39; // s9 unsigned int v40; // w27 __int64 m_stars; // x24 __int64 m_moons; // x23 __int64 m_demons; // x25 __int64 m_userCoins; // x28 LeaderboardStat m_leaderboardStat; // w8 __int64 v46; // x21 __int64 v47; // x20 __int64 v48; // x22 std::string *p_dst; // x0 cocos2d::CCLabelBMFont *v50; // x24 __n128 v51; // q0 __n128 v52; // q1 __n128 v53; // q0 __n128 v54; // q1 double v55; // d0 std::string *v56; // x0 cocos2d::CCSprite *v57; // x23 float32x2_t *v58; // x25 float v59; // s10 __n128 v60; // q0 __n128 v61; // q1 double v62; // d0 std::string *v63; // x0 cocos2d::CCLabelBMFont *v64; // x22 __n128 v65; // q0 __n128 v66; // q1 float32x2_t *v67; // x24 float v68; // s13 __n128 v69; // q0 __n128 v70; // q1 double v71; // d0 std::string *v72; // x0 cocos2d::CCSprite *v73; // x23 float32x2_t *v74; // x24 float v75; // s13 __n128 v76; // q0 __n128 v77; // q1 double v78; // d0 std::string *v79; // x0 cocos2d::CCLabelBMFont *v80; // x23 __n128 v81; // q0 __n128 v82; // q1 __n128 v83; // q0 __n128 v84; // q1 cocos2d::CCSprite *v85; // x22 float32x2_t *v86; // x24 float v87; // s12 __n128 v88; // q0 __n128 v89; // q1 double v90; // d0 std::string *v91; // x0 cocos2d::CCLabelBMFont *v92; // x23 __n128 v93; // q0 __n128 v94; // q1 float32x2_t *v95; // x24 float v96; // s12 __n128 v97; // q0 __n128 v98; // q1 double v99; // d0 cocos2d::CCSprite *v100; // x22 float32x2_t *v101; // x24 float v102; // s12 __n128 v103; // q0 __n128 v104; // q1 double v105; // d0 std::string *v106; // x0 cocos2d::CCLabelBMFont *v107; // x23 __n128 v108; // q0 __n128 v109; // q1 float32x2_t *v110; // x21 float v111; // s12 __n128 v112; // q0 __n128 v113; // q1 double v114; // d0 std::string *p_str; // x0 cocos2d::CCSprite *v116; // x21 float32x2_t *v117; // x22 float v118; // s12 __n128 v119; // q0 __n128 v120; // q1 double v121; // d0 std::string *v122; // x0 cocos2d::CCLabelBMFont *v123; // x22 __n128 v124; // q0 __n128 v125; // q1 float32x2_t *v126; // x20 float v127; // s12 __n128 v128; // q0 __n128 v129; // q1 double v130; // d0 std::string *v131; // x0 cocos2d::CCSprite *v132; // x20 float32x2_t *v133; // x21 float v134; // s9 __n128 v135; // q0 __n128 v136; // q1 double v137; // d0 std::string *v138; // x0 cocos2d::CCLabelBMFont *v139; // x21 __n128 v140; // q0 __n128 v141; // q1 float32x2_t *v142; // x22 float v143; // s9 __n128 v144; // q0 __n128 v145; // q1 double v146; // d0 cocos2d::CCSprite *v147; // x20 float32x2_t *v148; // x19 float v149; // s8 __n128 v150; // q0 __n128 v151; // q1 double v152; // d0 float32x2_t v153; // [xsp+8h] [xbp-118h] BYREF std::string __dst; // [xsp+10h] [xbp-110h] BYREF std::string __str; // [xsp+30h] [xbp-F0h] BYREF std::string v156; // [xsp+48h] [xbp-D8h] BYREF std::string v157; // [xsp+60h] [xbp-C0h] BYREF float32x2_t v158; // [xsp+78h] [xbp-A8h] BYREF std::string __p; // [xsp+80h] [xbp-A0h] BYREF cocos2d::CCPoint v160; // 0:kr00_8.8 cocos2d::SEL_MenuHandler v161; // 0:x3.16 m_glowEnabled = 1; ((void (__fastcall *)(cocos2d::CCLayer *, __int64))a1->m_mainLayer->removeAllChildrenWithCleanup)(a1->m_mainLayer, 1); a1->m_score = a2; m_creatorPoints = a2->m_creatorPoints; if ( a2->m_iconType == Ship ) v6 = 0.9; else v6 = 1.0; v7 = SimplePlayer::create(1); ((void (__fastcall *)(cocos2d::CCLayer *, SimplePlayer *, __int64))a1->m_mainLayer->addChild_0)( a1->m_mainLayer, v7, 1); v8 = ((__n128 (__fastcall *)(SimplePlayer *, float))v7->setScale)(v7, v6); v9.n128_f32[0] = (float)(a1->m_height * 0.5) + 7.0; v8.n128_u32[0] = 30.0; sub_100022980(v8, v9, &__p); ((void (__fastcall *)(SimplePlayer *, std::string *))v7->setPosition)(v7, &__p); v10 = GameManager::sharedState(); *(cocos2d::ccColor3B *)&__p.__r_.__value_.__l.__data_ = GameManager::colorForIdx(v10, a1->m_score->m_color1); ((void (__fastcall *)(SimplePlayer *, std::string *))v7->setColor)(v7, &__p); v11 = GameManager::sharedState(); *(cocos2d::ccColor3B *)&__p.__r_.__value_.__l.__data_ = GameManager::colorForIdx(v11, a1->m_score->m_color2); SimplePlayer::setSecondColor(v7, (const cocos2d::ccColor3B *)&__p); SimplePlayer::tryEnableCustomGlowColor(v7, a1->m_score->m_color3); m_score = a1->m_score; if ( m_score->m_special != 2 ) m_glowEnabled = m_score->m_glowEnabled; v7->m_hasGlowOutline = m_glowEnabled & 1; SimplePlayer::updatePlayerFrame(v7, m_score->m_iconID, m_score->m_iconType); SimplePlayer::updateColors(v7); v13 = (cocos2d::CCNode *)sub_1001D7ED0(0); ((void (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCNode *))a1->m_mainLayer->addChild)(a1->m_mainLayer, v13); v14 = a1->m_score; if ( v14->m_scoreType != 2 ) { v15 = (cocos2d::CCString *)sub_100268F4C("%i", v14->m_playerRank); CString = cocos2d::CCString::getCString(v15); v17 = cocos2d::CCLabelBMFont::create_1(CString, "goldFont.fnt"); v18 = ((__n128 (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCLabelBMFont *))a1->m_mainLayer->addChild)( a1->m_mainLayer, v17); v19.n128_f32[0] = (float)(a1->m_height * 0.5) + -18.0; v18.n128_u32[0] = 30.0; sub_100022980(v18, v19, &__p); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, std::string *))v17->setPosition)(v17, &__p); cocos2d::CCLabelBMFont::limitLabelWidth(v17, 40.0, 0.65, 0.0); v14 = a1->m_score; } if ( v14->m_userName.m_data.m_short.shortStorage.__elems_[22] < 0 ) sub_1000097D0(&__p, (void *)v14->m_userName.m_data.m_long.capacitym1, v14->m_userName.m_data.m_long.size); else __p = (std::string)v14->m_userName; if ( (__p.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL ) p_p = &__p; else p_p = (std::string *)__p.__r_.__value_.__r.__words[0]; v21 = cocos2d::CCLabelBMFont::create_1((const char *)p_p, "goldFont.fnt"); if ( SHIBYTE(__p.__r_.__value_.__r.__words[2]) < 0 ) operator delete(__p.__r_.__value_.__l.__data_); cocos2d::CCLabelBMFont::limitLabelWidth(v21, 120.0, 0.8, 0.0); v161.ptr = (void (__cdecl *)(cocos2d::CCObject *))GJScoreCell::onViewProfile; v161.adj = 0; v22 = CCMenuItemSpriteExtra::create(v21, nullptr, a1, v161); ((void (__fastcall *)(cocos2d::CCNode *, CCMenuItemSpriteExtra *))v13->addChild)(v13, v22); v23 = *(float *)((__int64 (__fastcall *)(cocos2d::CCLabelBMFont *))v21->getContentSize)(v21); v24 = ((float (__fastcall *)(cocos2d::CCLabelBMFont *))v21->getScale)(v21); v25 = (float32x2_t *)((__int64 (__fastcall *)(SimplePlayer *))v7->getPosition)(v7); v26.n128_u32[0] = 30.0; v27.n128_u32[0] = 7.0; sub_100022980(v26, v27, &__p); *(float32x2_t *)&v28 = sub_1000229DC(v25, (float32x2_t *)&__p, &v158); v29 = *(float *)((__int64 (__fastcall *)(cocos2d::CCLabelBMFont *, double))v21->getContentSize)(v21, v28) * 0.5; v30.n128_f64[0] = ((double (__fastcall *)(cocos2d::CCLabelBMFont *))v21->getScale)(v21); v30.n128_f32[0] = v29 * v30.n128_f32[0]; v31.n128_u32[0] = 0; sub_100022980(v30, v31, &v156); sub_1000229DC(&v158, (float32x2_t *)&v156, (float32x2_t *)&v157); v160 = cocos2d::CCNode::convertToNodeSpace(v13, (const cocos2d::CCPoint *)&v157); ((void (__fastcall *)(CCMenuItemSpriteExtra *, std::string *, float, float))v22->setPosition)( v22, &__p, v160.x, v160.y); v32 = a1->m_score; if ( v32->m_scoreType == 2 ) { v33 = (float32x2_t *)((__int64 (__fastcall *)(SimplePlayer *))v7->getPosition)(v7); v34.n128_u32[0] = 0; v35.n128_u32[0] = -7.0; sub_100022980(v34, v35, &v157); *(float32x2_t *)&v36 = sub_1000229DC(v33, (float32x2_t *)&v157, (float32x2_t *)&__p); ((void (__fastcall *)(SimplePlayer *, std::string *, double))v7->setPosition)(v7, &__p, v36); v32 = a1->m_score; } if ( GJUserScore::isCurrentUser(v32) ) { m_backgroundLayer = a1->m_backgroundLayer; __p.__r_.__value_.__s.__data_[2] = 10; LOWORD(__p.__r_.__value_.__l.__data_) = -26906; ((void (__fastcall *)(cocos2d::CCLayerColor *, std::string *))m_backgroundLayer->setColor)(m_backgroundLayer, &__p); } if ( a2->m_accountID <= 0 && a2->m_scoreType != 1 ) { __p.__r_.__value_.__s.__data_[2] = -1; LOWORD(__p.__r_.__value_.__l.__data_) = -166; ((void (__fastcall *)(cocos2d::CCLabelBMFont *, std::string *))v21->setColor)(v21, &__p); ((void (__fastcall *)(CCMenuItemSpriteExtra *, _QWORD))v22->setEnabled)(v22, 0); } m_height = a1->m_height; if ( m_creatorPoints <= 0 ) v39 = 0.5; else v39 = 0.45; if ( m_creatorPoints <= 0 ) v40 = 50; else v40 = 35; m_stars = (unsigned int)a1->m_score->m_stars; sub_100009900(&__p, "GJ_starsIcon_001.png"); m_moons = (unsigned int)a1->m_score->m_moons; sub_100009900(&v157, "GJ_moonsIcon_001.png"); m_demons = (unsigned int)a1->m_score->m_demons; sub_100009900(&v156, "GJ_demonIcon_001.png"); m_userCoins = (unsigned int)a1->m_score->m_userCoins; sub_100009900(&__str, "GJ_coinsIcon2_001.png"); m_leaderboardStat = a1->m_score->m_leaderboardStat; if ( m_leaderboardStat ) { if ( SHIBYTE(__p.__r_.__value_.__r.__words[2]) < 0 ) { sub_1000097D0(&__dst, __p.__r_.__value_.__l.__data_, __p.__r_.__value_.__l.__size_); m_leaderboardStat = a1->m_score->m_leaderboardStat; } else { __dst = __p; } switch ( m_leaderboardStat ) { case Moons: std::string::operator=(&__p, &v157); std::string::operator=(&v157, &__dst); v46 = m_userCoins; v47 = m_demons; v48 = m_stars; break; case Demons: std::string::operator=(&__p, &v156); std::string::operator=(&v156, &__dst); v46 = m_userCoins; v47 = m_stars; v48 = m_moons; m_moons = m_demons; break; case UserCoins: std::string::operator=(&__p, &__str); std::string::operator=(&__str, &__dst); v46 = m_stars; v47 = m_demons; v48 = m_moons; m_moons = m_userCoins; break; default: v46 = m_userCoins; v47 = m_demons; v48 = m_moons; m_moons = m_stars; break; } if ( SHIBYTE(__dst.__r_.__value_.__r.__words[2]) < 0 ) operator delete(__dst.__r_.__value_.__l.__data_); } else { v46 = m_userCoins; v47 = m_demons; v48 = m_moons; m_moons = m_stars; } GameToolbox::pointsToString(m_moons, (__int64)&__dst); if ( (__dst.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL ) p_dst = &__dst; else p_dst = (std::string *)__dst.__r_.__value_.__r.__words[0]; v50 = cocos2d::CCLabelBMFont::create_1((const char *)p_dst, "bigFont.fnt"); if ( SHIBYTE(__dst.__r_.__value_.__r.__words[2]) < 0 ) operator delete(__dst.__r_.__value_.__l.__data_); v51 = ((__n128 (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCLabelBMFont *, __int64))a1->m_mainLayer->addChild_0)( a1->m_mainLayer, v50, 2); v51.n128_u32[0] = 0; v52.n128_u32[0] = 0.5; sub_100022980(v51, v52, &__dst); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, std::string *))v50->setAnchorPoint)(v50, &__dst); cocos2d::CCLabelBMFont::limitLabelWidth(v50, 60.0, v39, 0.0); v53.n128_f32[0] = (float)(v23 * v24) + 5.0; v54.n128_u32[0] = -2.0; sub_100022980(v53, v54, &v153); *(float32x2_t *)&v55 = sub_1000229DC(&v158, &v153, (float32x2_t *)&__dst); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, std::string *, double))v50->setPosition)(v50, &__dst, v55); if ( (__p.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL ) v56 = &__p; else v56 = (std::string *)__p.__r_.__value_.__r.__words[0]; v57 = cocos2d::CCSprite::createWithSpriteFrameName((const char *)v56); ((void (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCSprite *, __int64))a1->m_mainLayer->addChild_0)( a1->m_mainLayer, v57, 2); v58 = (float32x2_t *)((__int64 (__fastcall *)(cocos2d::CCLabelBMFont *))v50->getPosition)(v50); v59 = *(float *)((__int64 (__fastcall *)(cocos2d::CCLabelBMFont *))v50->getContentSize)(v50); v60.n128_f64[0] = ((double (__fastcall *)(cocos2d::CCLabelBMFont *))v50->getScale)(v50); v60.n128_f32[0] = (float)(v59 * v60.n128_f32[0]) + 10.0; v61.n128_u32[0] = 0; sub_100022980(v60, v61, &v153); *(float32x2_t *)&v62 = sub_1000229DC(v58, &v153, (float32x2_t *)&__dst); ((void (__fastcall *)(cocos2d::CCSprite *, std::string *, double))v57->setPosition)(v57, &__dst, v62); ((void (__fastcall *)(cocos2d::CCSprite *, float))v57->setScale)(v57, 0.7); GameToolbox::pointsToString(v48, (__int64)&__dst); if ( (__dst.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL ) v63 = &__dst; else v63 = (std::string *)__dst.__r_.__value_.__r.__words[0]; v64 = cocos2d::CCLabelBMFont::create_1((const char *)v63, "bigFont.fnt"); if ( SHIBYTE(__dst.__r_.__value_.__r.__words[2]) < 0 ) operator delete(__dst.__r_.__value_.__l.__data_); v65 = ((__n128 (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCLabelBMFont *, __int64))a1->m_mainLayer->addChild_0)( a1->m_mainLayer, v64, 2); v65.n128_u32[0] = 0; v66.n128_u32[0] = 0.5; sub_100022980(v65, v66, &__dst); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, std::string *))v64->setAnchorPoint)(v64, &__dst); cocos2d::CCLabelBMFont::limitLabelWidth(v64, 60.0, v39, 0.0); v67 = (float32x2_t *)((__int64 (__fastcall *)(cocos2d::CCSprite *))v57->getPosition)(v57); v68 = *(float *)((__int64 (__fastcall *)(cocos2d::CCSprite *))v57->getContentSize)(v57); v69 = ((__n128 (__fastcall *)(cocos2d::CCSprite *))v57->getScale)(v57); v70.n128_u64[0] = 8.0; v69.n128_f64[0] = (float)(v68 * v69.n128_f32[0]) * 0.5 + 8.0; v69.n128_f32[0] = v69.n128_f64[0]; v70.n128_u32[0] = 0; sub_100022980(v69, v70, &v153); *(float32x2_t *)&v71 = sub_1000229DC(v67, &v153, (float32x2_t *)&__dst); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, std::string *, double))v64->setPosition)(v64, &__dst, v71); if ( (v157.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL ) v72 = &v157; else v72 = (std::string *)v157.__r_.__value_.__r.__words[0]; v73 = cocos2d::CCSprite::createWithSpriteFrameName((const char *)v72); ((void (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCSprite *, __int64))a1->m_mainLayer->addChild_0)( a1->m_mainLayer, v73, 2); v74 = (float32x2_t *)((__int64 (__fastcall *)(cocos2d::CCLabelBMFont *))v64->getPosition)(v64); v75 = *(float *)((__int64 (__fastcall *)(cocos2d::CCLabelBMFont *))v64->getContentSize)(v64); v76.n128_f64[0] = ((double (__fastcall *)(cocos2d::CCLabelBMFont *))v64->getScale)(v64); v76.n128_f32[0] = (float)(v75 * v76.n128_f32[0]) + 10.0; v77.n128_u32[0] = 0; sub_100022980(v76, v77, &v153); *(float32x2_t *)&v78 = sub_1000229DC(v74, &v153, (float32x2_t *)&__dst); ((void (__fastcall *)(cocos2d::CCSprite *, std::string *, double))v73->setPosition)(v73, &__dst, v78); ((void (__fastcall *)(cocos2d::CCSprite *, float))v73->setScale)(v73, 0.7); GameToolbox::pointsToString((unsigned int)a1->m_score->m_diamonds, (__int64)&__dst); if ( (__dst.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL ) v79 = &__dst; else v79 = (std::string *)__dst.__r_.__value_.__r.__words[0]; v80 = cocos2d::CCLabelBMFont::create_1((const char *)v79, "bigFont.fnt"); if ( SHIBYTE(__dst.__r_.__value_.__r.__words[2]) < 0 ) operator delete(__dst.__r_.__value_.__l.__data_); v81 = ((__n128 (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCLabelBMFont *, __int64))a1->m_mainLayer->addChild_0)( a1->m_mainLayer, v80, 2); v81.n128_u32[0] = 0; v82.n128_u32[0] = 0.5; sub_100022980(v81, v82, &__dst); v83 = ((__n128 (__fastcall *)(cocos2d::CCLabelBMFont *, std::string *))v80->setAnchorPoint)(v80, &__dst); v84.n128_f32[0] = (float)(m_height * 0.5) + -13.0; v83.n128_u32[0] = 1115160576; sub_100022980(v83, v84, &__dst); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, std::string *))v80->setPosition)(v80, &__dst); cocos2d::CCLabelBMFont::limitLabelWidth(v80, (float)v40, v39, 0.0); v85 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_diamondsIcon_001.png"); ((void (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCSprite *, __int64))a1->m_mainLayer->addChild_0)( a1->m_mainLayer, v85, 2); v86 = (float32x2_t *)((__int64 (__fastcall *)(cocos2d::CCLabelBMFont *))v80->getPosition)(v80); v87 = *(float *)((__int64 (__fastcall *)(cocos2d::CCLabelBMFont *))v80->getContentSize)(v80); v88.n128_f64[0] = ((double (__fastcall *)(cocos2d::CCLabelBMFont *))v80->getScale)(v80); v88.n128_f32[0] = (float)(v87 * v88.n128_f32[0]) + 10.0; v89.n128_u32[0] = 0; sub_100022980(v88, v89, &v153); *(float32x2_t *)&v90 = sub_1000229DC(v86, &v153, (float32x2_t *)&__dst); ((void (__fastcall *)(cocos2d::CCSprite *, std::string *, double))v85->setPosition)(v85, &__dst, v90); ((void (__fastcall *)(cocos2d::CCSprite *, float))v85->setScale)(v85, 0.7); GameToolbox::pointsToString((unsigned int)a1->m_score->m_secretCoins, (__int64)&__dst); if ( (__dst.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL ) v91 = &__dst; else v91 = (std::string *)__dst.__r_.__value_.__r.__words[0]; v92 = cocos2d::CCLabelBMFont::create_1((const char *)v91, "bigFont.fnt"); if ( SHIBYTE(__dst.__r_.__value_.__r.__words[2]) < 0 ) operator delete(__dst.__r_.__value_.__l.__data_); v93 = ((__n128 (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCLabelBMFont *, __int64))a1->m_mainLayer->addChild_0)( a1->m_mainLayer, v92, 2); v93.n128_u32[0] = 0; v94.n128_u32[0] = 0.5; sub_100022980(v93, v94, &__dst); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, std::string *))v92->setAnchorPoint)(v92, &__dst); v95 = (float32x2_t *)((__int64 (__fastcall *)(cocos2d::CCSprite *))v85->getPosition)(v85); v96 = *(float *)((__int64 (__fastcall *)(cocos2d::CCSprite *))v85->getContentSize)(v85); v97 = ((__n128 (__fastcall *)(cocos2d::CCSprite *))v85->getScale)(v85); v98.n128_u64[0] = 8.0; v97.n128_f64[0] = (float)(v96 * v97.n128_f32[0]) * 0.5 + 8.0; v97.n128_f32[0] = v97.n128_f64[0]; v98.n128_u32[0] = 0; sub_100022980(v97, v98, &v153); *(float32x2_t *)&v99 = sub_1000229DC(v95, &v153, (float32x2_t *)&__dst); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, std::string *, double))v92->setPosition)(v92, &__dst, v99); cocos2d::CCLabelBMFont::limitLabelWidth(v92, (float)v40, v39, 0.0); v100 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_coinsIcon_001.png"); ((void (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCSprite *, __int64))a1->m_mainLayer->addChild_0)( a1->m_mainLayer, v100, 2); v101 = (float32x2_t *)((__int64 (__fastcall *)(cocos2d::CCLabelBMFont *))v92->getPosition)(v92); v102 = *(float *)((__int64 (__fastcall *)(cocos2d::CCLabelBMFont *))v92->getContentSize)(v92); v103.n128_f64[0] = ((double (__fastcall *)(cocos2d::CCLabelBMFont *))v92->getScale)(v92); v103.n128_f32[0] = (float)(v102 * v103.n128_f32[0]) + 10.0; v104.n128_u32[0] = 0; sub_100022980(v103, v104, &v153); *(float32x2_t *)&v105 = sub_1000229DC(v101, &v153, (float32x2_t *)&__dst); ((void (__fastcall *)(cocos2d::CCSprite *, std::string *, double))v100->setPosition)(v100, &__dst, v105); ((void (__fastcall *)(cocos2d::CCSprite *, float))v100->setScale)(v100, 0.7); GameToolbox::pointsToString(v46, (__int64)&__dst); if ( (__dst.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL ) v106 = &__dst; else v106 = (std::string *)__dst.__r_.__value_.__r.__words[0]; v107 = cocos2d::CCLabelBMFont::create_1((const char *)v106, "bigFont.fnt"); if ( SHIBYTE(__dst.__r_.__value_.__r.__words[2]) < 0 ) operator delete(__dst.__r_.__value_.__l.__data_); v108 = ((__n128 (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCLabelBMFont *, __int64))a1->m_mainLayer->addChild_0)( a1->m_mainLayer, v107, 2); v108.n128_u32[0] = 0; v109.n128_u32[0] = 0.5; sub_100022980(v108, v109, &__dst); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, std::string *))v107->setAnchorPoint)(v107, &__dst); v110 = (float32x2_t *)((__int64 (__fastcall *)(cocos2d::CCSprite *))v100->getPosition)(v100); v111 = *(float *)((__int64 (__fastcall *)(cocos2d::CCSprite *))v100->getContentSize)(v100); v112 = ((__n128 (__fastcall *)(cocos2d::CCSprite *))v100->getScale)(v100); v113.n128_u64[0] = 8.0; v112.n128_f64[0] = (float)(v111 * v112.n128_f32[0]) * 0.5 + 8.0; v112.n128_f32[0] = v112.n128_f64[0]; v113.n128_u32[0] = 0; sub_100022980(v112, v113, &v153); *(float32x2_t *)&v114 = sub_1000229DC(v110, &v153, (float32x2_t *)&__dst); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, std::string *, double))v107->setPosition)(v107, &__dst, v114); cocos2d::CCLabelBMFont::limitLabelWidth(v107, (float)v40, v39, 0.0); if ( (__str.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL ) p_str = &__str; else p_str = (std::string *)__str.__r_.__value_.__r.__words[0]; v116 = cocos2d::CCSprite::createWithSpriteFrameName((const char *)p_str); ((void (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCSprite *, __int64))a1->m_mainLayer->addChild_0)( a1->m_mainLayer, v116, 2); v117 = (float32x2_t *)((__int64 (__fastcall *)(cocos2d::CCLabelBMFont *))v107->getPosition)(v107); v118 = *(float *)((__int64 (__fastcall *)(cocos2d::CCLabelBMFont *))v107->getContentSize)(v107); v119.n128_f64[0] = ((double (__fastcall *)(cocos2d::CCLabelBMFont *))v107->getScale)(v107); v119.n128_f32[0] = (float)(v118 * v119.n128_f32[0]) + 10.0; v120.n128_u32[0] = 0; sub_100022980(v119, v120, &v153); *(float32x2_t *)&v121 = sub_1000229DC(v117, &v153, (float32x2_t *)&__dst); ((void (__fastcall *)(cocos2d::CCSprite *, std::string *, double))v116->setPosition)(v116, &__dst, v121); ((void (__fastcall *)(cocos2d::CCSprite *, float))v116->setScale)(v116, 0.7); GameToolbox::pointsToString(v47, (__int64)&__dst); if ( (__dst.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL ) v122 = &__dst; else v122 = (std::string *)__dst.__r_.__value_.__r.__words[0]; v123 = cocos2d::CCLabelBMFont::create_1((const char *)v122, "bigFont.fnt"); if ( SHIBYTE(__dst.__r_.__value_.__r.__words[2]) < 0 ) operator delete(__dst.__r_.__value_.__l.__data_); v124 = ((__n128 (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCLabelBMFont *, __int64))a1->m_mainLayer->addChild_0)( a1->m_mainLayer, v123, 2); v124.n128_u32[0] = 0; v125.n128_u32[0] = 0.5; sub_100022980(v124, v125, &__dst); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, std::string *))v123->setAnchorPoint)(v123, &__dst); v126 = (float32x2_t *)((__int64 (__fastcall *)(cocos2d::CCSprite *))v116->getPosition)(v116); v127 = *(float *)((__int64 (__fastcall *)(cocos2d::CCSprite *))v116->getContentSize)(v116); v128 = ((__n128 (__fastcall *)(cocos2d::CCSprite *))v116->getScale)(v116); v129.n128_u64[0] = 8.0; v128.n128_f64[0] = (float)(v127 * v128.n128_f32[0]) * 0.5 + 8.0; v128.n128_f32[0] = v128.n128_f64[0]; v129.n128_u32[0] = 0; sub_100022980(v128, v129, &v153); *(float32x2_t *)&v130 = sub_1000229DC(v126, &v153, (float32x2_t *)&__dst); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, std::string *, double))v123->setPosition)(v123, &__dst, v130); cocos2d::CCLabelBMFont::limitLabelWidth(v123, (float)v40, v39, 0.0); if ( (v156.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL ) v131 = &v156; else v131 = (std::string *)v156.__r_.__value_.__r.__words[0]; v132 = cocos2d::CCSprite::createWithSpriteFrameName((const char *)v131); ((void (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCSprite *, __int64))a1->m_mainLayer->addChild_0)( a1->m_mainLayer, v132, 2); v133 = (float32x2_t *)((__int64 (__fastcall *)(cocos2d::CCLabelBMFont *))v123->getPosition)(v123); v134 = *(float *)((__int64 (__fastcall *)(cocos2d::CCLabelBMFont *))v123->getContentSize)(v123); v135.n128_f64[0] = ((double (__fastcall *)(cocos2d::CCLabelBMFont *))v123->getScale)(v123); v135.n128_f32[0] = (float)(v134 * v135.n128_f32[0]) + 10.0; v136.n128_u32[0] = 0; sub_100022980(v135, v136, &v153); *(float32x2_t *)&v137 = sub_1000229DC(v133, &v153, (float32x2_t *)&__dst); ((void (__fastcall *)(cocos2d::CCSprite *, std::string *, double))v132->setPosition)(v132, &__dst, v137); ((void (__fastcall *)(cocos2d::CCSprite *, float))v132->setScale)(v132, 0.7); if ( m_creatorPoints >= 1 ) { GameToolbox::pointsToString((unsigned int)a1->m_score->m_creatorPoints, (__int64)&__dst); if ( (__dst.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL ) v138 = &__dst; else v138 = (std::string *)__dst.__r_.__value_.__r.__words[0]; v139 = cocos2d::CCLabelBMFont::create_1((const char *)v138, "bigFont.fnt"); if ( SHIBYTE(__dst.__r_.__value_.__r.__words[2]) < 0 ) operator delete(__dst.__r_.__value_.__l.__data_); v140 = ((__n128 (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCLabelBMFont *, __int64))a1->m_mainLayer->addChild_0)( a1->m_mainLayer, v139, 2); v140.n128_u32[0] = 0; v141.n128_u32[0] = 0.5; sub_100022980(v140, v141, &__dst); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, std::string *))v139->setAnchorPoint)(v139, &__dst); v142 = (float32x2_t *)((__int64 (__fastcall *)(cocos2d::CCSprite *))v132->getPosition)(v132); v143 = *(float *)((__int64 (__fastcall *)(cocos2d::CCSprite *))v132->getContentSize)(v132); v144 = ((__n128 (__fastcall *)(cocos2d::CCSprite *))v132->getScale)(v132); v145.n128_u64[0] = 8.0; v144.n128_f64[0] = (float)(v143 * v144.n128_f32[0]) * 0.5 + 8.0; v144.n128_f32[0] = v144.n128_f64[0]; v145.n128_u32[0] = 0; sub_100022980(v144, v145, &v153); *(float32x2_t *)&v146 = sub_1000229DC(v142, &v153, (float32x2_t *)&__dst); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, std::string *, double))v139->setPosition)(v139, &__dst, v146); cocos2d::CCLabelBMFont::limitLabelWidth(v139, (float)v40, 0.45, 0.0); v147 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_hammerIcon_001.png"); ((void (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCSprite *, __int64))a1->m_mainLayer->addChild_0)( a1->m_mainLayer, v147, 2); v148 = (float32x2_t *)((__int64 (__fastcall *)(cocos2d::CCLabelBMFont *))v139->getPosition)(v139); v149 = *(float *)((__int64 (__fastcall *)(cocos2d::CCLabelBMFont *))v139->getContentSize)(v139); v150.n128_f64[0] = ((double (__fastcall *)(cocos2d::CCLabelBMFont *))v139->getScale)(v139); v150.n128_f32[0] = (float)(v149 * v150.n128_f32[0]) + 10.0; v151.n128_u32[0] = 0; sub_100022980(v150, v151, &v153); *(float32x2_t *)&v152 = sub_1000229DC(v148, &v153, (float32x2_t *)&__dst); ((void (__fastcall *)(cocos2d::CCSprite *, std::string *, double))v147->setPosition)(v147, &__dst, v152); ((void (__fastcall *)(cocos2d::CCSprite *, float))v147->setScale)(v147, 0.7); } if ( SHIBYTE(__str.__r_.__value_.__r.__words[2]) < 0 ) operator delete(__str.__r_.__value_.__l.__data_); if ( SHIBYTE(v156.__r_.__value_.__r.__words[2]) < 0 ) operator delete(v156.__r_.__value_.__l.__data_); if ( SHIBYTE(v157.__r_.__value_.__r.__words[2]) < 0 ) operator delete(v157.__r_.__value_.__l.__data_); if ( SHIBYTE(__p.__r_.__value_.__r.__words[2]) < 0 ) operator delete(__p.__r_.__value_.__l.__data_); }
GD Web Decomp Icon

GD Web Decomp

Raw Source