// // SetupItemCompareTriggerPopup::onCustomToggleTriggerValue from 0xa4ca44 to 0xa4cbe4 (416 bytes) // // 2 xrefs: // > @ 0x4a700 // > @ 0x11e7d20 // // 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::onCustomToggleTriggerValue(SetupItemCompareTriggerPopup *a1, cocos2d::CCObject *a2) { int v3; // w0 int v4; // w19 int v5; // w19 bool v6; // w24 bool v7; // w23 bool v8; // w22 bool v9; // w21 float v10; // s0 bool v11; // w19 v3 = a2->getTag(a2); v4 = v3; if ( v3 <= 100 ) { SetupTriggerPopup::updateValue(a1, 476, (float)v3); SetupTriggerPopup::updateCustomToggleTrigger(a1, 1, v4 == 1); SetupTriggerPopup::updateCustomToggleTrigger(a1, 2, v4 == 2); SetupTriggerPopup::updateCustomToggleTrigger(a1, 3, v4 == 3); SetupTriggerPopup::updateCustomToggleTrigger(a1, 4, v4 == 4); SetupTriggerPopup::updateCustomToggleTrigger(a1, 5, v4 == 5); SetupItemCompareTriggerPopup::updateFormulaLabel(a1); } else { v5 = v3 - 100; if ( (int)a1->getValue(a1, 477) == v3 - 100 ) { v10 = 0.0; v11 = 0; v9 = 0; v8 = 0; v7 = 0; v6 = 0; } else { v6 = v5 == 1; v7 = v5 == 2; v8 = v5 == 3; v9 = v5 == 4; v10 = (float)v5; v11 = v5 == 5; } SetupTriggerPopup::updateValue(a1, 477, v10); SetupTriggerPopup::updateCustomToggleTrigger(a1, 101, v6); SetupTriggerPopup::updateCustomToggleTrigger(a1, 102, v7); SetupTriggerPopup::updateCustomToggleTrigger(a1, 103, v8); SetupTriggerPopup::updateCustomToggleTrigger(a1, 104, v9); SetupTriggerPopup::updateCustomToggleTrigger(a1, 105, v11); SetupItemCompareTriggerPopup::updateFormulaLabel(a1); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source