// // HSVLiveOverlay::createHSVWidget from 0x1402ba0e0 to 0x1402ba27d (413 bytes) // // 5 xrefs: // > HSVLiveOverlay::init @ 0x1402b9e2d // > HSVLiveOverlay::onSelectTab @ 0x1402ba0d4 // > @ 0x14068c10c // > @ 0x14068c140 // > @ 0x1406d2744 // // 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 HSVLiveOverlay::createHSVWidget(HSVLiveOverlay *a1, int a2) { cocos2d::CCArray *m_unkArray; // rcx unsigned int v5; // edi ButtonSprite *v6; // rbx int v7; // eax const char *v8; // rdx ConfigureHSVWidget *m_widget; // rcx cocos2d::CCDirector *v10; // rax bool v11; // dl ConfigureHSVWidget *v12; // rax float v13; // xmm0_4 ConfigureHSVWidget_vtbl *v14; // rbx const cocos2d::CCPoint *v15; // rax HSVWidgetDelegate *v16; // rcx cocos2d::ccHSVValue v17; // [rsp+20h] [rbp-48h] BYREF cocos2d::ccHSVValue v18; // [rsp+30h] [rbp-38h] BYREF a1->m_activeTab = a2; m_unkArray = a1->m_unkArray; if ( m_unkArray ) { v5 = 0; if ( cocos2d::CCArray::count(m_unkArray) ) { do { v6 = (ButtonSprite *)cocos2d::CCArray::objectAtIndex(a1->m_unkArray, v5); v7 = v6->getTag(v6); v8 = "GJ_button_04.png"; if ( v7 == a2 ) v8 = "GJ_button_01.png"; ButtonSprite::updateBGImage(v6, v8); ++v5; } while ( v5 < cocos2d::CCArray::count(a1->m_unkArray) ); } } m_widget = a1->m_widget; if ( m_widget ) { m_widget->removeMeAndCleanup(m_widget); a1->m_widget = nullptr; } v10 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(m_widget); cocos2d::CCDirector::getWinSize(v10); v17 = *ConfigureHSVWidget::getHSV(&v18, a1->m_object, a1->m_objects, a2); v12 = ConfigureHSVWidget::create(&v17, v11, 0); a1->m_widget = v12; v12->setTag(v12, a2); v13 = ((float (__fastcall *)(cocos2d::CCLayer *, ConfigureHSVWidget *))a1->m_mainLayer->addChild_1)( a1->m_mainLayer, a1->m_widget); v14 = a1->m_widget->__vftable; cocos2d::CCPoint::CCPoint(v13, 157.0); v14->setPosition_0(a1->m_widget, v15); ((void (__fastcall *)(ConfigureHSVWidget *))a1->m_widget->setScale_0)(a1->m_widget); v16 = &a1->HSVWidgetDelegate; if ( !a1 ) v16 = nullptr; a1->m_widget->m_delegate = v16; }
GD Web Decomp Icon

GD Web Decomp

Raw Source