// // ButtonSprite::updateBGImage from 0x2e3958 to 0x2e3a0e (182 bytes) // // 72 xrefs: // > GJUserCell::onUnblockUser @ 0x32f8ec // > GJUserCell::onCancelFriendRequest @ 0x32f99e // > GJUserCell::onRemoveFriend @ 0x32fa9c // > GJRequestCell::onDeleteRequest @ 0x32fb4e // > GJMessageCell::onDeleteMessage @ 0x32fc02 // > EditorUI::toggleSwipe @ 0x37bab4 // > EditorUI::toggleFreeMove @ 0x37bb04 // > EditorUI::toggleSnap @ 0x37bb68 // > EditorUI::updateDeleteButtons @ 0x37d2b4 // > EditorUI::updateDeleteButtons @ 0x37d2d2 // > EditorUI::updateDeleteButtons @ 0x37d2f0 // > EditorUI::updateDeleteButtons @ 0x37d30e // > EditorUI::toggleEnableRotate @ 0x39d06a // > EditorUI::toggleEnableRotate @ 0x39d07c // > MoreSearchLayer::onSongMode @ 0x3af5a2 // > MoreSearchLayer::onSongMode @ 0x3af5be // > LevelInfoLayer::confirmOwnerDelete @ 0x3b141a // > ShareLevelLayer::selectRating @ 0x3b8454 // > LevelBrowserLayer::onDeleteSelected @ 0x3bab2e // > InfoLayer::updateCommentModeButtons @ 0x430146 // > InfoLayer::updateCommentModeButtons @ 0x430162 // > InfoLayer::init @ 0x430fea // > InfoLayer::init @ 0x431044 // > LeaderboardsLayer::toggleTabButtons @ 0x4521ba // > GJRateLevelLayer::onCustomButton @ 0x452f76 // > GJRateLevelLayer::selectRating @ 0x45325a // > RateStarsLayer::selectRating @ 0x45578e // > SongSelectNode::onSongMode @ 0x460798 // > SongSelectNode::onSongMode @ 0x4607b4 // > CustomizeObjectLayer::highlightSelected @ 0x461f46 // > CustomizeObjectLayer::highlightSelected @ 0x461f54 // > CustomizeObjectLayer::onSelectMode @ 0x46226e // > CustomizeObjectLayer::onSelectMode @ 0x462290 // > CustomizeObjectLayer::onSelectMode @ 0x4622b4 // > AccountLayer::onBackup @ 0x4664be // > AccountHelpLayer::onUnlink @ 0x4665a4 // > AccountHelpLayer::verifyUnlink @ 0x467718 // > FriendRequestPopup::onBlock @ 0x4a8598 // > GJMessagePopup::onRemove @ 0x4a8658 // > GJMessagePopup::onBlock @ 0x4a872c // > GJWriteMessagePopup::onClearBody @ 0x4a87f0 // > GJSpecialColorSelect::highlightSelected @ 0x4b9e06 // > GJSpecialColorSelect::highlightSelected @ 0x4b9e18 // > SetupPulsePopup::onSelectPulseMode @ 0x4be02a // > SetupPulsePopup::onSelectPulseMode @ 0x4be048 // > SetupPulsePopup::onSelectTargetMode @ 0x4be24e // > SetupPulsePopup::onSelectTargetMode @ 0x4be26c // > MessagesProfilePage::onDeleteSelected @ 0x4c0b38 // > FRequestProfilePage::onDeleteSelected @ 0x4c204c // > ProfilePage::onFriend @ 0x4c6ec6 // > ProfilePage::onBlockUser @ 0x4c6fd2 // > ColorSelectLiveOverlay::onSelectTab @ 0x4cf5e4 // > FollowRewardPage::onSpecialItem @ 0x5007ae // > SetGroupIDLayer::updateZLayerButtons @ 0x50a0a6 // > CreateParticlePopup::onMode @ 0x52f498 // > CreateParticlePopup::onMode @ 0x52f4ba // > CreateParticlePopup::onMode @ 0x52f4e0 // > CreateParticlePopup::onPage @ 0x53226c // > MPLobbyLayer::onBtn1 @ 0x5357d0 // > SetupGradientPopup::updateZLayerButtons @ 0x550ba4 // > SetupShaderEffectPopup::updateZLayerButtons @ 0x551e52 // > SetupAreaMoveTriggerPopup::onMode @ 0x5581aa // > HSVLiveOverlay::createHSVWidget @ 0x56449a // > CharacterColorPage::updateColorMode @ 0x564eb8 // > SelectArtLayer::onSelectCustom @ 0x56f834 // > LevelSettingsLayer::updateGameplayModeButtons @ 0x570184 // > LevelSettingsLayer::updateGameplayModeButtons @ 0x5701aa // > SetupAudioTriggerPopup::onProxMode @ 0x574e9e // > SetupSequenceTriggerPopup::onSelect @ 0x580150 // > SetupSequenceTriggerPopup::onSelect @ 0x58017a // > MusicBrowser::setupList @ 0x581b6e // > MusicBrowser::setupList @ 0x581b98 // // 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 ButtonSprite::updateBGImage(ButtonSprite *a1, const char *a2) { cocos2d::extension::CCScale9Sprite *m_BGSprite; // r5 cocos2d::extension::CCScale9Sprite *v5; // r0 cocos2d::extension::CCScale9Sprite_vtbl *v6; // r3 cocos2d::extension::CCScale9Sprite *v7; // r7 void (__fastcall *setContentSize)(cocos2d::extension::CCScale9Sprite *__hidden, const cocos2d::CCSize *); // r8 cocos2d::CCSprite *m_subBGSprite; // r4 void (__fastcall *setTexture)(cocos2d::CCSprite *__hidden, cocos2d::CCTexture2D *); // r8 cocos2d::CCTextureCache *v11; // r0 cocos2d::CCTexture2D *v12; // r0 float v13; // r2 float v14; // r3 cocos2d::CCRect v15; // [sp+Ch] [bp-14h] BYREF cocos2d::CCSize v16; // 0:^0.8 cocos2d::CCRect v17; // 0:kr00_16.16 m_BGSprite = a1->m_BGSprite; if ( m_BGSprite ) { m_BGSprite->removeMeAndCleanup(a1->m_BGSprite); cocos2d::CCRect::CCRect(&v15, 0.0, 0.0, 40.0, 40.0); v17.origin.x = v13; v17.origin.y = v14; v17.size = v16; v5 = (cocos2d::extension::CCScale9Sprite *)cocos2d::extension::CCScale9Sprite::create( (cocos2d::extension::CCScale9Sprite *)a2, (const char *)&v15, v17); v6 = v5->cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; v7 = v5; a1->m_BGSprite = v5; setContentSize = v6->setContentSize; cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v15, 16.0, 16.0); setContentSize(v7, (const cocos2d::CCSize *)&v15); a1->addChild_0(a1, a1->m_BGSprite, 0); if ( a1->m_mode == 1 ) ButtonSprite::setString(a1, (const char *)a1->m_caption.m_data.m_data); else ButtonSprite::updateSpriteBGSize(a1); } else { m_subBGSprite = a1->m_subBGSprite; if ( m_subBGSprite ) { setTexture = m_subBGSprite->setTexture; v11 = cocos2d::CCTextureCache::sharedTextureCache(); v12 = cocos2d::CCTextureCache::addImage(v11, a2, 0); setTexture(m_subBGSprite, v12); } } }