//
// CharacterColorPage::onMode from 0x564f8c to 0x565074 (232 bytes)
//
// 0 xrefs:
//
// 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
//
void CharacterColorPage::onMode(CharacterColorPage *a1, cocos2d::CCObject *a2)
{
int v3; // r4
GameManager *v4; // r0
DialogObject *v5; // r0
DialogLayer *v6; // r8
int v7; // [sp+4h] [bp-20h]
_BYTE v8[4]; // [sp+10h] [bp-14h] BYREF
char v9; // [sp+14h] [bp-10h] BYREF
_BYTE v10[4]; // [sp+18h] [bp-Ch] BYREF
v3 = a2->getTag(a2);
if ( v3 == 2 && (v4 = GameManager::sharedState(), !GameManager::isIconUnlocked(v4, 2, Special)) )
{
sub_776584((int)v8, "Complete 10 Map Packs to unlock Glow.");
sub_776584((int)&v9, "The Shopkeeper");
sub_775C20(v10);
LOWORD(v7) = -1;
BYTE2(v7) = -1;
v5 = (DialogObject *)DialogObject::create(
(DialogObject *)&v9,
(std::string)v10,
(std::string)5,
1065353216,
0.0,
v7);
v6 = DialogLayer::create(v5, (int)&dword_0 + 2);
sub_774008(v10);
sub_774008(&v9);
a1->m_mainLayer->addChild_0(a1->m_mainLayer, v6, 100);
DialogLayer::updateChatPlacement(v6, Center);
DialogLayer::animateInRandomSide(v6);
sub_774008(v8);
}
else
{
CharacterColorPage::updateColorMode(a1, v3);
}
}