// // ButtonSprite::updateBGImage from 0x14003f590 to 0x14003f6c3 (307 bytes) // // 74 xrefs: // > AccountLayer::onBackup @ 0x14007e378 // > AccountHelpLayer::onUnlink @ 0x14007fcbd // > AccountHelpLayer::FLAlert_Clicked @ 0x140080343 // > CharacterColorPage::updateColorMode @ 0x140089bba // > CharacterColorPage::updateColorMode @ 0x140089c84 // > CharacterColorPage::updateColorMode @ 0x140089d4e // > ColorSelectLiveOverlay::onSelectTab @ 0x14008d206 // > CustomizeObjectLayer::onSelectMode @ 0x1400a907c // > CustomizeObjectLayer::onSelectMode @ 0x1400a90a5 // > CustomizeObjectLayer::onSelectMode @ 0x1400a90d0 // > CustomizeObjectLayer::highlightSelected @ 0x1400a9f4e // > CustomizeObjectLayer::highlightSelected @ 0x1400a9f7f // > GJUserCell::onUnblockUser @ 0x1400bb6d2 // > GJUserCell::onCancelFriendRequest @ 0x1400bb8b9 // > GJUserCell::onRemoveFriend @ 0x1400bbaa0 // > GJRequestCell::onDeleteRequest @ 0x1400bcebb // > GJMessageCell::onDeleteMessage @ 0x1400be108 // > SongSelectNode::onSongMode @ 0x1400c78f3 // > SongSelectNode::onSongMode @ 0x1400c7916 // > EditorUI::updateDeleteButtons @ 0x1400e772f // > EditorUI::updateDeleteButtons @ 0x1400e7755 // > EditorUI::updateDeleteButtons @ 0x1400e777b // > EditorUI::updateDeleteButtons @ 0x1400e779e // > EditorUI::toggleSwipe @ 0x140110005 // > EditorUI::toggleFreeMove @ 0x1401100a5 // > EditorUI::toggleSnap @ 0x1401101d7 // > EditorUI::toggleEnableRotate @ 0x1401102a6 // > EditorUI::toggleEnableRotate @ 0x1401102f8 // > FollowRewardPage::onSpecialItem @ 0x14013ce54 // > FRequestProfilePage::onDeleteSelected @ 0x14013ea19 // > FriendRequestPopup::onBlock @ 0x140296f1e // > GJMessagePopup::onRemove @ 0x1402988a4 // > GJMessagePopup::onBlock @ 0x140298a7f // > GJWriteMessagePopup::onClearBody @ 0x14029a507 // > GJSpecialColorSelect::onSelectColor @ 0x1402b898e // > GJSpecialColorSelect::onSelectColor @ 0x1402b89ce // > HSVLiveOverlay::createHSVWidget @ 0x1402ba15b // > InfoLayer::init @ 0x1402bc27c // > InfoLayer::init @ 0x1402bc32f // > InfoLayer::updateCommentModeButtons @ 0x1402bf62c // > InfoLayer::updateCommentModeButtons @ 0x1402bf64e // > LeaderboardsLayer::toggleTabButtons @ 0x1402c37e7 // > LevelBrowserLayer::onDeleteSelected @ 0x1402cf4d3 // > GJRateLevelLayer::onCustomButton @ 0x1402f55e9 // > GJRateLevelLayer::selectRating @ 0x1402f695f // > LevelInfoLayer::confirmOwnerDelete @ 0x1402fdeae // > MoreSearchLayer::onSongMode @ 0x140316ef2 // > MoreSearchLayer::onSongMode @ 0x140316f15 // > LevelSettingsLayer::updateGameplayModeButtons @ 0x140320fef // > LevelSettingsLayer::updateGameplayModeButtons @ 0x14032102f // > SelectArtLayer::onSelectCustom @ 0x140323041 // > MessagesProfilePage::onDeleteSelected @ 0x140337669 // > MusicBrowser::setupList @ 0x14033a49d // > MusicBrowser::setupList @ 0x14033a4ca // > ProfilePage::onFriend @ 0x1403c42a6 // > ProfilePage::onBlockUser @ 0x1403c448f // > RateStarsLayer::selectRating @ 0x1403ca9af // > SetGroupIDLayer::updateZLayerButtons @ 0x1403fd990 // > SetupAreaMoveTriggerPopup::onMode @ 0x14040dec5 // > SetupGradientPopup::updateZLayerButtons @ 0x140421fe0 // > CreateParticlePopup::onMode @ 0x1404321c0 // > CreateParticlePopup::onMode @ 0x1404321e9 // > CreateParticlePopup::onMode @ 0x140432223 // > CreateParticlePopup::onPage @ 0x140432444 // > SetupPulsePopup::onSelectPulseMode @ 0x14043add1 // > SetupPulsePopup::onSelectPulseMode @ 0x14043adf3 // > SetupPulsePopup::onSelectTargetMode @ 0x14043b000 // > SetupPulsePopup::onSelectTargetMode @ 0x14043b022 // > SetupSequenceTriggerPopup::onSelect @ 0x140444c4f // > SetupSequenceTriggerPopup::onSelect @ 0x140444c9a // > SetupAudioTriggerPopup::onProxMode @ 0x1404465eb // > SetupShaderEffectPopup::updateZLayerButtons @ 0x14044b213 // > ShareLevelLayer::selectRating @ 0x14049002c // > @ 0x1406c417c // // 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; // rcx struct cocos2d::CCRect *v5; // rax cocos2d::extension::CCScale9Sprite *v6; // rax cocos2d::extension::CCScale9Sprite_vtbl *v7; // rbx const cocos2d::CCSize *v8; // rax std::string *p_m_caption; // rdx cocos2d::CCSprite *m_subBGSprite; // rbx cocos2d::CCTextureProtocol_vtbl *v11; // rbx cocos2d::CCTextureCache *v12; // rax struct cocos2d::CCTexture2D *v13; // rax cocos2d::CCRect v14; // [rsp+30h] [rbp-18h] BYREF cocos2d::CCSize v15; // [rsp+50h] [rbp+8h] BYREF m_BGSprite = a1->m_BGSprite; if ( m_BGSprite ) { m_BGSprite->removeMeAndCleanup(m_BGSprite); v5 = (struct cocos2d::CCRect *)cocos2d::CCRect::CCRect(&v14, 0.0, 0.0, 40.0, 40.0); v6 = cocos2d::extension::CCScale9Sprite::create(a2, v5); a1->m_BGSprite = v6; v7 = v6->cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; v8 = (const cocos2d::CCSize *)cocos2d::CCSize::CCSize(&v15, 16.0, 16.0); v7->setContentSize(a1->m_BGSprite, v8); a1->addChild_0(a1, a1->m_BGSprite, 0); if ( a1->m_mode == 1 ) { p_m_caption = &a1->m_caption; if ( a1->m_caption.m_data.m_capacity > 0xF ) p_m_caption = (std::string *)p_m_caption->m_data.m_bigStorage; ButtonSprite::setString(a1, p_m_caption->m_data.m_smallStorage._Elems); } else { ButtonSprite::updateSpriteBGSize(a1); } } else { m_subBGSprite = a1->m_subBGSprite; if ( m_subBGSprite ) { v11 = m_subBGSprite->cocos2d::CCTextureProtocol::cocos2d::CCBlendProtocol::__vftable; v12 = (cocos2d::CCTextureCache *)cocos2d::CCTextureCache::sharedTextureCache(); v13 = cocos2d::CCTextureCache::addImage(v12, a2, 0); v11->setTexture(&a1->m_subBGSprite->cocos2d::CCTextureProtocol, v13); } } }