//
// EditorUI::updateGroupIDLabel from 0x10002c680 to 0x10002c777 (247 bytes)
//
// 9 xrefs:
// > EditorUI::init @ 0x10000b3d3
// > EditorUI::onGoToLayer @ 0x10002c48b
// > EditorUI::onGroupUp @ 0x10002c5d3
// > EditorUI::onGroupDown @ 0x10002c604
// > EditorUI::onGoToBaseLayer @ 0x10002c625
// > EditorUI::onLockLayer @ 0x10002c666
// > EditorUI::showUI @ 0x10003d87f
// > EditorUI::keyDown @ 0x100050e3e
// > LevelEditorLayer::updateOptions @ 0x1000dc4b8
//
// 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 EditorUI::updateGroupIDLabel(EditorUI *a1)
{
cocos2d::CCString *v2; // rax
const char *CString; // rsi
bool isLayerLocked; // r14
cocos2d::CCLabelBMFont *m_currentLayerLabel; // rdi
cocos2d::CCLabelBMFont_vtbl *v6; // rax
__int16 *v7; // rsi
char v8; // [rsp+0h] [rbp-20h]
__int16 v9; // [rsp+Ch] [rbp-14h] BYREF
char v10; // [rsp+Eh] [rbp-12h]
if ( a1->m_editorLayer->m_currentLayer < 0 )
{
CString = "All";
}
else
{
v2 = (cocos2d::CCString *)sub_1007AB580("%i", v8);
CString = cocos2d::CCString::getCString(v2);
}
((void (__fastcall *)(cocos2d::CCLabelBMFont *, const char *))a1->m_currentLayerLabel->setString)(
a1->m_currentLayerLabel,
CString);
cocos2d::CCLabelBMFont::limitLabelWidth(a1->m_currentLayerLabel, 38.0, 0.60000002, 0.0);
isLayerLocked = LevelEditorLayer::isLayerLocked(a1->m_editorLayer, a1->m_editorLayer->m_currentLayer);
m_currentLayerLabel = a1->m_currentLayerLabel;
if ( isLayerLocked )
{
v10 = 0;
v9 = -26881;
v6 = m_currentLayerLabel->cocos2d::CCSpriteBatchNode::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
v7 = &v9;
}
else
{
v6 = m_currentLayerLabel->cocos2d::CCSpriteBatchNode::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
v7 = (__int16 *)&unk_100815540;
}
((void (__fastcall *)(cocos2d::CCLabelBMFont *, __int16 *))v6->setColor)(m_currentLayerLabel, v7);
((void (__fastcall *)(cocos2d::CCSprite *, bool))a1->m_layerLockSprite->setVisible)(
a1->m_layerLockSprite,
isLayerLocked);
((void (__fastcall *)(CCMenuItemSpriteExtra *, bool))a1->m_goToBaseBtn->setVisible)(
a1->m_goToBaseBtn,
a1->m_editorLayer->m_currentLayer >= 0);
}