//
// SetGroupIDLayer::onArrow from 0x1403fb190 to 0x1403fb300 (368 bytes)
//
// 3 xrefs:
// > SetGroupIDLayer::onArrowLeft @ 0x1403fb152
// > SetGroupIDLayer::onArrowRight @ 0x1403fb182
// > ??> @ 0x1406d83e4
//
// 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 SetGroupIDLayer::onArrow(SetGroupIDLayer *a1, int a2, int a3)
{
int v4; // eax
int v5; // ecx
int v6; // eax
int v7; // ecx
int v8; // eax
int v9; // ecx
int v10; // eax
int v11; // ecx
int v12; // eax
int v13; // ecx
int m_zOrderValue; // ecx
int v15; // eax
switch ( a2 )
{
case 1:
v4 = 0;
v5 = a3 + a1->m_groupIDValue;
if ( v5 >= 0 )
v4 = v5;
a1->m_groupIDValue = v4;
SetGroupIDLayer::updateGroupIDLabel(a1);
return;
case 3:
v10 = 0;
v11 = a3 + a1->m_orderValue;
if ( v11 >= 0 )
v10 = v11;
a1->m_orderValue = v10;
SetGroupIDLayer::updateEditorOrder(a1);
SetGroupIDLayer::updateEditorOrderLabel(a1);
return;
case 4:
v12 = 0;
v13 = a3 + a1->m_channelValue;
if ( v13 >= 0 )
v12 = v13;
a1->m_channelValue = v12;
SetGroupIDLayer::updateOrderChannel(a1);
SetGroupIDLayer::updateOrderChannelLabel(a1);
return;
case 5:
v6 = 0;
v7 = a3 + a1->m_editorLayerValue;
if ( v7 >= 0 )
v6 = v7;
a1->m_editorLayerValue = v6;
SetGroupIDLayer::updateEditorLabel(a1);
SetGroupIDLayer::updateEditorLayerID(a1);
return;
case 6:
v8 = 0;
v9 = a3 + a1->m_editorLayer2Value;
if ( v9 >= 0 )
v8 = v9;
a1->m_editorLayer2Value = v8;
SetGroupIDLayer::updateEditorLabel2(a1);
SetGroupIDLayer::updateEditorLayerID2(a1);
return;
case 7:
m_zOrderValue = a1->m_zOrderValue;
if ( m_zOrderValue == -1000 )
m_zOrderValue = 0;
if ( a3 == 1 )
{
v15 = m_zOrderValue + 1;
if ( m_zOrderValue == -1 )
v15 = 1;
}
else
{
v15 = m_zOrderValue - 1;
if ( m_zOrderValue == 1 )
{
v15 = -1;
goto LABEL_26;
}
}
if ( v15 < -100 )
{
v15 = -100;
LABEL_28:
a1->m_zOrderValue = v15;
SetGroupIDLayer::updateZOrderLabel(a1);
SetGroupIDLayer::updateZOrder(a1);
return;
}
LABEL_26:
if ( v15 > 100 )
v15 = 100;
goto LABEL_28;
default:
return;
}
}