// // HSVLiveOverlay::createHSVWidget from 0x10019ff50 to 0x1001a00ac (348 bytes) // // 2 xrefs: // > HSVLiveOverlay::init @ 0x10019fda8 // > HSVLiveOverlay::onSelectTab @ 0x10019ff4c // // 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 // // local variable allocation has failed, the output may be wrong! void __fastcall HSVLiveOverlay::createHSVWidget(HSVLiveOverlay *a1, int a2) { __int64 v2; // x20 cocos2d::CCArray *m_unkArray; // x0 __int64 v5; // x21 ButtonSprite *v6; // x22 const char *v7; // x1 ConfigureHSVWidget *m_widget; // x0 cocos2d::CCDirector *v9; // x0 ConfigureHSVWidget *v10; // x0 __n128 v11; // q0 ConfigureHSVWidget *v12; // x20 __n128 v13; // q1 int v14; // [xsp+0h] [xbp-40h] BYREF cocos2d::ccHSVValue HSV; // 0:x0.16 v2 = *(_QWORD *)&a2; a1->m_activeTab = a2; m_unkArray = a1->m_unkArray; if ( m_unkArray && (unsigned int)sub_10024A36C(m_unkArray) ) { v5 = 0; do { v6 = (ButtonSprite *)sub_10024A388(a1->m_unkArray, v5); if ( ((unsigned int (__fastcall *)(ButtonSprite *))v6->getTag)(v6) == (_DWORD)v2 ) v7 = "GJ_button_01.png"; else v7 = "GJ_button_04.png"; ButtonSprite::updateBGImage(v6, v7); v5 = (unsigned int)(v5 + 1); } while ( (unsigned int)v5 < (unsigned int)sub_10024A36C(a1->m_unkArray) ); } m_widget = a1->m_widget; if ( m_widget ) { ((void (__fastcall *)(ConfigureHSVWidget *))m_widget->removeMeAndCleanup)(m_widget); a1->m_widget = nullptr; } v9 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getWinSize(v9); HSV = ConfigureHSVWidget::getHSV(a1->m_object, a1->m_objects, v2); v10 = ConfigureHSVWidget::create(HSV, 0, 0); a1->m_widget = v10; ((void (__fastcall *)(ConfigureHSVWidget *, __int64))v10->setTag)(v10, v2); v11 = ((__n128 (__fastcall *)(cocos2d::CCLayer *, ConfigureHSVWidget *))a1->m_mainLayer->addChild)( a1->m_mainLayer, a1->m_widget); v12 = a1->m_widget; v11.n128_u32[0] = 1125974016; v13.n128_u32[0] = 1126367232; sub_100022980(v11, v13, &v14); ((void (__fastcall *)(ConfigureHSVWidget *, int *))v12->setPosition)(v12, &v14); ((void (__fastcall *)(ConfigureHSVWidget *, float))a1->m_widget->setScale)(a1->m_widget, 0.6); a1->m_widget->m_delegate = &a1->HSVWidgetDelegate; }
GD Web Decomp Icon

GD Web Decomp

Raw Source