// // SetupSequenceTriggerPopup::init from 0x1004dd8e0 to 0x1004de64f (3439 bytes) // // 1 xrefs: // > SetupSequenceTriggerPopup::create @ 0x1004dd8a0 // // 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 // bool __fastcall SetupSequenceTriggerPopup::init(SetupSequenceTriggerPopup *a1, SequenceTriggerGameObject *a2) { bool result; // al cocos2d::CCArray *v3; // rax cocos2d::CCLabelBMFont *v4; // rbx ButtonSprite *v5; // rax CCMenuItemSpriteExtra *v6; // rax __int64 v7; // r14 cocos2d::CCMenu *m_buttonMenu; // rbx cocos2d::CCMenu *v10; // rbx int i; // r13d void (__fastcall *v12)(SetupSequenceTriggerPopup *, cocos2d::CCObject *); // r12 const char *data; // rdi cocos2d::CCSprite *v14; // rbx __int64 v15; // xmm0_8 const char *v16; // r8 ButtonSprite *v17; // rax CCMenuItemSpriteExtra *v18; // r12 cocos2d::extension::CCScale9Sprite *v19; // r14 int v20; // ebx int v21; // ebx cocos2d::CCNode v22; // [rsp+38h] [rbp-1B8h] BYREF std::string v23; // [rsp+178h] [rbp-78h] BYREF std::string v24; // [rsp+190h] [rbp-60h] BYREF unsigned __int64 v25; // [rsp+1ACh] [rbp-44h] BYREF float v26; // [rsp+1B4h] [rbp-3Ch] BYREF float v27; // [rsp+1B8h] [rbp-38h] bool v28; // [rsp+1BFh] [rbp-31h] unsigned __int64 v29[6]; // [rsp+1C0h] [rbp-30h] BYREF double v30; // 0:xmm0_8.8 double v31; // 0:xmm0_8.8 cocos2d::CCRect v32; // 0:xmm0_8.8,8:xmm1_8.8 result = SetupTriggerPopup::init(a1, a2, nullptr, 420.0, 300.0, 1); if ( !result ) return result; v28 = result; SetupTriggerPopup::preSetup(a1); v3 = (cocos2d::CCArray *)sub_10071F9E0(a1, a2); a1->m_groupButtons = v3; cocos2d::CCObject::retain(v3); cocos2d::CCDirector::sharedDirector(); *(cocos2d::CCSize *)&v30 = cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)&v26); v4 = cocos2d::CCLabelBMFont::create_3("Sequence Trigger", "goldFont.fnt"); ((void (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCLabelBMFont *, double))a1->m_mainLayer->addChild)( a1->m_mainLayer, v4, v30); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, float))v4->setScale)(v4, 0.69999999); sub_10028CBE0((float *)&v23, v26 * 0.5, (float)((float)(a1->m_height * 0.5) + (float)(v27 * 0.5)) + -18.0); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, std::string *))v4->setPosition)(v4, &v23); v5 = ButtonSprite::create_1("OK", 40, 0, 0.80000001, 1, "goldFont.fnt", "GJ_button_01.png", 30.0); v6 = CCMenuItemSpriteExtra::create(v5, nullptr, a1, (cocos2d::SEL_MenuHandler)0x529uLL); ((void (__fastcall *)(cocos2d::CCMenu *, CCMenuItemSpriteExtra *))a1->m_buttonMenu->addChild)(a1->m_buttonMenu, v6); LOBYTE(v22.m_uID) = 8; strcpy((char *)&v22.m_uID + 1, "Help"); *(_QWORD *)&v22.m_uOrderOfArrival = operator new(0x1E8u); *(_QWORD *)&v22.m_uIndexInArray = 489; *(_QWORD *)&v22.m_unknown2 = 485; strcpy( *(char **)&v22.m_uOrderOfArrival, "Activates a sequence of triggers. Every time it is called, the sequence is advanced one step.\n" "GroupID is called the amount of times given by Count.\n" "MinInt is the minimum interval between each step.\n" "Mode Stop stops the sequence at the end.\n" "Mode Loop restarts the sequence after ending.\n" "Mode Last calls last group after the end.\n" "Reset Full and Reset Step go back in the sequence if activation does not happen in a set time."); v7 = InfoAlertButton::create(&v22.m_uID, &v22.m_uIndexInArray, 1.0); if ( (v22.m_uIndexInArray & 1) != 0 ) operator delete(*(void **)&v22.m_uOrderOfArrival); if ( (v22.m_uID & 1) != 0 ) operator delete(*(void **)&v22.m_uAutoReleaseCount); ((void (__fastcall *)(cocos2d::CCMenu *, __int64))a1->m_buttonMenu->addChild)(a1->m_buttonMenu, v7); m_buttonMenu = a1->m_buttonMenu; sub_10028CBE0( (float *)&v24, (float)((float)(v26 * 0.5) - (float)(a1->m_width * 0.5)) + 18.0, (float)((float)(a1->m_height * 0.5) + (float)(v27 * 0.5)) + -18.0); *(cocos2d::CCPoint *)&v31 = cocos2d::CCNode::convertToNodeSpace( (cocos2d::CCNode *)&v23, (const cocos2d::CCPoint *)m_buttonMenu); (*(void (__fastcall **)(__int64, std::string *, double))(*(_QWORD *)v7 + 184LL))(v7, &v23, v31); sub_10028CBE0((float *)&v22.m_nUpdateScriptHandler, (float)(v26 * 0.5) + -65.0, (float)(v27 * 0.5) + 82.0); LOBYTE(v22.m_fRotationX) = 16; strcpy((char *)&v22.m_fRotationX + 1, "GroupID:"); sub_10028CBE0((float *)&v24, -55.0, 0.0); sub_10028CCE0((double *)&v23, (unsigned __int64 *)&v22.m_nUpdateScriptHandler, (unsigned __int64 *)&v24); SetupTriggerPopup::createValueControlAdvanced( (__int64)a1, 0xFFFFFFFFLL, (__int64)&v22.m_fRotationX, (float *)&v23, 1, Uint, 0.69999999, 0.0, 100.0, 6, 1, 0, 0, 0, 2, 0); if ( (LOBYTE(v22.m_fRotationX) & 1) != 0 ) operator delete(*(void **)&v22.m_fVertexZ); LOBYTE(v22.m_sTransform.d) = 12; strcpy((char *)&v22.m_sTransform.d + 1, "Count:"); sub_10028CBE0((float *)&v24, 55.0, 0.0); sub_10028CCE0((double *)&v23, (unsigned __int64 *)&v22.m_nUpdateScriptHandler, (unsigned __int64 *)&v24); SetupTriggerPopup::createValueControlAdvanced( (__int64)a1, 4294967294LL, (__int64)&v22.m_sTransform.d, (float *)&v23, 1, Int, 0.69999999, 0.0, 100.0, 6, 1, 0, 0, 0, 2, 0); if ( (LOBYTE(v22.m_sTransform.d) & 1) != 0 ) operator delete(*(void **)&v22.m_sInverse.b); *(_QWORD *)&v22.m_bUseChildIndex = &v22.m_obAnchorPointInPoints.y; v10 = a1->m_buttonMenu; sub_10028CBE0((float *)&v24, 130.0, 0.0); sub_10028CCE0((double *)&v23, (unsigned __int64 *)&v22.m_nUpdateScriptHandler, (unsigned __int64 *)&v24); cocos2d::CCNode::convertToNodeSpace(&v22, (const cocos2d::CCPoint *)v10); for ( i = 0; i != 4; ++i ) { strcpy((char *)&v23, "(edit_addCBtn_001.png"); strcpy((char *)&v24, " GJ_button_01.png"); v12 = SetupSequenceTriggerPopup::onAddChance; if ( i ) { if ( i == 1 ) { std::string::assign(&v23, "edit_delCBtn_001.png"); std::string::assign(&v24, "GJ_button_06.png"); v12 = SetupSequenceTriggerPopup::onDeleteSelected; } else { std::string::assign(&v23, "edit_upBtn_001.png"); std::string::assign(&v24, "GJ_button_05.png"); v12 = SetupSequenceTriggerPopup::onChangeOrder; } } data = v23.__r_.__value_.__s.__data_; if ( (*(_BYTE *)&v23.__r_.__value_.__s.0 & 1) != 0 ) data = v23.__r_.__value_.__l.__data_; v14 = cocos2d::CCSprite::createWithSpriteFrameName(data); v15 = 3266576384LL; if ( i != 2 ) { if ( i != 3 ) goto LABEL_22; v15 = 1119092736; } ((void (__fastcall *)(cocos2d::CCSprite *, double))v14->setRotation)(v14, *(double *)&v15); LABEL_22: v16 = v24.__r_.__value_.__s.__data_; if ( (*(_BYTE *)&v24.__r_.__value_.__s.0 & 1) != 0 ) v16 = v24.__r_.__value_.__l.__data_; v17 = ButtonSprite::create(v14, 32, 0, 32.0, 1.0, 1, v16, 1); v18 = CCMenuItemSpriteExtra::create(v17, nullptr, a1, (cocos2d::SEL_MenuHandler)(unsigned __int64)v12); ((void (__fastcall *)(CCMenuItemSpriteExtra *, float))v18->setScale)(v18, 0.60000002); v18->m_baseScale = 0.60000002; ((void (__fastcall *)(cocos2d::CCMenu *, CCMenuItemSpriteExtra *))a1->m_buttonMenu->addChild)(a1->m_buttonMenu, v18); sub_10028CBE0((float *)&v25, (float)i * 32.0, 0.0); sub_10028CCE0((double *)v29, (unsigned __int64 *)&v22, &v25); ((void (__fastcall *)(CCMenuItemSpriteExtra *, unsigned __int64 *))v18->setPosition)(v18, v29); ((void (__fastcall *)(CCMenuItemSpriteExtra *, _QWORD))v18->setTag)(v18, (unsigned int)i); if ( (*(_BYTE *)&v24.__r_.__value_.__s.0 & 1) != 0 ) { operator delete(v24.__r_.__value_.__l.__data_); if ( (*(_BYTE *)&v23.__r_.__value_.__s.0 & 1) == 0 ) continue; } else if ( (*(_BYTE *)&v23.__r_.__value_.__s.0 & 1) == 0 ) { continue; } operator delete(v23.__r_.__value_.__l.__data_); } v32.origin = 0; v32.size = 0; sub_10028CC00((__int64)&v23, 0.0, 0.0, (__m128)0x42A00000u, (__m128)0x42A00000u); v19 = cocos2d::extension::CCScale9Sprite::create_2("square02_001.png", v32); ((void (__fastcall *)(cocos2d::extension::CCScale9Sprite *, __int64))v19->setOpacity)(v19, 50); sub_10028CBF0((float *)&v23, 370.0, 90.0); ((void (__fastcall *)(cocos2d::extension::CCScale9Sprite *, std::string *))v19->setContentSize)(v19, &v23); ((void (__fastcall *)(cocos2d::CCLayer *, cocos2d::extension::CCScale9Sprite *, __int64))a1->m_mainLayer->addChild_0)( a1->m_mainLayer, v19, 0xFFFFFFFFLL); sub_10028CBE0((float *)&v23, v26 * 0.5, (float)(v27 * 0.5) + 14.0); ((void (__fastcall *)(cocos2d::extension::CCScale9Sprite *, std::string *))v19->setPosition)(v19, &v23); sub_10028CBE0((float *)&v23, v26 * 0.5, (float)(v27 * 0.5) + -50.0); LOBYTE(v22.m_sInverse.d) = 14; strcpy((char *)&v22.m_sInverse.d + 1, "MinInt:"); sub_10028CBE0((float *)v29, -91.0, -0.0); sub_10028CCE0((double *)&v24, (unsigned __int64 *)&v23, v29); SetupTriggerPopup::createValueControlAdvanced( (__int64)a1, 437, (__int64)&v22.m_sInverse.d, (float *)&v24, 0, Float, 0.64999998, 0.0, 1.0, 6, 0, 0, 0, 1, 2, 0); if ( (LOBYTE(v22.m_sInverse.d) & 1) != 0 ) operator delete(v22.m_pCamera); LOBYTE(v22.m_pGrid) = 12; strcpy((char *)&v22.m_pGrid + 1, "Reset:"); sub_10028CBE0((float *)v29, 91.0, -0.0); sub_10028CCE0((double *)&v24, (unsigned __int64 *)&v23, v29); SetupTriggerPopup::createValueControlAdvanced( (__int64)a1, 438, (__int64)&v22.m_pGrid, (float *)&v24, 0, Float, 0.64999998, 0.0, 1.0, 6, 0, 0, 0, 1, 2, 0); if ( ((__int64)v22.m_pGrid & 1) != 0 ) operator delete(v22.m_pParent); sub_10028CBE0((float *)v29, -25.0, -34.0); sub_10028CCE0((double *)&v24, (unsigned __int64 *)&v23, v29); LODWORD(v22.m_pComponentContainer) = ((float (__fastcall *)(SetupSequenceTriggerPopup *, __int64))a1->getValue)( a1, 436); HIDWORD(v22.m_pComponentContainer) = ((float (__fastcall *)(SetupSequenceTriggerPopup *, __int64))a1->getValue)( a1, 439); LOBYTE(v22.m_obPosition.y) = 18; strcpy((char *)&v22.m_obPosition.y + 1, "Mode\nStop"); sub_10028CBE0((float *)&v25, -158.0, 0.0); sub_10028CCE0((double *)v29, (unsigned __int64 *)&v24, &v25); v20 = (int)*(float *)&v22.m_pComponentContainer; SetupTriggerPopup::createCustomToggleValueControl( (__int64)a1, 0, (int)*(float *)&v22.m_pComponentContainer == 0, 1, (__int128 *)&v22.m_obPosition.y, (__int64)v29, 0, 0, 0); if ( (LOBYTE(v22.m_obPosition.y) & 1) != 0 ) operator delete(*(void **)&v22.m_obAnchorPointInPoints.y); LOBYTE(v22.m_obAnchorPoint.y) = 18; strcpy((char *)&v22.m_obAnchorPoint.y + 1, "Mode\nLoop"); sub_10028CBE0((float *)&v25, -79.0, 0.0); sub_10028CCE0((double *)v29, (unsigned __int64 *)&v24, &v25); SetupTriggerPopup::createCustomToggleValueControl( (__int64)a1, 1, v20 == 1, 1, (__int128 *)&v22.m_obAnchorPoint.y, (__int64)v29, 0, 0, 0); if ( (LOBYTE(v22.m_obAnchorPoint.y) & 1) != 0 ) operator delete(*(void **)&v22.m_sAdditionalTransform.b); LOBYTE(v22.m_sAdditionalTransform.d) = 18; strcpy((char *)&v22.m_sAdditionalTransform.d + 1, "Mode\nLast"); sub_10028CBE0((float *)&v25, 0.0, 0.0); sub_10028CCE0((double *)v29, (unsigned __int64 *)&v24, &v25); SetupTriggerPopup::createCustomToggleValueControl( (__int64)a1, 2, v20 == 2, 1, (__int128 *)&v22.m_sAdditionalTransform.d, (__int64)v29, 0, 0, 0); if ( (LOBYTE(v22.m_sAdditionalTransform.d) & 1) != 0 ) operator delete(*(void **)&v22.m_sTransform.b); LOBYTE(v22.m_pUserData) = 20; strcpy((char *)&v22.m_pUserData + 1, "Reset\nFull"); sub_10028CBE0((float *)&v25, 79.0, 0.0); sub_10028CCE0((double *)v29, (unsigned __int64 *)&v24, &v25); v21 = (int)*((float *)&v22.m_pComponentContainer + 1); SetupTriggerPopup::createCustomToggleValueControl( (__int64)a1, 100, (int)*((float *)&v22.m_pComponentContainer + 1) != 1, 1, (__int128 *)&v22.m_pUserData, (__int64)v29, 0, 0, 0); if ( ((__int64)v22.m_pUserData & 1) != 0 ) operator delete(v22.m_pShaderProgram); LOBYTE(v22.m_eGLServerState) = 20; strcpy((char *)&v22.m_eGLServerState + 1, "Reset\nStep"); sub_10028CBE0((float *)&v25, 158.0, 0.0); sub_10028CCE0((double *)v29, (unsigned __int64 *)&v24, &v25); SetupTriggerPopup::createCustomToggleValueControl( (__int64)a1, 101, v21 == 1, 1, (__int128 *)&v22.m_eGLServerState, (__int64)v29, 0, 0, 0); if ( (v22.m_eGLServerState & 1) != 0 ) operator delete(v22.m_pActionManager); v22.m_bRunning = 24; strcpy((char *)&v22.m_bTransformDirty, "Unique\nRemap"); sub_10028CBE0( (float *)v29, (float)(v26 * 0.5) + 55.0, (float)((float)(v27 * 0.5) - (float)(0.5 * a1->m_height)) + 20.0); SetupTriggerPopup::createToggleValueControl((int)a1, 505, (__int128 *)&v22.m_bRunning, 1.0, (__int64)v29, 0, 0, 0); if ( v22.m_bRunning ) operator delete(*(void **)&v22.m_bReorderChildDirty); SetupTriggerPopup::createMultiTriggerItemsDefaultHorizontal(a1); SetupSequenceTriggerPopup::updateGroupIDButtons(a1); SetupTriggerPopup::postSetup(a1); SetupTriggerPopup::updateValue(a1, -2, 1.0); return v28; }
GD Web Decomp Icon

GD Web Decomp

Raw Source