//
// SetGroupIDLayer::onArrow from 0x979fc4 to 0x97a134 (368 bytes)
//
// 3 xrefs:
// > SetGroupIDLayer::onArrowLeft @ 0x97a168
// > SetGroupIDLayer::onArrowRight @ 0x97a1a0
// > ??> @ 0xaa070
//
// 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 m_zOrderValue; // w0
int v5; // w0
int v6; // w2
int v7; // w2
int v8; // w2
int v9; // w2
int v10; // w2
switch ( a2 )
{
case 1:
v6 = a1->m_groupIDValue + a3;
if ( v6 < 0 )
v6 = 0;
a1->m_groupIDValue = v6;
SetGroupIDLayer::updateGroupIDLabel(a1);
return;
case 3:
v7 = a1->m_orderValue + a3;
if ( v7 < 0 )
v7 = 0;
a1->m_orderValue = v7;
SetGroupIDLayer::updateEditorOrder(a1);
SetGroupIDLayer::updateEditorOrderLabel(a1);
return;
case 4:
v8 = a1->m_channelValue + a3;
if ( v8 < 0 )
v8 = 0;
a1->m_channelValue = v8;
SetGroupIDLayer::updateOrderChannel(a1);
SetGroupIDLayer::updateOrderChannelLabel(a1);
return;
case 5:
v9 = a1->m_editorLayerValue + a3;
if ( v9 < 0 )
v9 = 0;
a1->m_editorLayerValue = v9;
SetGroupIDLayer::updateEditorLabel(a1);
SetGroupIDLayer::updateEditorLayerID(a1);
return;
case 6:
v10 = a1->m_editorLayer2Value + a3;
if ( v10 < 0 )
v10 = 0;
a1->m_editorLayer2Value = v10;
SetGroupIDLayer::updateEditorLabel2(a1);
SetGroupIDLayer::updateEditorLayerID2(a1);
return;
case 7:
m_zOrderValue = a1->m_zOrderValue;
if ( m_zOrderValue == -1000 )
{
if ( a3 == 1 )
goto LABEL_5;
v5 = -1;
}
else if ( a3 == 1 )
{
v5 = m_zOrderValue + 1;
if ( !v5 )
goto LABEL_5;
}
else
{
v5 = m_zOrderValue - 1;
a3 = -1;
if ( !v5 )
{
LABEL_5:
a1->m_zOrderValue = a3;
SetGroupIDLayer::updateZOrderLabel(a1);
SetGroupIDLayer::updateZOrder(a1);
return;
}
}
if ( v5 < -100 )
a3 = -100;
else
a3 = v5;
if ( a3 > 100 )
a3 = 100;
goto LABEL_5;
default:
return;
}
}