// // SetupTriggerPopup::createEasingControls from 0x9e9ea4 to 0x9ea5c0 (1820 bytes) // // 24 xrefs: // > SetupMoveCommandPopup::init @ 0x8e530c // > SetupRotateCommandPopup::init @ 0x9295b4 // > SetupStaticCameraPopup::init @ 0x96b4b8 // > SetupZoomTriggerPopup::init @ 0x96bf2c // > SetupTransformPopup::init @ 0x9a8d94 // > SetupCameraRotatePopup2::init @ 0x9ae004 // > SetupShaderEffectPopup::setupShockWave @ 0x9fda08 // > SetupShaderEffectPopup::setupShockLine @ 0x9fef60 // > SetupShaderEffectPopup::setupChromatic @ 0xa00494 // > SetupShaderEffectPopup::setupChromaticGlitch @ 0xa00da8 // > SetupShaderEffectPopup::setupPixelate @ 0xa01720 // > SetupShaderEffectPopup::setupLensCircle @ 0xa021e0 // > SetupShaderEffectPopup::setupRadialBlur @ 0xa02e50 // > SetupShaderEffectPopup::setupMotionBlur @ 0xa03c50 // > SetupShaderEffectPopup::setupBulge @ 0xa04944 // > SetupShaderEffectPopup::setupPinch @ 0xa05694 // > SetupShaderEffectPopup::setupGrayscale @ 0xa06040 // > SetupShaderEffectPopup::setupSepia @ 0xa06588 // > SetupShaderEffectPopup::setupInvertColor @ 0xa06c70 // > SetupShaderEffectPopup::setupHueShift @ 0xa072c8 // > SetupShaderEffectPopup::setupColorChange @ 0xa07954 // > SetupShaderEffectPopup::setupSplitScreen @ 0xa0811c // > SetupKeyframePopup::init @ 0xa3b70c // > @ 0x60d38 // // 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 // // local variable allocation has failed, the output may be wrong! void SetupTriggerPopup::createEasingControls(SetupTriggerPopup *a1, cocos2d::CCPoint a2, float a3, int a4, int a5) { int v5; // w3 const cocos2d::CCPoint *v6; // x27 float x; // s8 int v9; // w24 cocos2d::CCArray *PageContainer; // x25 cocos2d::CCArray *GroupContainer; // x26 cocos2d::CCLabelBMFont *v12; // x23 cocos2d::CCLabelBMFont *v13; // x0 cocos2d::CCLayer *m_mainLayer; // x2 cocos2d::CCLabelBMFont *m_easingLabel; // x22 void (__fastcall *setPosition)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x28 cocos2d::CCSprite *v17; // x28 cocos2d::CCLabelBMFont *v18; // x0 cocos2d::CCLabelBMFont *m_easingRateLabel; // x27 CCMenuItemSpriteExtra *v20; // x0 cocos2d::CCMenu *m_buttonMenu; // x2 CCMenuItemSpriteExtra *m_easingRateButton; // x27 cocos2d::CCLabelBMFont *v23; // x0 cocos2d::CCMenu *v24; // x28 const cocos2d::CCPoint *(__fastcall *getPosition)(cocos2d::CCNode *__hidden); // x1 void (__fastcall *v26)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x23 cocos2d::CCSprite *v27; // x23 CCMenuItemSpriteExtra *v28; // x23 cocos2d::CCSprite *v29; // x23 CCMenuItemSpriteExtra *v30; // x28 cocos2d::CCMenu *v31; // x27 void (__fastcall *v32)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x23 EffectGameObject *m_gameObject; // x1 cocos2d::CCArray *m_gameObjects; // x20 cocos2d::ccArray *data; // x1 unsigned int num; // w0 cocos2d::CCObject **arr; // x1 cocos2d::CCObject **v38; // x4 cocos2d::CCObject *v39; // x2 float v40; // s0 EasingType m_uAutoReleaseCount; // w0 cocos2d::CCMenu *v42; // [xsp+98h] [xbp+98h] void (__fastcall *v43)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // [xsp+A0h] [xbp+A0h] __int64 v44; // [xsp+A8h] [xbp+A8h] void (__fastcall *v45)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // [xsp+A8h] [xbp+A8h] __int64 v46; // [xsp+A8h] [xbp+A8h] const cocos2d::CCPoint *v47; // [xsp+A8h] [xbp+A8h] const cocos2d::CCPoint *v48; // [xsp+A8h] [xbp+A8h] cocos2d::CCPoint v49; // [xsp+B0h] [xbp+B0h] BYREF cocos2d::CCPoint v50; // [xsp+B8h] [xbp+B8h] BYREF __int64 v51; // [xsp+C0h] [xbp+C0h] BYREF cocos2d::CCPoint v52; // 0:kr08_8.8 cocos2d::CCPoint v53; // 0:kr10_8.8 cocos2d::CCPoint v54; // 0:kr18_8.8 cocos2d::SEL_MenuHandler v55; // 0:x2.16 cocos2d::SEL_MenuHandler v56; // 0:x2.16 cocos2d::SEL_MenuHandler v57; // 0:x2.16 v6 = *(const cocos2d::CCPoint **)&a4; x = a2.x; v9 = v5; PageContainer = SetupTriggerPopup::getPageContainer(a1, a5); GroupContainer = SetupTriggerPopup::getGroupContainer(a1, v9); a1->m_easingControlScale = x; v12 = cocos2d::CCLabelBMFont::create(); v12->setPosition(v12, v6); a1->m_mainLayer->addChild(a1->m_mainLayer, v12); v12->setScale(v12, x * 0.8); if ( v9 > 0 ) cocos2d::CCArray::addObject(GroupContainer, v12); cocos2d::CCArray::addObject(PageContainer, v12); v13 = cocos2d::CCLabelBMFont::create(); m_mainLayer = a1->m_mainLayer; a1->m_easingLabel = v13; m_mainLayer->addChild(m_mainLayer, v13); m_easingLabel = a1->m_easingLabel; setPosition = m_easingLabel->setPosition; v44 = (__int64)v12->getPosition(v12); cocos2d::CCPoint::CCPoint(&v50, 0.0, -(float)(x * 30.0)); cocos2d::CCPoint::operator+(&v51, v44, &v50); setPosition(m_easingLabel, (const cocos2d::CCPoint *)&v51); a1->m_easingLabel->setScale(a1->m_easingLabel, x * 0.7); if ( v9 > 0 ) cocos2d::CCArray::addObject(GroupContainer, a1->m_easingLabel); cocos2d::CCArray::addObject(PageContainer, a1->m_easingLabel); v17 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_colorBtn_001.png"); v17->setColor(v17, (const cocos2d::ccColor3B *)&unk_F06470); v17->setOpacity(v17, 100); v18 = cocos2d::CCLabelBMFont::create(); a1->m_easingRateLabel = v18; v17->addChild(v17, v18); a1->m_easingRateLabel->setScaleX(a1->m_easingRateLabel, (float)(x * 0.3) / (float)(x * 0.8)); a1->m_easingRateLabel->setScaleY(a1->m_easingRateLabel, (float)(x * 0.3) / (float)(x * 0.4)); m_easingRateLabel = a1->m_easingRateLabel; v45 = m_easingRateLabel->setPosition; cocos2d::CCNode::convertToNodeSpace(v17, &stru_1243EB0); cocos2d::CCPoint::CCPoint(&v50, 1.0, 1.5); cocos2d::CCPoint::operator+(&v51, &v49, &v50); v45(m_easingRateLabel, (const cocos2d::CCPoint *)&v51); v17->setScaleX(v17, x * 0.8); v17->setScaleY(v17, x * 0.4); v55.ptr = (void (__cdecl *)(cocos2d::CCObject *))a1; v55.adj = (size_t)SetupTriggerPopup::onEaseRate; v20 = CCMenuItemSpriteExtra::create(v17, nullptr, v55); m_buttonMenu = a1->m_buttonMenu; a1->m_easingRateButton = v20; m_buttonMenu->addChild(m_buttonMenu, v20); m_easingRateButton = a1->m_easingRateButton; v23 = v12; v24 = a1->m_buttonMenu; getPosition = v12->getPosition; v26 = m_easingRateButton->setPosition; v46 = (__int64)getPosition(v23); cocos2d::CCPoint::CCPoint(&v49, x * 55.0, x * -2.0); cocos2d::CCPoint::operator+(&v50, v46, &v49); v52 = cocos2d::CCNode::convertToNodeSpace(v24, &v50); ((void (__fastcall *)(CCMenuItemSpriteExtra *, __int64 *, float, float))v26)(m_easingRateButton, &v51, v52.x, v52.y); CCMenuItemSpriteExtra::setSizeMult(a1->m_easingRateButton, 1.2); if ( v9 > 0 ) cocos2d::CCArray::addObject(GroupContainer, a1->m_easingRateButton); cocos2d::CCArray::addObject(PageContainer, a1->m_easingRateButton); v27 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_arrow_01_001.png"); cocos2d::CCSprite::setFlipX(v27, 1); v27->setScale(v27, x * 0.7); v56.adj = (size_t)SetupTriggerPopup::onEase; v56.ptr = (void (__cdecl *)(cocos2d::CCObject *))a1; v28 = CCMenuItemSpriteExtra::create(v27, nullptr, v56); a1->m_buttonMenu->addChild(a1->m_buttonMenu, v28); v43 = v28->setPosition; v42 = a1->m_buttonMenu; v47 = a1->m_easingLabel->getPosition(a1->m_easingLabel); cocos2d::CCPoint::CCPoint(&v49, x * 100.0, 0.0); cocos2d::CCPoint::operator+(&v50, v47, &v49); v53 = cocos2d::CCNode::convertToNodeSpace(v42, &v50); ((void (__fastcall *)(CCMenuItemSpriteExtra *, __int64 *, float, float))v43)(v28, &v51, v53.x, v53.y); CCMenuItemSpriteExtra::setSizeMult(v28, 1.4); v28->setTag(v28, 1); if ( v9 > 0 ) cocos2d::CCArray::addObject(GroupContainer, v28); cocos2d::CCArray::addObject(PageContainer, v28); v29 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_arrow_01_001.png"); v29->setScale(v29, x * 0.7); v57.adj = (size_t)SetupTriggerPopup::onEase; v57.ptr = (void (__cdecl *)(cocos2d::CCObject *))a1; v30 = CCMenuItemSpriteExtra::create(v29, nullptr, v57); a1->m_buttonMenu->addChild(a1->m_buttonMenu, v30); v31 = a1->m_buttonMenu; v32 = v30->setPosition; v48 = a1->m_easingLabel->getPosition(a1->m_easingLabel); cocos2d::CCPoint::CCPoint(&v49, -(float)(x * 100.0), 0.0); cocos2d::CCPoint::operator+(&v50, v48, &v49); v54 = cocos2d::CCNode::convertToNodeSpace(v31, &v50); ((void (__fastcall *)(CCMenuItemSpriteExtra *, __int64 *, float, float))v32)(v30, &v51, v54.x, v54.y); CCMenuItemSpriteExtra::setSizeMult(v30, 1.4); v30->setTag(v30, 0); if ( v9 > 0 ) cocos2d::CCArray::addObject(GroupContainer, v30); cocos2d::CCArray::addObject(PageContainer, v30); m_gameObject = a1->m_gameObject; a1->m_easingType = -99999; a1->m_easingRate = -99999.0; if ( m_gameObject ) { m_gameObjects = (cocos2d::CCArray *)cocos2d::CCArray::create((cocos2d::CCArray *)0xFFFE7961LL); cocos2d::CCArray::addObject(m_gameObjects, a1->m_gameObject); } else { m_gameObjects = a1->m_gameObjects; } if ( m_gameObjects ) { if ( (unsigned int)cocos2d::CCArray::count(m_gameObjects) ) { data = m_gameObjects->data; num = data->num; if ( data->num ) { arr = data->arr; v38 = &arr[num - 1]; if ( arr <= v38 ) { v39 = *arr; if ( *arr ) { v40 = -99999.0; m_uAutoReleaseCount = -99999; do { if ( m_uAutoReleaseCount == -99999 ) { m_uAutoReleaseCount = v39[26].m_uAutoReleaseCount; } else if ( m_uAutoReleaseCount != v39[26].m_uAutoReleaseCount ) { m_uAutoReleaseCount = -99998; } if ( v40 == -99999.0 ) { v40 = *(float *)&v39[26].m_eObjType; } else if ( v40 != *(float *)&v39[26].m_eObjType ) { v40 = -99998.0; } if ( v38 < ++arr ) break; v39 = *arr; } while ( *arr ); if ( m_uAutoReleaseCount != -99999 ) a1->m_easingType = m_uAutoReleaseCount; if ( v40 != -99999.0 ) a1->m_easingRate = v40; } } } } } SetupTriggerPopup::updateEaseLabel(a1); SetupTriggerPopup::updateEaseRateLabel(a1); SetupTriggerPopup::toggleEaseRateVisibility(a1); }
GD Web Decomp Icon

GD Web Decomp

Raw Source