// // CustomizeObjectLayer::updateHSVButtons from 0x4617e0 to 0x461900 (288 bytes) // // 4 xrefs: // > CustomizeObjectLayer::hsvPopupClosed @ 0x461988 // > CustomizeObjectLayer::onPaste @ 0x46214c // > CustomizeObjectLayer::onSelectMode @ 0x462350 // > CustomizeObjectLayer::init @ 0x462ab4 // // 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 CustomizeObjectLayer::updateHSVButtons(CustomizeObjectLayer *a1) { int m_selectedMode; // r5 int v3; // r6 _BOOL4 v4; // r5 cocos2d::CCNode *v5; // r7 void (__fastcall *setSkewY)(cocos2d::CCNode *__hidden, float); // r8 cocos2d::CCSpriteFrameCache *v7; // r0 const char *v8; // r1 cocos2d::CCSpriteFrame *v9; // r0 cocos2d::CCNode *v10; // r4 void (__fastcall *v11)(cocos2d::CCNode *__hidden, float); // r6 cocos2d::CCSpriteFrameCache *v12; // r0 const char *v13; // r1 cocos2d::CCSpriteFrame *v14; // r0 cocos2d::ccHSVValue v15; // [sp+0h] [bp-20h] BYREF cocos2d::ccHSVValue v16; // [sp+10h] [bp-10h] BYREF m_selectedMode = a1->m_selectedMode; a1->m_selectedMode = 1; CustomizeObjectLayer::getHSV(&v15, a1); a1->m_selectedMode = 2; CustomizeObjectLayer::getHSV(&v16, a1); a1->m_selectedMode = m_selectedMode; if ( v15.h == flt_AC6778 && v15.s == flt_AC677C && v15.v == flt_AC6780 ) v3 = *(unsigned __int16 *)&v15.absoluteSaturation - (unsigned __int16)word_AC6784 + (*(unsigned __int16 *)&v15.absoluteSaturation == (unsigned __int16)word_AC6784) + (unsigned __int16)word_AC6784 - *(unsigned __int16 *)&v15.absoluteSaturation; else v3 = 0; v4 = v16.h == flt_AC6778 && v16.s == flt_AC677C && v16.v == flt_AC6780 && *(unsigned __int16 *)&v16.absoluteSaturation == (unsigned __int16)word_AC6784; v5 = a1->m_baseColorHSV->getNormalImage(a1->m_baseColorHSV); setSkewY = v5->__vftable[1].setSkewY; v7 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(); if ( v3 ) v8 = "GJ_hsvBtn_001.png"; else v8 = "GJ_hsv2Btn_001.png"; v9 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v7, v8); ((void (__fastcall *)(cocos2d::CCNode *, cocos2d::CCSpriteFrame *))setSkewY)(v5, v9); v10 = a1->m_detailColorHSV->getNormalImage(a1->m_detailColorHSV); v11 = v10->__vftable[1].setSkewY; v12 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(); if ( v4 ) v13 = "GJ_hsvBtn_001.png"; else v13 = "GJ_hsv2Btn_001.png"; v14 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v12, v13); ((void (__fastcall *)(cocos2d::CCNode *, cocos2d::CCSpriteFrame *))v11)(v10, v14); }
GD Web Decomp Icon

GD Web Decomp

Raw Source