// // DialogLayer::init from 0x609b04 to 0x609dde (730 bytes) // // 1 xrefs: // > DialogLayer::createDialogLayer @ 0x609ec6 // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 11:54:47 +0000 // cocos2d::CCDirector *__fastcall DialogLayer::init( DialogLayer *this, DialogObject *a2, cocos2d::CCArray *a3, const char *a4) { cocos2d::CCDirector *v8; // r0 cocos2d::CCDirector *v9; // r9 cocos2d::CCDirector *WinSize; // r0 int v11; // r0 cocos2d::CCTouchDispatcher *v12; // r0 cocos2d::CCLayer *v13; // r0 int v14; // r0 int v15; // r3 int v16; // r6 void (__fastcall *v17)(int, char *); // r7 cocos2d::CCString *v18; // r0 const char *CString; // r0 const char *v20; // r6 size_t v21; // r0 char *v22; // r8 int v23; // r8 void (__fastcall *v24)(int, char *); // r11 const char *v25; // r2 int v26; // r0 int v27; // r8 void (__fastcall *v28)(int, char *); // r11 int v29; // r8 void (__fastcall *v30)(int, char *); // r11 int v31; // r6 void (__fastcall *v32)(int, char *); // r8 void (__fastcall *v33)(int, char *); // r2 const char *v34; // r1 int v35; // r0 int v36; // r6 void (__fastcall *v37)(int, char *); // r8 float v39[2]; // [sp+10h] [bp-44h] BYREF _BYTE v40[8]; // [sp+18h] [bp-3Ch] BYREF int v41[2]; // [sp+20h] [bp-34h] BYREF char *v42; // [sp+28h] [bp-2Ch] _BYTE v43[16]; // [sp+2Ch] [bp-28h] BYREF char v44; // [sp+3Ch] [bp-18h] BYREF char v45; // [sp+3Dh] [bp-17h] char v46; // [sp+3Eh] [bp-16h] char v47; // [sp+3Fh] [bp-15h] v44 = 0; v45 = 0; v46 = 0; v47 = -106; v8 = (cocos2d::CCDirector *)cocos2d::CCLayerColor::initWithColor(this, &v44); v9 = v8; if ( v8 ) { if ( a3 ) { *((_DWORD *)this + 118) = a3; v8 = (cocos2d::CCDirector *)cocos2d::CCObject::retain(a3); } cocos2d::CCDirector::sharedDirector(v8); WinSize = (cocos2d::CCDirector *)cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)v39); v11 = cocos2d::CCDirector::sharedDirector(WinSize); v12 = (cocos2d::CCTouchDispatcher *)(*(int (__fastcall **)(int))(*(_DWORD *)v11 + 80))(v11); cocos2d::CCTouchDispatcher::registerForcePrio(v12, this, 2, 0); (*(void (__fastcall **)(DialogLayer *, int))(*(_DWORD *)this + 500))(this, 1); (*(void (__fastcall **)(DialogLayer *, int))(*(_DWORD *)this + 536))(this, 1); v13 = (cocos2d::CCLayer *)(*(int (__fastcall **)(DialogLayer *, int))(*(_DWORD *)this + 544))(this, 1); v14 = cocos2d::CCLayer::create(v13); v15 = *(_DWORD *)this; *((_DWORD *)this + 114) = v14; (*(void (__fastcall **)(DialogLayer *, int))(v15 + 228))(this, v14); (*(void (__fastcall **)(_DWORD, void *))(**((_DWORD **)this + 114) + 160))(*((_DWORD *)this + 114), &unk_D2C8A0); v16 = *((_DWORD *)this + 114); v17 = *(void (__fastcall **)(int, char *))(*(_DWORD *)v16 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v44, v39[0] * 0.5, v39[1] * 0.5); v17(v16, &v44); v18 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"GJ_square%02d.png", a4); CString = (const char *)cocos2d::CCString::getCString(v18); v41[0] = 0; v41[1] = 0; v42 = nullptr; v20 = CString; v21 = strlen(CString); std::string::__init(v41, v20, v21); if ( (v41[0] & 1) != 0 ) v22 = v42; else v22 = (char *)v41 + 1; cocos2d::CCRect::CCRect((cocos2d::CCRect *)&v44, 0.0, 0.0, 80.0, 80.0); v23 = cocos2d::extension::CCScale9Sprite::create(v22, &v44); v24 = *(void (__fastcall **)(int, char *))(*(_DWORD *)v23 + 160); cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v44, 380.0, 100.0); v24(v23, &v44); (*(void (__fastcall **)(_DWORD, int, int))(**((_DWORD **)this + 114) + 232))(*((_DWORD *)this + 114), v23, -2); v26 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)" ", "bigFont.fnt", v25); *((_DWORD *)this + 115) = v26; (*(void (__fastcall **)(_DWORD, int, int))(**((_DWORD **)this + 114) + 232))(*((_DWORD *)this + 114), v26, 2); v27 = *((_DWORD *)this + 115); v28 = *(void (__fastcall **)(int, char *))(*(_DWORD *)v27 + 148); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v44, 0.0, 1.0); v28(v27, &v44); v29 = *((_DWORD *)this + 115); v30 = *(void (__fastcall **)(int, char *))(*(_DWORD *)v29 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v44, -93.0, 36.0); v30(v29, &v44); cocos2d::CCLabelBMFont::limitLabelWidth(*((cocos2d::CCLabelBMFont **)this + 115), 200.0, 0.5, 0.0); cocos2d::CCRect::CCRect((cocos2d::CCRect *)v43, 0.0, 0.0, 80.0, 80.0); cocos2d::CCRect::CCRect((cocos2d::CCRect *)&v44, (const cocos2d::CCRect *)v43); v31 = cocos2d::extension::CCScale9Sprite::create("square02b_001.png", &v44); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v40, 280.0, 80.0); (*(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v31 + 160))(v31, v40); (*(void (__fastcall **)(_DWORD, int, int))(**((_DWORD **)this + 114) + 232))(*((_DWORD *)this + 114), v31, -1); v32 = *(void (__fastcall **)(int, char *))(*(_DWORD *)v31 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v44, 40.0, 0.0); v32(v31, &v44); v33 = *(void (__fastcall **)(int, char *))(*(_DWORD *)v31 + 480); v44 = 0; v45 = 0; v46 = 0; v33(v31, &v44); (*(void (__fastcall **)(int, int))(*(_DWORD *)v31 + 456))(v31, 50); v35 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_chatBtn_01_001.png", v34); *((_DWORD *)this + 120) = v35; (*(void (__fastcall **)(_DWORD, int, int))(**((_DWORD **)this + 114) + 232))(*((_DWORD *)this + 114), v35, 3); v36 = *((_DWORD *)this + 120); v37 = *(void (__fastcall **)(int, char *))(*(_DWORD *)v36 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v44, 0.0, -50.0); v37(v36, &v44); (*(void (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 120) + 456))(*((_DWORD *)this + 120), 0); if ( *((_DWORD *)this + 118) ) DialogLayer::displayNextObject((cocos2d::CCArray **)this); else DialogLayer::displayDialogObject((int)this, a2); DialogLayer::updateNavButtonFrame(this); std::string::~string((int)v41); } return v9; }
GD Web Decomp Icon

GD Web Decomp

Raw Source