//
// CustomizeObjectLayer::onPaste from 0x1001f8270 to 0x1001f830b (155 bytes)
//
// 1 xrefs:
// > CustomizeObjectLayer::init @ 0x1001f7046
//
// 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::onPaste(CustomizeObjectLayer *a1, cocos2d::CCObject *a2)
{
char v2; // al
GameManager *v3; // rax
int ActiveMode; // eax
const char *CString; // rax
cocos2d::CCString *v6; // rax
const std::string::value_type *v7; // rsi
char v8; // [rsp-8h] [rbp-10h]
v8 = v2;
v3 = GameManager::sharedState();
LevelEditorLayer::pasteColorState(v3->m_levelEditorLayer, a1->m_targetObject, a1->m_targetObjects);
CustomizeObjectLayer::updateCurrentSelection(a1);
CustomizeObjectLayer::updateColorSprite(a1);
ActiveMode = CustomizeObjectLayer::getActiveMode(a1, 1);
if ( ActiveMode < 1000 )
{
if ( ActiveMode <= 0 )
{
v7 = " ";
goto LABEL_6;
}
v6 = (cocos2d::CCString *)sub_1007AB580("%i", v8);
CString = cocos2d::CCString::getCString(v6);
}
else
{
CString = GJSpecialColorSelect::textForColorIdx(ActiveMode);
}
v7 = CString;
LABEL_6:
((void (__fastcall *)(cocos2d::CCLabelBMFont *, const std::string::value_type *))a1->m_selectedColorLabel->setString)(
a1->m_selectedColorLabel,
v7);
CustomizeObjectLayer::updateHSVButtons(a1);
}