// // UIOptionsLayer::getValue from 0x1402a3960 to 0x1402a3cf4 (916 bytes) // // 2 xrefs: // > @ 0x1405785d8 // > @ 0x1406d1ff4 // // 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 // // Hidden C++ exception states: #wind=1 float UIOptionsLayer::getValue(UIOptionsLayer *a1, int a2) { float result; // xmm0_4 GJUINode *m_uiNode4; // rax cocos2d::CCRGBAProtocol *v4; // rcx cocos2d::CCRGBAProtocol *v5; // rcx cocos2d::CCRGBAProtocol *v6; // rcx cocos2d::CCRGBAProtocol *v7; // rcx GameManager *v8; // rcx void *v9; // [rsp+40h] [rbp+18h] switch ( a2 ) { case -28: return (float)a1->m_uiNode2->m_split; case -27: return (float)a1->m_uiNode1->m_split; case -26: v8 = (GameManager *)qword_1406C2ED8; if ( !qword_1406C2ED8 ) { v9 = operator new(0x668u); qword_1406C2ED8 = sub_14017AB00((__int64)v9); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8); v8 = (GameManager *)qword_1406C2ED8; } return (float)GameManager::getGameVariable(v8, "0113"); case -25: return (float)a1->m_uiNode2->m_snap; case -24: return (float)a1->m_uiNode1->m_snap; case -23: return (float)a1->m_dual; case -22: return a1->m_uiNode2->m_deadzone; case -21: return a1->m_uiNode1->m_deadzone; case -20: return a1->m_uiNode2->m_radius; case -19: return a1->m_uiNode1->m_radius; case -18: return (float)a1->m_uiNode2->m_modeB; case -17: return (float)a1->m_uiNode1->m_modeB; case -16: v7 = &a1->m_uiNode4->m_firstSprite->cocos2d::CCRGBAProtocol; return (float)v7->getOpacity(v7) / 255.0; case -15: v6 = &a1->m_uiNode3->m_firstSprite->cocos2d::CCRGBAProtocol; return (float)v6->getOpacity(v6) / 255.0; case -14: v5 = &a1->m_uiNode2->m_firstSprite->cocos2d::CCRGBAProtocol; return (float)v5->getOpacity(v5) / 255.0; case -13: v4 = &a1->m_uiNode1->m_firstSprite->cocos2d::CCRGBAProtocol; return (float)v4->getOpacity(v4) / 255.0; case -12: m_uiNode4 = a1->m_uiNode4; goto LABEL_11; case -11: m_uiNode4 = a1->m_uiNode3; goto LABEL_11; case -10: m_uiNode4 = a1->m_uiNode2; goto LABEL_11; case -9: m_uiNode4 = a1->m_uiNode1; LABEL_11: result = m_uiNode4->m_firstSprite->getScale(m_uiNode4->m_firstSprite); break; case -8: result = a1->m_uiNode4->m_rect.size.height; break; case -7: result = a1->m_uiNode3->m_rect.size.height; break; case -6: result = a1->m_uiNode2->m_rect.size.height; break; case -5: result = a1->m_uiNode1->m_rect.size.height; break; case -4: result = a1->m_uiNode4->m_rect.size.width; break; case -3: result = a1->m_uiNode3->m_rect.size.width; break; case -2: result = a1->m_uiNode2->m_rect.size.width; break; case -1: result = a1->m_uiNode1->m_rect.size.width; break; default: result = 0.0; break; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source