//
// GJUINode::draw from 0x5c5c38 to 0x5c5ea8 (624 bytes)
//
// 2 xrefs:
// > ??> @ 0xafab8
// > ??> @ 0x1148288
//
// 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)
{
__int64 v2; // x0
int v3; // w27
int v4; // w26
int v5; // w25
float m_deadzone; // s0
cocos2d::CCPoint v7; // [xsp+60h] [xbp+60h] BYREF
cocos2d::CCPoint v8; // [xsp+68h] [xbp+68h] BYREF
cocos2d::CCPoint v9; // [xsp+70h] [xbp+70h] BYREF
cocos2d::CCPoint v10; // 0:s0.4,4:s1.4
cocos2d::CCPoint v11; // 0:s0.4,4:s1.4
cocos2d::CCPoint v12; // 0:s2.4,4:s3.4
cocos2d::CCPoint v13; // 0:s2.4,4:s3.4
if ( a1->m_drawLines )
{
glLineWidth();
v2 = (unsigned int)a1->getTag(a1) - 2;
if ( (unsigned int)v2 > 2 )
{
v5 = 0;
v4 = 255;
v3 = 0;
}
else
{
v3 = *((unsigned __int8 *)&off_EA3360 + v2);
v4 = byte_EA3370[v2];
v5 = *((unsigned __int8 *)&off_EA3380 + v2);
}
cocos2d::ccDrawColor4B(v3, v4, v5, 0xFFu);
cocos2d::CCPoint::CCPoint(&v7, &a1->m_rect.origin);
cocos2d::CCPoint::CCPoint(&v9, &a1->m_rect.size);
cocos2d::CCPoint::operator+(&v8, &a1->m_rect, &v9);
cocos2d::ccDrawRect(v10, v12);
if ( a1->m_modeB )
{
if ( a1->m_radius > 0.0 )
{
cocos2d::ccDrawColor4B(0xFFu, 0x96u, 0, 0xFFu);
cocos2d::ccDrawCircle(&stru_1241E78, a1->m_radius, 360.0, (unsigned int)&qword_60 + 4, 0);
}
m_deadzone = a1->m_deadzone;
if ( m_deadzone > 0.0 && m_deadzone < a1->m_radius )
{
cocos2d::ccDrawColor4B(0xC8u, 0, 0, 0xFFu);
cocos2d::ccDrawCircle(&stru_1241E78, a1->m_deadzone, 360.0, (unsigned int)&qword_60 + 4, 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)v4 * 0.3),
(unsigned int)(float)((float)v5 * 0.3),
0xFFu);
cocos2d::CCPoint::CCPoint(&v8, 0.0, a1->m_rect.origin.y);
cocos2d::CCPoint::CCPoint(&v9, 0.0, a1->m_rect.origin.y + a1->m_rect.size.height);
cocos2d::ccDrawLine(&v8, &v9);
}
else
{
cocos2d::ccDrawColor4B(0xC8u, 0, 0, 0xFFu);
cocos2d::CCPoint::CCPoint(&v8, -a1->m_deadzone, a1->m_rect.origin.y);
cocos2d::CCPoint::CCPoint(&v9, a1->m_deadzone, a1->m_rect.origin.y + a1->m_rect.size.height);
cocos2d::ccDrawRect(v11, v13);
}
}
}
}