// // EditorUI::setIDPopupClosed from 0x100033270 to 0x1000333c1 (337 bytes) // // 2 xrefs: // > sub_100033590 @ 0x10003359c // > @ 0x1008b0580 // // 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 EditorUI::setIDPopupClosed(EditorUI *a1, SetIDPopup *a2, int a3) { GameManager *v4; // rax ButtonSprite *m_deleteGroupSprite; // rbx cocos2d::CCString *v6; // rax const char *CString; // rax GameManager *v8; // rax const char *v9; // rax ButtonSprite *m_deleteColorSprite; // rdi const char *data; // rsi char v12; // [rsp+0h] [rbp-50h] std::string v13; // [rsp+8h] [rbp-48h] BYREF std::string v14; // [rsp+20h] [rbp-30h] BYREF if ( ((unsigned int (__fastcall *)(SetIDPopup *))a2->getTag)(a2) == 1 ) { v4 = GameManager::sharedState(); GameManager::setIntGameVariable(v4, "0133", a3); m_deleteGroupSprite = a1->m_deleteGroupSprite; v6 = (cocos2d::CCString *)sub_1007AB580("%i", v12); CString = cocos2d::CCString::getCString(v6); ButtonSprite::setString(m_deleteGroupSprite, CString); return; } if ( ((unsigned int (__fastcall *)(SetIDPopup *))a2->getTag)(a2) == 2 ) { v8 = GameManager::sharedState(); GameManager::setIntGameVariable(v8, "0139", a3); *(_WORD *)&v14.__r_.__value_.__l.0 = 0; if ( a3 < 1000 ) { GameToolbox::intToString(&v13, (unsigned int)a3); if ( (*(_BYTE *)&v14.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v14.__r_.__value_.__l.__data_); v14 = v13; m_deleteColorSprite = a1->m_deleteColorSprite; if ( (*(_BYTE *)&v13.__r_.__value_.__s.0 & 1) != 0 ) goto LABEL_6; } else { v9 = GJSpecialColorSelect::textForColorIdx(a3); std::string::assign(&v14, v9); m_deleteColorSprite = a1->m_deleteColorSprite; if ( (*(_BYTE *)&v14.__r_.__value_.__s.0 & 1) != 0 ) { LABEL_6: data = v14.__r_.__value_.__l.__data_; goto LABEL_13; } } data = v14.__r_.__value_.__s.__data_; LABEL_13: ButtonSprite::setString(m_deleteColorSprite, data); if ( (*(_BYTE *)&v14.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v14.__r_.__value_.__l.__data_); return; } if ( ((unsigned int (__fastcall *)(SetIDPopup *))a2->getTag)(a2) == 3 ) EditorUI::findAndSelectObject( a1, a3, (bool)a2[1].FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable); }