// // CharacterColorPage::onMode from 0x69ddf4 to 0x69df0a (278 bytes) // // 0 xrefs: // // 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:56:20 +0000 // int __fastcall CharacterColorPage::onMode(CharacterColorPage *this, cocos2d::CCObject *a2) { int v3; // r5 int v4; // r0 DialogLayer *v6; // r0 int v7; // r2 int v8; // r3 cocos2d::CCDirector *v9; // r9 int v10; // [sp+4h] [bp-30h] int v11; // [sp+8h] [bp-2Ch] BYREF size_t v12; // [sp+Ch] [bp-28h] const void *v13; // [sp+10h] [bp-24h] int v14[3]; // [sp+14h] [bp-20h] BYREF int v15; // [sp+20h] [bp-14h] BYREF size_t v16; // [sp+24h] [bp-10h] const void *v17; // [sp+28h] [bp-Ch] v3 = (*(int (__fastcall **)(cocos2d::CCObject *))(*(_DWORD *)a2 + 32))(a2); if ( v3 != 2 ) return CharacterColorPage::updateColorMode(this, v3); v4 = GameManager::sharedState((GameManager *)((char *)&dword_0 + 2)); if ( GameManager::isIconUnlocked(v4, 2, 0x63u) ) return CharacterColorPage::updateColorMode(this, v3); v11 = 0; v12 = 0; v13 = nullptr; std::string::__init(&v11, "Complete 10 Map Packs to unlock Glow.", 0x3Du); memset(v14, 0, sizeof(v14)); std::string::__init(v14, "The Shopkeeper", 0xEu); v15 = 0; v16 = 0; v17 = nullptr; if ( (v11 & 1) != 0 ) { std::string::__init(&v15, v13, v12); } else { v15 = v11; v16 = v12; v17 = v13; } LOWORD(v10) = -1; BYTE2(v10) = -1; v6 = (DialogLayer *)DialogObject::create((int)v14, (int)&v15, 5, 1065353216, 0, v10); v9 = DialogLayer::create(v6, (DialogObject *)((char *)&dword_0 + 2), v7, v8); std::string::~string((int)&v15); std::string::~string((int)v14); (*(void (__fastcall **)(_DWORD, cocos2d::CCDirector *, int))(**((_DWORD **)this + 115) + 232))( *((_DWORD *)this + 115), v9, 100); DialogLayer::updateChatPlacement(v9, 0); DialogLayer::animateInRandomSide(v9); return std::string::~string((int)&v11); }