// // CustomizeObjectLayer::onSelectMode from 0x1001f74a0 to 0x1001f769c (508 bytes) // // 4 xrefs: // > CustomizeObjectLayer::init @ 0x1001f720c // > CustomizeObjectLayer::init @ 0x1001f553c // > CustomizeObjectLayer::init @ 0x1001f563f // > CustomizeObjectLayer::init @ 0x1001f66b7 // // 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 __fastcall CustomizeObjectLayer::onSelectMode(CustomizeObjectLayer *a1, cocos2d::CCObject *a2) { char v2; // al int v4; // eax cocos2d::CCLabelBMFont *m_titleLabel; // rdi const char *v6; // r8 const char *v7; // rsi ButtonSprite *v8; // rax const char *v9; // r14 const char *v10; // rsi ButtonSprite *v11; // rax const char *v12; // rsi CCMenuItemSpriteExtra *m_textButton; // rdi ButtonSprite *v14; // rax int ActiveMode; // eax const char *CString; // rax cocos2d::CCString *v17; // rax const std::string::value_type *v18; // rsi char v19; // [rsp-8h] [rbp-20h] v19 = v2; v4 = ((__int64 (__fastcall *)(cocos2d::CCObject *))a2->getTag)(a2); a1->m_selectedMode = v4; m_titleLabel = a1->m_titleLabel; v6 = "Insert Text"; if ( v4 == 2 ) v6 = "Detail Color"; v7 = "Base Color"; if ( v4 != 1 ) v7 = v6; ((void (__fastcall *)(cocos2d::CCLabelBMFont *, const char *, const char *, cocos2d::CCLabelBMFont_vtbl *, const char *))m_titleLabel->setString)( m_titleLabel, v7, "Detail Color", m_titleLabel->cocos2d::CCSpriteBatchNode::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable, v6); v8 = (ButtonSprite *)((__int64 (__fastcall *)(CCMenuItemSpriteExtra *))a1->m_baseButton->getNormalImage)(a1->m_baseButton); v9 = "GJ_button_04.png"; v10 = "GJ_button_04.png"; if ( a1->m_selectedMode == 1 ) v10 = "GJ_button_03.png"; ButtonSprite::updateBGImage(v8, v10); v11 = (ButtonSprite *)((__int64 (__fastcall *)(CCMenuItemSpriteExtra *))a1->m_detailButton->getNormalImage)(a1->m_detailButton); v12 = "GJ_button_04.png"; if ( a1->m_selectedMode == 2 ) v12 = "GJ_button_03.png"; ButtonSprite::updateBGImage(v11, v12); m_textButton = a1->m_textButton; if ( m_textButton ) { v14 = (ButtonSprite *)((__int64 (__fastcall *)(CCMenuItemSpriteExtra *))m_textButton->getNormalImage)(m_textButton); if ( a1->m_selectedMode == 3 ) v9 = "GJ_button_03.png"; ButtonSprite::updateBGImage(v14, v9); } CustomizeObjectLayer::toggleVisible(a1); ((void (__fastcall *)(CCMenuItemSpriteExtra *, bool))a1->m_baseColorHSV->setVisible)( a1->m_baseColorHSV, a1->m_selectedMode == 1); ((void (__fastcall *)(CCMenuItemSpriteExtra *, bool))a1->m_baseColorHSV->setEnabled)( a1->m_baseColorHSV, a1->m_selectedMode == 1); ((void (__fastcall *)(CCMenuItemSpriteExtra *, bool))a1->m_detailColorHSV->setVisible)( a1->m_detailColorHSV, a1->m_selectedMode == 2); ((void (__fastcall *)(CCMenuItemSpriteExtra *, bool))a1->m_detailColorHSV->setEnabled)( a1->m_detailColorHSV, a1->m_selectedMode == 2); ((void (__fastcall *)(CCMenuItemSpriteExtra *, bool))a1->m_liveSelectButton->setVisible)( a1->m_liveSelectButton, a1->m_selectedMode != 3); ((void (__fastcall *)(CCMenuItemSpriteExtra *, bool))a1->m_liveSelectButton->setEnabled)( a1->m_liveSelectButton, a1->m_selectedMode != 3); CustomizeObjectLayer::updateHSVButtons(a1); CustomizeObjectLayer::updateColorSprite(a1); ActiveMode = CustomizeObjectLayer::getActiveMode(a1, 1); if ( ActiveMode < 1000 ) { if ( ActiveMode <= 0 ) { v18 = " "; goto LABEL_18; } v17 = (cocos2d::CCString *)sub_1007AB580("%i", v19); CString = cocos2d::CCString::getCString(v17); } else { CString = GJSpecialColorSelect::textForColorIdx(ActiveMode); } v18 = CString; LABEL_18: ((void (__fastcall *)(cocos2d::CCLabelBMFont *, const std::string::value_type *))a1->m_selectedColorLabel->setString)( a1->m_selectedColorLabel, v18); }
GD Web Decomp Icon

GD Web Decomp

Raw Source