// // CustomizeObjectLayer::updateHSVButtons from 0x10004f8c8 to 0x10004fa5c (404 bytes) // // 4 xrefs: // > CustomizeObjectLayer::init @ 0x10004ddac // > CustomizeObjectLayer::onSelectMode @ 0x10004f6bc // > CustomizeObjectLayer::onPaste @ 0x100050038 // > CustomizeObjectLayer::hsvPopupClosed @ 0x100050860 // // 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::updateHSVButtons(CustomizeObjectLayer *a1) { int m_selectedMode; // w21 bool absoluteBrightness; // x20^5 float h; // s8 float s; // s9 float v; // s10 __int64 v7; // x22 __n128 v8; // q0 __n128 v9; // q1 __n128 v10; // q2 __n128 v11; // q3 __n128 v12; // q4 bool v14; // w11 bool v15; // w11 const char *v16; // x20 bool v18; // w11 bool v19; // w11 bool v20; // w8 const char *v21; // x21 __int64 v22; // x22 cocos2d::CCSpriteFrameCache *v23; // x0 cocos2d::CCSpriteFrame *v24; // x0 __int64 v25; // x19 cocos2d::CCSpriteFrameCache *v26; // x0 cocos2d::CCSpriteFrame *v27; // x1 cocos2d::ccHSVValue HSV; // 0:x0.16 cocos2d::ccHSVValue v29; // 0:x0.16 m_selectedMode = a1->m_selectedMode; a1->m_selectedMode = 1; HSV = ConfigureHSVWidget::getHSV(a1->m_targetObject, a1->m_targetObjects, 1); absoluteBrightness = HSV.absoluteBrightness; h = HSV.h; s = HSV.s; v = HSV.v; v7 = HIDWORD(*(_QWORD *)&HSV.v); a1->m_selectedMode = 2; v29 = ConfigureHSVWidget::getHSV(a1->m_targetObject, a1->m_targetObjects, 2); v8.n128_u32[0] = LODWORD(v29.h); v9.n128_u32[0] = LODWORD(v29.s); v10.n128_u32[0] = LODWORD(v29.v); a1->m_selectedMode = m_selectedMode; v12.n128_u32[0] = DWORD1(xmmword_10086A980); v11.n128_u32[0] = xmmword_10086A980; v14 = *((float *)&xmmword_10086A980 + 1) == s && *(float *)&xmmword_10086A980 == h; v15 = v14 && *((float *)&xmmword_10086A980 + 2) == v; if ( BYTE12(xmmword_10086A980) != (unsigned __int8)v7 ) v15 = 0; if ( v15 && BYTE13(xmmword_10086A980) == absoluteBrightness ) v16 = "GJ_hsvBtn_001.png"; else v16 = "GJ_hsv2Btn_001.png"; v18 = *((float *)&xmmword_10086A980 + 1) == v29.s && *(float *)&xmmword_10086A980 == v29.h; v19 = v18 && *((float *)&xmmword_10086A980 + 2) == v29.v; v20 = BYTE12(xmmword_10086A980) == v29.absoluteSaturation && v19; if ( v20 && BYTE13(xmmword_10086A980) == v29.absoluteBrightness ) v21 = "GJ_hsvBtn_001.png"; else v21 = "GJ_hsv2Btn_001.png"; v22 = ((__int64 (__fastcall *)(CCMenuItemSpriteExtra *, __n128, __n128, __n128, __n128, __n128))a1->m_baseColorHSV->getNormalImage)( a1->m_baseColorHSV, v8, v9, v10, v11, v12); v23 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(); v24 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v23, v16); (*(void (__fastcall **)(__int64, cocos2d::CCSpriteFrame *))(*(_QWORD *)v22 + 1144LL))(v22, v24); v25 = ((__int64 (__fastcall *)(CCMenuItemSpriteExtra *))a1->m_detailColorHSV->getNormalImage)(a1->m_detailColorHSV); v26 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(); v27 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v26, v21); (*(void (__fastcall **)(__int64, cocos2d::CCSpriteFrame *))(*(_QWORD *)v25 + 1144LL))(v25, v27); }