//
// GJUINode::draw from 0x30c8b4 to 0x30caa0 (492 bytes)
//
// 0 xrefs:
//
// 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 GJUINode::draw(GJUINode *a1)
{
unsigned int v2; // r0
int v3; // r7
unsigned __int8 *v4; // r0
int v5; // r6
int v6; // r5
cocos2d::CCPoint v7; // r2
cocos2d::CCPoint v8; // r0
cocos2d::CCPoint v9; // r2
float m_deadzone; // s15
cocos2d::CCPoint v11; // [sp+14h] [bp-20h] BYREF
cocos2d::CCPoint v12; // [sp+1Ch] [bp-18h] BYREF
cocos2d::CCPoint v13; // [sp+24h] [bp-10h] BYREF
if ( a1->m_drawLines )
{
glLineWidth(2.0);
v2 = a1->getTag(a1) - 2;
if ( v2 > 2 )
{
v6 = 0;
v5 = 255;
v3 = 0;
}
else
{
v3 = byte_9AA040[v2];
v4 = &byte_9AA040[v2];
v5 = v4[4];
v6 = v4[8];
}
cocos2d::ccDrawColor4B(v3, v5, v6, 0xFFu);
cocos2d::CCPoint::CCPoint(&v11, &a1->m_rect.origin);
cocos2d::CCPoint::CCPoint(&v13, &a1->m_rect.size);
cocos2d::CCPoint::operator+(&v12, &a1->m_rect, &v13);
LODWORD(v7.y) = &v11;
cocos2d::ccDrawRect((cocos2d::CCPoint)__PAIR64__(&v12, &v11), v7);
if ( a1->m_modeB )
{
if ( a1->m_radius > 0.0 )
{
cocos2d::ccDrawColor4B((unsigned __int8)&dword_FC + 3, 0x96u, 0, (unsigned __int8)&dword_FC + 3);
cocos2d::ccDrawCircle(&stru_AC5AE0, a1->m_radius, 360.0, 0x64u, 0);
}
m_deadzone = a1->m_deadzone;
if ( m_deadzone > 0.0 && m_deadzone < a1->m_radius )
{
cocos2d::ccDrawColor4B((unsigned __int8)&dword_C8, 0, 0, 0xFFu);
cocos2d::ccDrawCircle(&stru_AC5AE0, a1->m_deadzone, 360.0, 0x64u, 0);
}
}
else if ( a1->m_secondSprite )
{
if ( a1->m_deadzone <= 0.0 )
{
cocos2d::ccDrawColor4B(
(unsigned int)(float)((float)v3 * 0.3),
(unsigned int)(float)((float)v5 * 0.3),
(unsigned int)(float)((float)v6 * 0.3),
0xFFu);
cocos2d::CCPoint::CCPoint(&v12, 0.0, a1->m_rect.origin.y);
cocos2d::CCPoint::CCPoint(&v13, 0.0, a1->m_rect.origin.y + a1->m_rect.size.height);
cocos2d::ccDrawLine(&v12, &v13);
}
else
{
cocos2d::ccDrawColor4B((unsigned __int8)&dword_C8, 0, a1->m_modeB, 0xFFu);
cocos2d::CCPoint::CCPoint(&v12, COERCE_FLOAT(LODWORD(a1->m_deadzone) ^ 0x80000000), a1->m_rect.origin.y);
cocos2d::CCPoint::CCPoint(&v13, a1->m_deadzone, a1->m_rect.origin.y + a1->m_rect.size.height);
LODWORD(v8.x) = &v12;
LODWORD(v8.y) = &v13;
cocos2d::ccDrawRect(v8, v9);
}
}
}
}