// // SetupItemEditTriggerPopup::onOpButton from 0x57b668 to 0x57b712 (170 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 SetupItemEditTriggerPopup::onOpButton(SetupItemEditTriggerPopup *a1, cocos2d::CCObject *a2) { int v4; // r5 int v5; // r4 v4 = a2->getTag(a2); v5 = (int)a1->getValue(a1, v4) + 1; if ( (unsigned int)(v4 - 485) <= 1 ) { if ( v5 >= 4 ) v5 = 0; goto LABEL_19; } if ( (unsigned int)(v4 - 578) <= 1 ) { if ( v5 <= 2 ) goto LABEL_13; LABEL_20: if ( v4 == 482 ) v5 = 3; else v5 = 0; goto LABEL_19; } if ( v5 > 4 ) { if ( v4 == 481 ) { v5 = 1; goto LABEL_19; } goto LABEL_20; } if ( v4 != 481 ) { LABEL_13: if ( v4 == 482 && v5 < 3 ) v5 = 3; goto LABEL_19; } if ( v5 < 1 ) v5 = 1; LABEL_19: SetupTriggerPopup::updateValue(a1, v4, (float)v5); SetupItemEditTriggerPopup::updateOpButton(a1, (CCMenuItemSpriteExtra *)a2, v5, v4); SetupItemEditTriggerPopup::updateFormulaLabel(a1); }
GD Web Decomp Icon

GD Web Decomp

Raw Source