// // LevelEditorLayer::updateVisibility from 0x1402d8e70 to 0x1402d9e6b (4091 bytes) // // 2 xrefs: // > @ 0x140586320 // > @ 0x1406d3224 // // 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=1 void LevelEditorLayer::updateVisibility(LevelEditorLayer *a1, float a2) { LevelEditorLayer *v3; // r12 EditorUI *m_editorUI; // rcx unsigned int v5; // eax EditorUI *v6; // rdx struct cocos2d::CCArray *m_selectedObjects; // rax struct cocos2d::CCObject *m_selectedObject; // rcx cocos2d::ccArray *data; // rdx __int64 num; // rax cocos2d::CCObject **arr; // rdx cocos2d::CCObject **i; // r8 cocos2d::CCObject *v13; // rcx EditorUI *v14; // rcx unsigned int v15; // eax EditorUI *v16; // rcx struct cocos2d::CCArray *v17; // rax struct cocos2d::CCObject *v18; // rcx cocos2d::ccArray *v19; // rcx __int64 v20; // rax cocos2d::CCObject **v21; // rcx cocos2d::CCObject **j; // r8 PlaybackMode m_playbackMode; // esi ColorActionSprite *ColorSprite; // rax __int16 v25; // cx GLubyte b; // dl const cocos2d::ccColor3B *v27; // rax GameManager *v28; // rcx GLubyte GameVariable; // r13 int v30; // r15d __int64 v31; // r14 std::_Vector_val>::pointer Myfirst; // rax std::_Simple_types::value_type v33; // rdi GameObject_vtbl *v34; // rbx __int64 v35; // rax bool v36; // bl GJSpriteColor *m_baseColor; // rax int m_defaultColorID; // ecx int m_colorID; // eax std::_Vector_val>::pointer v40; // r8 GJSpriteColor *m_detailColor; // rax int v42; // ecx int v43; // eax __int64 v44; // rdx __int64 v45; // rdx float y; // xmm1_4 int m_editorLayer2; // eax int m_currentLayer; // ecx char v49; // cl int v50; // eax float v51; // xmm7_4 __int64 v52; // rcx cocos2d::CCArray *v53; // rsi unsigned int k; // ebx struct cocos2d::CCObject *v55; // rax GJSpriteColor *v56; // rbx int v57; // edx ColorActionSprite *v58; // rax float v59; // xmm0_4 GJSpriteColor *v60; // rbx int v61; // edx ColorActionSprite *v62; // rax float v63; // xmm0_4 int *p_m_colorID; // rbx int v65; // eax int v66; // ebx ColorActionSprite *v67; // rax __int16 v68; // cx GLubyte v69; // dl int v70; // r15d __int64 v71; // r14 unsigned __int64 v72; // rsi std::array *m_groups; // rax int v74; // r8d cocos2d::ccColor3B *v75; // rax __m128 *v76; // r8 float v77; // xmm1_4 ColorActionSprite *v78; // rax int m_groupCount; // eax GJEffectManager *m_effectManager; // r15 __int64 v81; // rsi unsigned __int64 v82; // rbx __int64 v83; // r14 std::array *v84; // rax int v85; // edx int *v86; // rax int v87; // ecx int v88; // r13d __int16 v89; // r10 GLubyte v90; // r11 __m128 v91; // xmm0 cocos2d::ccColor3B *v92; // rax ColorActionSprite *v93; // rax unsigned int v94; // ebx unsigned __int64 v95; // rsi unsigned __int64 v96; // r15 std::array *v97; // rax int v98; // r9d GJEffectManager *v99; // r14 std::_Vector_val>>>>>>::pointer v100; // rcx std::_List_val>>>::_Nodeptr Myhead; // rbx PulseEffectAction *v102; // rsi PulseEffectAction *m; // rbx cocos2d::ccColor3B *v104; // rax __m128 *v105; // rcx float v106; // xmm1_4 ColorActionSprite *v107; // rax int v108; // eax GJEffectManager *v109; // r15 __int64 v110; // rsi unsigned __int64 v111; // rbx __int64 v112; // r14 std::array *v113; // rax int v114; // edx __int64 v115; // rcx cocos2d::CCArray *v116; // rsi struct cocos2d::CCObject *v117; // rax __int16 m_customColorType; // ax bool m_maybeNotColorable; // al int v120; // ecx GameObject_vtbl *v121; // rbx __int64 v122; // rax cocos2d::CCArray *m_batchNodes; // rbx cocos2d::ccArray *v124; // rbx __int64 v125; // rax cocos2d::CCSpriteBatchNode **v126; // rbx cocos2d::CCSpriteBatchNode **n; // rdi cocos2d::ccColor3B v128; // [rsp+38h] [rbp-D0h] BYREF int v129; // [rsp+3Ch] [rbp-CCh] BYREF cocos2d::ccColor3B v130; // [rsp+40h] [rbp-C8h] BYREF int v131; // [rsp+44h] [rbp-C4h] int v132; // [rsp+48h] [rbp-C0h] int v133; // [rsp+50h] [rbp-B8h] __int16 v134; // [rsp+54h] [rbp-B4h] __int16 v135; // [rsp+58h] [rbp-B0h] BYREF char v136; // [rsp+5Ah] [rbp-AEh] cocos2d::ccColor3B v137; // [rsp+68h] [rbp-A0h] BYREF cocos2d::ccColor3B v138; // [rsp+78h] [rbp-90h] BYREF cocos2d::ccColor3B v139; // [rsp+88h] [rbp-80h] BYREF __int16 v140; // [rsp+98h] [rbp-70h] BYREF GLubyte v141; // [rsp+9Ah] [rbp-6Eh] int v142; // [rsp+A8h] [rbp-60h] __int64 v143; // [rsp+B0h] [rbp-58h] __m128 v144; // [rsp+B8h] [rbp-50h] BYREF PlaybackMode v145; // [rsp+C8h] [rbp-40h] __m128 v146; // [rsp+D8h] [rbp-30h] cocos2d::ccHSVValue v147; // [rsp+E8h] [rbp-20h] BYREF char v148; // [rsp+F8h] [rbp-10h] BYREF cocos2d::ccColor3B v149; // [rsp+FCh] [rbp-Ch] BYREF cocos2d::ccColor3B v150; // [rsp+100h] [rbp-8h] BYREF char v151; // [rsp+104h] [rbp-4h] BYREF cocos2d::ccColor3B v152[6]; // [rsp+108h] [rbp+0h] BYREF float v153; // [rsp+11Ch] [rbp+14h] char v154[120]; // [rsp+120h] [rbp+18h] BYREF cocos2d::ccColor3B v156; // [rsp+1E8h] [rbp+E0h] BYREF GLubyte v157; // [rsp+1F0h] [rbp+E8h] v3 = a1; m_editorUI = a1->m_editorUI; if ( m_editorUI ) { v5 = cocos2d::CCArray::count(m_editorUI->m_selectedObjects); v6 = v3->m_editorUI; if ( v5 ) { m_selectedObjects = v6->m_selectedObjects; } else { m_selectedObject = v6->m_selectedObject; if ( !m_selectedObject ) goto LABEL_11; m_selectedObjects = cocos2d::CCArray::createWithObject(m_selectedObject); } if ( m_selectedObjects ) { data = m_selectedObjects->data; num = data->num; if ( (_DWORD)num ) { arr = data->arr; for ( i = &arr[num - 1]; arr <= i; ++arr ) { v13 = *arr; if ( !*arr ) break; HIBYTE(v13[11].m_uUnknown) = BYTE2(v13[11].m_uUnknown); BYTE2(v13[11].m_uUnknown) = 0; } } } } LABEL_11: GJBaseGameLayer::preUpdateVisibility(v3, a2); v14 = v3->m_editorUI; if ( !v14 ) goto LABEL_21; v15 = cocos2d::CCArray::count(v14->m_selectedObjects); v16 = v3->m_editorUI; if ( v15 ) { v17 = v16->m_selectedObjects; } else { v18 = v16->m_selectedObject; if ( !v18 ) goto LABEL_21; v17 = cocos2d::CCArray::createWithObject(v18); } if ( v17 ) { v19 = v17->data; v20 = v19->num; if ( (_DWORD)v20 ) { v21 = v19->arr; for ( j = &v21[v20 - 1]; v21 <= j; ++v21 ) { if ( !*v21 ) break; BYTE2((*v21)[11].m_uUnknown) = HIBYTE((*v21)[11].m_uUnknown); } } } LABEL_21: m_playbackMode = v3->m_playbackMode; v145 = m_playbackMode; ColorSprite = GJEffectManager::getColorSprite(v3->m_effectManager, 1005); if ( ColorSprite ) { v25 = *(_WORD *)&ColorSprite->m_copyColor.r; b = ColorSprite->m_copyColor.b; } else { v25 = -1; b = -1; } *(_WORD *)&v156.r = v25; v156.b = b; GJEffectManager::calculateLightBGColor(v3->m_effectManager, &v156); v27 = v3->m_background->getColor(&v3->m_background->cocos2d::CCRGBAProtocol); v146.m128_i16[6] = 257; v147.h = 0.0; v147.s = -0.30000001; v147.v = 0.40000001; *(_DWORD *)&v147.absoluteSaturation = v146.m128_i32[3]; GameToolbox::transformColor(&v156, v27, &v147); v134 = *(_WORD *)&v156.r; v157 = v156.b; v28 = (GameManager *)qword_1406C2ED8; if ( !qword_1406C2ED8 ) { v144.m128_u64[0] = (unsigned __int64)operator new(0x668u); qword_1406C2ED8 = sub_14017AB00(v144.m128_i64[0]); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8); v28 = (GameManager *)qword_1406C2ED8; } GameVariable = GameManager::getGameVariable(v28, "0121"); v156.r = GameVariable; v30 = 0; v131 = 0; if ( v3->m_activeObjectsCount > 0 ) { v31 = 0; v143 = 0; do { Myfirst = v3->m_activeObjects._Mypair._Myval2._Myfirst; v33 = Myfirst[v31]; if ( v3->m_playbackMode == Not ) { GameObject::updateStartPos(Myfirst[v31]); v34 = v33->CCSpritePlus::cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; v35 = ((__int64 (__fastcall *)(std::_Simple_types::value_type, char *))v33->getRealPosition)( v33, v154); v34->setPosition_0(v33, (const cocos2d::CCPoint *)v35); } if ( v33->m_isActivated ) { if ( v3->m_updateColorSprites || v33->m_updateParents ) { v36 = 1; LABEL_48: v33->addMainSpriteToParent(v33, v36); GameObject::addColorSpriteToParent(v33, v36); v33->m_updateParents = 0; goto LABEL_49; } v36 = 0; m_baseColor = v33->m_baseColor; if ( m_baseColor ) { m_defaultColorID = m_baseColor->m_defaultColorID; m_colorID = m_baseColor->m_colorID; if ( m_defaultColorID == m_colorID || !m_colorID ) m_colorID = m_defaultColorID; } else { m_colorID = 0; } v40 = v3->m_blendingColors2._Myvec._Mypair._Myval2._Myfirst; if ( ((1 << (m_colorID & 0x1F)) & v40[(unsigned __int64)m_colorID >> 5]) != 0 ) goto LABEL_48; if ( v33->m_colorSprite ) { m_detailColor = v33->m_detailColor; if ( m_detailColor ) { v42 = m_detailColor->m_defaultColorID; v43 = m_detailColor->m_colorID; if ( v42 == v43 || !v43 ) v43 = v42; } else { v43 = 0; } if ( ((1 << (v43 & 0x1F)) & v40[(unsigned __int64)v43 >> 5]) != 0 ) goto LABEL_48; } } LABEL_49: v33->activateObject(v33); if ( v3->m_previewAnimations && v33->getHasSyncedAnimation(v33) || v3->m_previewParticles && v33->m_objectID == 2065 && v33->getHasSyncedAnimation(v33) ) { ((void (__fastcall *)(std::_Simple_types::value_type, __int64, __int64))v33->CCSpritePlus::cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable[1].acceptVisitor)( v33, v44, 0xFFFFFFFFLL); } if ( v3->m_previewAnimations && v33->getHasRotateAction(v33) ) EnhancedGameObject::updateRotateAction((EnhancedGameObject *)v33, a2); if ( v3->m_playbackMode == Not && v33->getHasSyncedAnimation(v33) && BYTE1(v33[1].m_fVertexZ) ) { BYTE1(v33[1].m_fVertexZ) = 0; v33->m_isDisabled2 = 0; ((void (__fastcall *)(std::_Simple_types::value_type, __int64, __int64))v33->CCSpritePlus::cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable[1].acceptVisitor)( v33, v45, 0xFFFFFFFFLL); BYTE1(v33[1].m_fVertexZ) = 1; } if ( v33->getType(v33) == Collectible ) { if ( m_playbackMode == Playing ) y = v3->m_hoverNode->getPosition_0(v3->m_hoverNode)->y; else y = 0.0; EffectGameObject::updateInteractiveHover((EffectGameObject *)v33, y); } if ( m_playbackMode == Playing ) goto LABEL_74; m_editorLayer2 = v33->m_editorLayer2; if ( !v33->m_editorLayer2 ) m_editorLayer2 = -1; m_currentLayer = v3->m_currentLayer; if ( v3->m_currentLayer == -1 || m_currentLayer == v33->m_editorLayer || m_currentLayer == m_editorLayer2 ) LABEL_74: v49 = 1; else v49 = 0; v50 = 50; if ( v49 ) v50 = 255; v51 = (float)v50; if ( GameVariable && v33->m_isHide && !v33->m_isSelected ) { v51 = 0.0; } else if ( v33->m_objectID == 3032 && v3->m_playbackMode ) { v51 = 50.0; } if ( !v3->m_previewMode ) { if ( v33->m_colorSprite ) { v33->m_detailColor->m_opacity = v51 * 0.69999999; if ( v33->m_unk367 ) { v135 = -1; v136 = -1; v52 = *(_QWORD *)&v33[1].m_sAdditionalTransform.d; if ( v52 ) { v53 = (cocos2d::CCArray *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v52 + 464LL))(v52); for ( k = 0; k < cocos2d::CCArray::count(v53); ++k ) { v55 = cocos2d::CCArray::objectAtIndex(v53, k); (**(void (__fastcall ***)(__int64, __int16 *))&v55[5].m_unknown2)((__int64)&v55[5].m_unknown2, &v135); } } } } if ( !v3->m_previewMode ) goto LABEL_222; } if ( v33->m_isSelected ) { LABEL_222: v33->m_baseColor->m_opacity = 1.0; goto LABEL_219; } v56 = v33->m_baseColor; if ( v56 ) { v57 = v56->m_colorID; if ( v56->m_defaultColorID == v56->m_colorID || !v57 ) v57 = v56->m_defaultColorID; } else { v57 = 0; } v58 = GJEffectManager::getColorSprite(v3->m_effectManager, v57); if ( v58 ) v59 = v58->m_opacity / 255.0; else v59 = 1.0; v56->m_opacity = v59; if ( v33->m_colorSprite ) { v60 = v33->m_detailColor; if ( v60 ) { v61 = v60->m_colorID; if ( v60->m_defaultColorID == v60->m_colorID || !v61 ) v61 = v60->m_defaultColorID; } else { v61 = 0; } v62 = GJEffectManager::getColorSprite(v3->m_effectManager, v61); if ( v62 ) v63 = v62->m_opacity / 255.0; else v63 = 1.0; v60->m_opacity = v63; } p_m_colorID = &v33->m_baseColor->m_colorID; if ( !p_m_colorID ) { v66 = 0; LABEL_122: v69 = -1; v68 = -1; goto LABEL_123; } v65 = p_m_colorID[1]; v66 = *p_m_colorID; if ( v65 == v66 || !v66 ) v66 = v65; LOWORD(v129) = -1; BYTE2(v129) = -1; switch ( v66 ) { case 0: goto LABEL_122; case 1010: v68 = 0; v69 = 0; break; case 1011: goto LABEL_122; default: v67 = GJEffectManager::getColorSprite(v3->m_effectManager, v66); if ( !v67 ) goto LABEL_122; v68 = *(_WORD *)&v67->m_copyColor.r; v69 = v67->m_copyColor.b; break; } LABEL_123: LOWORD(v129) = v68; BYTE2(v129) = v69; if ( v33->m_groupCount > 0 ) { v70 = 0; v71 = 0; v72 = 0; do { if ( v72 <= 9 && (m_groups = v33->m_groups) != nullptr ) v74 = m_groups->_Elems[v71]; else v74 = 0; v75 = GJEffectManager::colorForGroupID( (cocos2d::ccColor3B *)v3->m_effectManager, (GJEffectManager *)&v148, v74, (const cocos2d::ccColor3B *)&v129, !v33->m_customSpriteColor); v68 = *(_WORD *)&v75->r; LOWORD(v129) = *(_WORD *)&v75->r; v69 = v75->b; BYTE2(v129) = v69; ++v70; ++v72; ++v71; } while ( v70 < v33->m_groupCount ); GameVariable = v156.r; } v76 = (__m128 *)v33->m_baseColor; if ( v76[1].m128_f32[0] != *(float *)&dword_1406BA188 || v76[1].m128_f32[1] != *(float *)&dword_1406BA18C || v76[1].m128_f32[2] != *(float *)&dword_1406BA190 || v76[1].m128_i16[6] != (_WORD)dword_1406BA194 ) { *(_WORD *)&v137.r = v68; v137.b = v69; v144 = v76[1]; *(cocos2d::ccColor3B *)&v129 = *GameToolbox::transformColor(&v149, &v137, (cocos2d::ccHSVValue *)&v144); } v33->updateMainColor(v33, (const cocos2d::ccColor3B *)&v129); v77 = 1.0; if ( v66 > 0 ) { v78 = GJEffectManager::getColorSprite(v3->m_effectManager, v66); if ( v78 ) v77 = v78->m_opacity / 255.0; else v77 = 1.0; } m_groupCount = v33->m_groupCount; if ( v33->m_groupCount > 0 && m_groupCount > 0 ) { m_effectManager = v3->m_effectManager; v81 = 0; v82 = 0; v83 = (unsigned int)m_groupCount; do { if ( v82 <= 9 && (v84 = v33->m_groups) != nullptr ) v85 = v84->_Elems[v81]; else v85 = 0; v77 = v77 * GJEffectManager::opacityModForGroup(m_effectManager, v85); ++v82; ++v81; --v83; } while ( v83 ); GameVariable = v156.r; } v33->m_baseColor->m_opacity = v77; if ( v33->m_colorSprite ) { v86 = &v33->m_detailColor->m_colorID; if ( v86 ) { v87 = v86[1]; v88 = *v86; v133 = v88; if ( v87 == v88 || !v88 ) { v88 = v87; v133 = v87; } v89 = -1; *(_WORD *)&v128.r = -1; v90 = -1; v128.b = -1; if ( v88 == 1012 ) { LOWORD(v153) = 256; v146.m128_u64[0] = 0x3F26666600000000LL; v146.m128_i32[2] = 1041865114; v138 = (cocos2d::ccColor3B)v129; v91 = _mm_shuffle_ps(v146, v146, 147); v91.m128_f32[0] = v153; v146 = _mm_shuffle_ps(v91, v91, 57); v144 = v146; v92 = GameToolbox::transformColor(&v150, &v138, (cocos2d::ccHSVValue *)&v144); v89 = *(_WORD *)&v92->r; *(_WORD *)&v128.r = *(_WORD *)&v92->r; v90 = v92->b; v128.b = v90; goto LABEL_193; } if ( v88 > 0 ) { if ( v88 == 1010 ) { v89 = 0; v90 = 0; } else if ( v88 == 1011 || (v93 = GJEffectManager::getColorSprite(v3->m_effectManager, v88)) == nullptr ) { v90 = -1; v89 = -1; } else { v89 = *(_WORD *)&v93->m_copyColor.r; v90 = v93->m_copyColor.b; } *(_WORD *)&v128.r = v89; v128.b = v90; v133 = v88; } v94 = 0; } else { v94 = 0; v88 = 0; v133 = 0; v89 = -1; *(_WORD *)&v128.r = -1; v90 = -1; v128.b = -1; } if ( v33->m_groupCount > 0 ) { v142 = 0; v95 = 0; v144.m128_u64[0] = 0; v96 = 0; while ( 2 ) { if ( v96 <= 9 && (v97 = v33->m_groups) != nullptr ) { v98 = *(__int16 *)((char *)v97->_Elems + v95); v99 = v3->m_effectManager; if ( v98 < 0 ) v98 = 0; if ( v98 > 9999 ) v98 = 9999; } else { v99 = v3->m_effectManager; v98 = 0; } v132 = v98; if ( ((1 << (v98 & 0x1F)) & v99->m_unkVector2f0._Myvec._Mypair._Myval2._Myfirst[(unsigned __int64)v98 >> 5]) == 0 ) goto LABEL_191; *(_WORD *)&v130.r = v89; v130.b = v90; v100 = v99->m_pulseEffectMap._Vec._Mypair._Myval2._Myfirst; Myhead = *((std::_List_val>>>::_Nodeptr *)v100 + 2 * ((0x100000001B3LL * (HIBYTE(v132) ^ (0x100000001B3LL * (BYTE2(v132) ^ (0x100000001B3LL * (BYTE1(v132) ^ (0x100000001B3LL * ((unsigned __int8)v98 ^ 0xCBF29CE484222325uLL)))))))) & v99->m_pulseEffectMap._Mask) + 1); if ( Myhead == v99->m_pulseEffectMap._List._Mypair._Myval2._Myhead ) { LABEL_181: Myhead = nullptr; } else if ( v98 != *((_DWORD *)Myhead + 4) ) { while ( Myhead != *((std::_List_val>>>::_Nodeptr *)v100 + 2 * ((0x100000001B3LL * (HIBYTE(v132) ^ (0x100000001B3LL * (BYTE2(v132) ^ (0x100000001B3LL * (BYTE1(v132) ^ (0x100000001B3LL * ((unsigned __int8)v98 ^ 0xCBF29CE484222325uLL)))))))) & v99->m_pulseEffectMap._Mask)) ) { Myhead = *((std::_List_val>>>::_Nodeptr *)Myhead + 1); if ( v98 == *((_DWORD *)Myhead + 4) ) goto LABEL_182; } goto LABEL_181; } LABEL_182: if ( !Myhead ) Myhead = v99->m_pulseEffectMap._List._Mypair._Myval2._Myhead; if ( Myhead != v99->m_pulseEffectMap._List._Mypair._Myval2._Myhead ) { v102 = *((PulseEffectAction **)Myhead + 4); for ( m = *((PulseEffectAction **)Myhead + 3); m != v102; ++m ) { if ( !m->m_mainOnly || m->m_detailOnly ) { v104 = GJEffectManager::colorForPulseEffect( (cocos2d::ccColor3B *)v99, (GJEffectManager *)&v151, &v130, m); v89 = *(_WORD *)&v104->r; *(_WORD *)&v130.r = *(_WORD *)&v104->r; v90 = v104->b; v130.b = v90; } } v95 = v144.m128_u64[0]; } LABEL_191: *(_WORD *)&v128.r = v89; v128.b = v90; ++v142; ++v96; v95 += 2LL; v144.m128_u64[0] = v95; if ( v142 >= v33->m_groupCount ) { v88 = v133; LABEL_193: v94 = 0; break; } continue; } } v105 = (__m128 *)v33->m_detailColor; if ( v105[1].m128_f32[0] != *(float *)&dword_1406BA188 || v105[1].m128_f32[1] != *(float *)&dword_1406BA18C || v105[1].m128_f32[2] != *(float *)&dword_1406BA190 || v105[1].m128_i16[6] != (_WORD)dword_1406BA194 ) { *(_WORD *)&v139.r = v89; v139.b = v90; v144 = v105[1]; v128 = *GameToolbox::transformColor(v152, &v139, (cocos2d::ccHSVValue *)&v144); } v33->updateSecondaryColor(v33, &v128); v106 = 1.0; if ( v88 > 0 ) { v107 = GJEffectManager::getColorSprite(v3->m_effectManager, v88); if ( v107 ) v106 = v107->m_opacity / 255.0; else v106 = 1.0; } v108 = v33->m_groupCount; if ( v33->m_groupCount > 0 && v108 > 0 ) { v109 = v3->m_effectManager; v110 = 0; v111 = 0; v112 = (unsigned int)v108; do { if ( v111 <= 9 && (v113 = v33->m_groups) != nullptr ) v114 = v113->_Elems[v110]; else v114 = 0; v106 = v106 * GJEffectManager::opacityModForGroup(v109, v114); ++v111; ++v110; --v112; } while ( v112 ); v3 = a1; v94 = 0; } v33->m_detailColor->m_opacity = v106; GameVariable = v156.r; } else { v94 = 0; } if ( v33->m_unk367 ) { v140 = v134; v141 = v157; v115 = *(_QWORD *)&v33[1].m_sAdditionalTransform.d; if ( v115 ) { v116 = (cocos2d::CCArray *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v115 + 464LL))(v115); if ( cocos2d::CCArray::count(v116) ) { do { v117 = cocos2d::CCArray::objectAtIndex(v116, v94); (**(void (__fastcall ***)(__int64, __int16 *))&v117[5].m_unknown2)((__int64)&v117[5].m_unknown2, &v140); ++v94; } while ( v94 < cocos2d::CCArray::count(v116) ); } } } v30 = v131; v31 = v143; LABEL_219: if ( v3->m_previewMode ) { if ( v3->m_updateColorSprites && v33->m_colorSprite ) v33->setOpacity(&v33->cocos2d::CCRGBAProtocol, 0); } else { m_customColorType = v33->m_customColorType; if ( m_customColorType ) m_maybeNotColorable = m_customColorType == 1; else m_maybeNotColorable = v33->m_maybeNotColorable; if ( !m_maybeNotColorable && !v33->m_colorSprite ) { v120 = v33->m_baseColor->m_defaultColorID; if ( v120 != 1004 ) { if ( v120 ) v51 = v51 * 0.69999999; } } } v33->setOpacity(&v33->cocos2d::CCRGBAProtocol, (int)v51); if ( v3->m_previewMode || !v33->m_updateEditorColor || v33->m_isSelected ) v33->m_updateEditorColor = 0; else GameObject::updateObjectEditorColor(v33); v121 = v33->CCSpritePlus::cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; v122 = ((__int64 (__fastcall *)(std::_Simple_types::value_type, cocos2d::ccHSVValue *))v33->getRealPosition)( v33, &v147); v121->setPosition_0(v33, (const cocos2d::CCPoint *)v122); v131 = ++v30; v143 = ++v31; m_playbackMode = v145; } while ( v30 < v3->m_activeObjectsCount ); } GJBaseGameLayer::updateEnterEffects(v3, a2); GJBaseGameLayer::processAreaEffects(v3, &v3->m_gameState.m_fadeEffectInstances, (GJAreaActionType)3, a2, 1); GJBaseGameLayer::processAreaEffects(v3, &v3->m_gameState.m_tintEffectInstances, Tint, a2, 1); GJBaseGameLayer::updateParticles(v3, a2); v3->m_updateColorSprites = 0; m_batchNodes = v3->m_batchNodes; if ( m_batchNodes ) { v124 = m_batchNodes->data; v125 = v124->num; if ( (_DWORD)v125 ) { v126 = (cocos2d::CCSpriteBatchNode **)v124->arr; for ( n = &v126[v125 - 1]; v126 <= n; ++v126 ) { if ( !*v126 ) break; cocos2d::CCSpriteBatchNode::manualSortAllChildren(*v126); } } } LevelEditorLayer::updateKeyframeObjects(v3); v3->updateDebugDraw(v3); }
GD Web Decomp Icon

GD Web Decomp

Raw Source