//
// EditorUI::updateGroupIDLabel from 0x68e65c to 0x68e784 (296 bytes)
//
// 11 xrefs:
// > LevelEditorLayer::updateOptions @ 0x65cd8c
// > EditorUI::showUI @ 0x68e870
// > EditorUI::showUI @ 0x68e918
// > EditorUI::onGoToLayer @ 0x68e984
// > EditorUI::onGoToLayer @ 0x68e9a0
// > EditorUI::onGoToBaseLayer @ 0x68ea14
// > EditorUI::onGroupUp @ 0x68ea2c
// > EditorUI::onGroupDown @ 0x68ea48
// > EditorUI::onLockLayer @ 0x68ea94
// > EditorUI::init @ 0x6bdbfc
// > ??> @ 0x3c3f0
//
// 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 EditorUI::updateGroupIDLabel(EditorUI *a1)
{
const char *m_currentLayer; // x1
cocos2d::CCString *v3; // x0
const char *CString; // x1
bool isLayerLocked; // w0
_BOOL4 v6; // w21
cocos2d::CCLabelBMFont *m_currentLayerLabel; // x2
cocos2d::CCLabelBMFont *v8; // x0
cocos2d::CCLabelBMFont_vtbl *v9; // x2
void (__fastcall *setColor)(cocos2d::CCLabelBMFont *__hidden, const cocos2d::ccColor3B *); // x2
_BYTE v11[8]; // [xsp+30h] [xbp+30h] BYREF
m_currentLayer = (const char *)(unsigned int)a1->m_editorLayer->m_currentLayer;
if ( ((unsigned int)m_currentLayer & 0x80000000) != 0 )
{
CString = "All";
}
else
{
v3 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", m_currentLayer);
CString = cocos2d::CCString::getCString(v3);
}
a1->m_currentLayerLabel->setString(a1->m_currentLayerLabel, (const unsigned __int8 *)CString);
cocos2d::CCLabelBMFont::limitLabelWidth(a1->m_currentLayerLabel, 38.0, 0.6, 0.0);
isLayerLocked = LevelEditorLayer::isLayerLocked(a1->m_editorLayer, a1->m_editorLayer->m_currentLayer);
v6 = isLayerLocked;
m_currentLayerLabel = a1->m_currentLayerLabel;
if ( isLayerLocked )
{
v8 = a1->m_currentLayerLabel;
v9 = m_currentLayerLabel->cocos2d::CCSpriteBatchNode::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
v11[0] = -1;
setColor = v9->setColor;
v11[1] = -106;
v11[2] = 0;
setColor(v8, (const cocos2d::ccColor3B *)v11);
}
else
{
m_currentLayerLabel->setColor(a1->m_currentLayerLabel, (const cocos2d::ccColor3B *)&off_EC62E0);
}
a1->m_layerLockSprite->setVisible(a1->m_layerLockSprite, v6);
EditorUI::updateGroupIDBtn2(a1);
}