// // LabelGameObject::updateLabelAlign from 0x100388c4c to 0x100388cbc (112 bytes) // // 3 xrefs: // > LabelGameObject::createLabel @ 0x100388b90 // > LabelGameObject::customObjectSetup @ 0x1003892c0 // > SetItemIDLayer::valueDidChange @ 0x10041a418 // // 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 LabelGameObject::updateLabelAlign(LabelGameObject *a1, int a2) { __n128 v2; // q0 __n128 v3; // q1 cocos2d::CCLabelBMFont *m_label; // x19 int v5; // [xsp+8h] [xbp-18h] BYREF a1->m_alignment = a2; m_label = a1->m_label; if ( m_label ) { if ( a2 == 2 ) { v2.n128_u32[0] = 1.0; } else if ( a2 == 1 ) { v2.n128_u32[0] = 0; } else { v2.n128_u32[0] = 0.5; } v3.n128_u32[0] = 0.5; sub_100022980(v2, v3, &v5); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, int *))m_label->setAnchorPoint)(m_label, &v5); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source