// // SetupItemCompareTriggerPopup::onOpButton from 0x14046e670 to 0x14046e745 (213 bytes) // // 2 xrefs: // > SetupItemCompareTriggerPopup::init @ 0x14046e340 // > @ 0x1406db24c // // 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 SetupItemCompareTriggerPopup::onOpButton(SetupItemCompareTriggerPopup *a1, cocos2d::CCObject *a2) { __int64 v4; // rdi int v5; // ebx int v6; // ecx int v7; // ecx SetupItemCompareTriggerPopup *v8; // rcx v4 = (unsigned int)a2->getTag(a2); v5 = (int)a1->getValue(a1, v4) + 1; if ( (_DWORD)v4 == 482 ) { v6 = 0; if ( v5 <= 5 ) v6 = v5; v5 = v6; } else { if ( (unsigned int)(v4 - 485) <= 1 ) { if ( v5 > 3 ) v5 = 0; } else if ( (unsigned int)(v4 - 578) <= 1 ) { v7 = 0; if ( v5 <= 2 ) v7 = v5; v5 = v7; } else if ( v5 > 4 ) { v5 = 0; } if ( (unsigned int)(v4 - 480) <= 1 && v5 < 1 ) v5 = 1; } SetupTriggerPopup::updateValue(a1, v4, (float)v5); SetupItemCompareTriggerPopup::updateOpButton(v8, (CCMenuItemSpriteExtra *)a2, v5, v4); SetupItemCompareTriggerPopup::updateFormulaLabel(a1); }
GD Web Decomp Icon

GD Web Decomp

Raw Source