// // EditorUI::getSpriteButton from 0x7c0d1c to 0x7c0f50 (564 bytes) // // 6 xrefs: // > EditorUI::getSpriteButton @ 0x7c0fd0 // > EditorUI::setupDeleteMenu @ 0xbdea54 // > EditorUI::setupDeleteMenu @ 0xbdeb6c // > EditorUI::setupDeleteMenu @ 0xbdee3c // > EditorUI::createDpadMoveMenu @ 0xbe0e00 // > @ 0x8fa88 // // This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 12:54:06 +0000 // float *__fastcall EditorUI::getSpriteButton( __int64 a1, ButtonSprite *this, __int64 a3, __int64 a4, __int64 a5, int a6, const cocos2d::CCPoint *a7, float a8, float a9) { char *v16; // x4 const cocos2d::CCSize *v17; // x0 float v18; // s3 float v19; // s2 ButtonSprite *v20; // x26 float *v21; // x20 cocos2d::CCSprite *v23; // [xsp+68h] [xbp+68h] float v24; // [xsp+70h] [xbp+70h] float v25; // [xsp+80h] [xbp+80h] BYREF float v26; // [xsp+84h] [xbp+84h] switch ( a6 ) { case 2: v24 = a9; v16 = "GJ_button_02.png"; if ( a9 > 0.0 ) goto LABEL_4; goto LABEL_16; case 3: v16 = "GJ_button_03.png"; break; case 4: v16 = "GJ_button_04.png"; break; case 5: v16 = "GJ_button_05.png"; break; case 6: v16 = "GJ_button_06.png"; break; default: v16 = "GJ_button_01.png"; break; } v24 = a9; if ( a9 > 0.0 ) { LABEL_4: v23 = (cocos2d::CCSprite *)v16; v17 = (const cocos2d::CCSize *)(*(__int64 (__fastcall **)(ButtonSprite *))(*(_QWORD *)this + 328LL))(this); cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v25, v17); v18 = 32.0 / v25; v19 = 32.0 / v26; if ( (float)(32.0 / v25) <= (float)(32.0 / v26) ) { if ( v18 < 1.0 ) { LABEL_6: if ( v18 <= v19 ) v19 = 32.0 / v25; goto LABEL_8; } } else if ( v19 < 1.0 ) { goto LABEL_6; } v19 = 1.0; LABEL_8: v20 = (ButtonSprite *)ButtonSprite::create( this, (cocos2d::CCSprite *)(unsigned int)(int)(float)(v24 - 8.0), 0, 1, 32.0, v19, v23, nullptr, 0.0); goto LABEL_9; } LABEL_16: v20 = (ButtonSprite *)ButtonSprite::create( this, (cocos2d::CCSprite *)&qword_20, 0, (char)&dword_0 + 1, 32.0, 1.0, (cocos2d::CCSprite *)v16, (const char *)&dword_0 + 1, 0.0); LABEL_9: v21 = (float *)CCMenuItemSpriteExtra::create((__int64)v20, 0, a1, a3, a4); (*(void (__fastcall **)(float *, float))(*(_QWORD *)v21 + 160LL))(v21, a8); v21[101] = a8; if ( a5 ) (*(void (__fastcall **)(__int64, float *))(*(_QWORD *)a5 + 456LL))(a5, v21); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v25, a7); ButtonSprite::updateSpriteOffset(v20, (__int64)&v25); return v21; }
GD Web Decomp Icon

GD Web Decomp

Raw Source