//
// SetGroupIDLayer::onArrow from 0x10003e598 to 0x10003e70c (372 bytes)
//
// 2 xrefs:
// > SetGroupIDLayer::onArrowLeft @ 0x10003e55c
// > SetGroupIDLayer::onArrowRight @ 0x10003e594
//
// 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 SetGroupIDLayer::onArrow(SetGroupIDLayer *a1, int a2, int a3)
{
int m_zOrderValue; // w8
int v5; // w9
int v6; // w8
if ( a2 > 4 )
{
switch ( a2 )
{
case 5:
a1->m_editorLayerValue = (a1->m_editorLayerValue + a3) & ~((a1->m_editorLayerValue + a3) >> 31);
SetGroupIDLayer::updateEditorLabel(a1);
SetGroupIDLayer::updateEditorLayerID(a1);
break;
case 6:
a1->m_editorLayer2Value = (a1->m_editorLayer2Value + a3) & ~((a1->m_editorLayer2Value + a3) >> 31);
SetGroupIDLayer::updateEditorLabel2(a1);
SetGroupIDLayer::updateEditorLayerID2(a1);
break;
case 7:
m_zOrderValue = a1->m_zOrderValue;
if ( m_zOrderValue == -1000 )
m_zOrderValue = 0;
v5 = m_zOrderValue - 1;
if ( m_zOrderValue == 1 )
v5 = -1;
if ( (unsigned int)(m_zOrderValue + 1) > 1 )
v6 = m_zOrderValue + 1;
else
v6 = 1;
if ( a3 != 1 )
v6 = v5;
if ( v6 <= -100 )
v6 = -100;
if ( v6 >= 100 )
v6 = 100;
a1->m_zOrderValue = v6;
SetGroupIDLayer::updateZOrderLabel(a1);
SetGroupIDLayer::updateZOrder(a1);
break;
}
}
else
{
switch ( a2 )
{
case 1:
a1->m_groupIDValue = (a1->m_groupIDValue + a3) & ~((a1->m_groupIDValue + a3) >> 31);
SetGroupIDLayer::updateGroupIDLabel(a1);
break;
case 3:
a1->m_orderValue = (a1->m_orderValue + a3) & ~((a1->m_orderValue + a3) >> 31);
SetGroupIDLayer::updateEditorOrder(a1);
SetGroupIDLayer::updateEditorOrderLabel(a1);
break;
case 4:
a1->m_channelValue = (a1->m_channelValue + a3) & ~((a1->m_channelValue + a3) >> 31);
SetGroupIDLayer::updateOrderChannel(a1);
SetGroupIDLayer::updateOrderChannelLabel(a1);
break;
}
}
}