// // CharacterColorPage::offsetForIndex from 0xa24edc to 0xa24f6c (144 bytes) // // 2 xrefs: // > CharacterColorPage::createColorMenu @ 0xa251cc // > @ 0xaf290 // // 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 // cocos2d::CCPoint CharacterColorPage::offsetForIndex(CharacterColorPage *a1, int a2) { cocos2d::CCPoint *v2; // x8 float v3; // s1 cocos2d::CCPoint result; // 0:s0.4,4:s1.4 if ( (unsigned int)(a2 - 54) <= 0x51 ) { v3 = -0.8; } else { v3 = 0.0; if ( a2 > 135 ) v3 = 0.4; } switch ( a2 ) { case 4: case 5: case 6: case 7: case 13: case 14: case 15: case 16: case 22: case 23: case 24: case 25: case 31: case 32: case 33: case 34: case 40: case 41: case 42: case 43: case 49: case 50: case 51: case 52: case 58: case 59: case 60: case 61: case 67: case 68: case 69: case 70: case 76: case 77: case 78: case 79: case 85: case 86: case 87: case 88: case 94: case 95: case 96: case 97: case 103: case 104: case 105: case 106: case 112: case 113: case 114: case 115: case 136: case 137: case 138: case 139: case 140: case 141: case 142: cocos2d::CCPoint::CCPoint(v2, 1.0, v3); break; default: cocos2d::CCPoint::CCPoint(v2, 0.0, v3); break; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source