// // SetupItemCompareTriggerPopup::updateFormulaLabel from 0x57b7fc to 0x57bc1c (1056 bytes) // // 4 xrefs: // > SetupItemCompareTriggerPopup::onCustomToggleTriggerValue @ 0x57bd80 // > SetupItemCompareTriggerPopup::valueDidChange @ 0x57bd9e // > SetupItemCompareTriggerPopup::init @ 0x57c7d6 // > SetupItemCompareTriggerPopup::onOpButton @ 0x57c9de // // 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::updateFormulaLabel(SetupItemCompareTriggerPopup *a1) { int v2; // s16 int v3; // r5 int v4; // r11 int v5; // r10 int v6; // r8 int v7; // s15 int v8; // r7 float v9; // r0 int v10; // s18 float v11; // r0 int v12; // r1 _BOOL4 v13; // r5 float v14; // s17 float v15; // s16 const char *v16; // r1 cocos2d::CCString *v17; // r0 char *CString; // r0 const char *v19; // r1 cocos2d::CCString *v20; // r0 char *v21; // r0 int v22; // [sp+4h] [bp-48h] int v23; // [sp+8h] [bp-44h] int v24; // [sp+Ch] [bp-40h] int v25; // [sp+10h] [bp-3Ch] _BYTE v26[4]; // [sp+1Ch] [bp-30h] BYREF _BYTE v27[4]; // [sp+20h] [bp-2Ch] BYREF const unsigned __int8 *v28; // [sp+24h] [bp-28h] BYREF _BYTE v29[4]; // [sp+28h] [bp-24h] BYREF _BYTE v30[4]; // [sp+2Ch] [bp-20h] BYREF _BYTE v31[4]; // [sp+30h] [bp-1Ch] BYREF _BYTE v32[4]; // [sp+34h] [bp-18h] BYREF _BYTE v33[4]; // [sp+38h] [bp-14h] BYREF _BYTE v34[4]; // [sp+3Ch] [bp-10h] BYREF _BYTE v35[4]; // [sp+40h] [bp-Ch] BYREF v2 = (int)COERCE_FLOAT(((int (__fastcall *)(SetupItemCompareTriggerPopup *, int))a1->getValue)(a1, 80)); v3 = (int)COERCE_FLOAT(((int (__fastcall *)(SetupItemCompareTriggerPopup *, int))a1->getValue)(a1, 95)); v4 = (int)COERCE_FLOAT(((int (__fastcall *)(SetupItemCompareTriggerPopup *, int))a1->getValue)(a1, 476)); v5 = (int)COERCE_FLOAT(((int (__fastcall *)(SetupItemCompareTriggerPopup *, int))a1->getValue)(a1, 477)); v6 = (int)COERCE_FLOAT(((int (__fastcall *)(SetupItemCompareTriggerPopup *, int))a1->getValue)(a1, 480)); v7 = (int)COERCE_FLOAT(((int (__fastcall *)(SetupItemCompareTriggerPopup *, int))a1->getValue)(a1, 481)); v8 = v7; v9 = COERCE_FLOAT(((int (__fastcall *)(SetupItemCompareTriggerPopup *, int))a1->getValue)(a1, 482)); if ( v6 <= 0 ) v6 = 3; if ( v7 <= 0 ) v8 = 3; v10 = (int)v9; v22 = (int)COERCE_FLOAT(((int (__fastcall *)(SetupItemCompareTriggerPopup *, int))a1->getValue)(a1, 485)); v23 = (int)COERCE_FLOAT(((int (__fastcall *)(SetupItemCompareTriggerPopup *, int))a1->getValue)(a1, 486)); v24 = (int)COERCE_FLOAT(((int (__fastcall *)(SetupItemCompareTriggerPopup *, int))a1->getValue)(a1, 578)); v11 = COERCE_FLOAT(((int (__fastcall *)(SetupItemCompareTriggerPopup *, int))a1->getValue)(a1, 579)); v12 = v4; if ( v4 < 1 ) v12 = 1; v25 = (int)v11; getItemVarName((int)v26, v12, v2); getItemVarName((int)v27, v5, v3); if ( v5 ) v13 = v3 > 0 || isSpecialItemType(v5); else v13 = 0; v14 = COERCE_FLOAT(((int (__fastcall *)(SetupItemCompareTriggerPopup *, int))a1->getValue)(a1, 479)); v15 = COERCE_FLOAT(((int (__fastcall *)(SetupItemCompareTriggerPopup *, int))a1->getValue)(a1, 483)); sub_776584((int)&v28, (char *)&unk_939830); if ( v24 > 0 ) { signKeyToString((int)v29, v24, 0); sub_77441C(&v28, v29); sub_774008(v29); sub_774544((int)&v28, "("); } if ( v22 > 0 ) { roundKeyToString((int)v30, v22, 0); sub_77441C(&v28, v30); sub_774008(v30); sub_774544((int)&v28, "("); } sub_77441C(&v28, v26); if ( isOpValid(v6, v14) ) { sub_774544((int)&v28, " "); opKeyToString((int)v31, v6); sub_77441C(&v28, v31); sub_774008(v31); sub_774544((int)&v28, " "); v17 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%.03f", v16, v14); CString = (char *)cocos2d::CCString::getCString(v17); sub_774544((int)&v28, CString); } if ( v22 > 0 ) sub_774544((int)&v28, ")"); if ( v24 > 0 ) sub_774544((int)&v28, ")"); sub_774544((int)&v28, " "); compKeyToString((int)v32, v10); sub_77441C(&v28, v32); sub_774008(v32); sub_774544((int)&v28, " "); if ( v25 > 0 ) { signKeyToString((int)v33, v25, 0); sub_77441C(&v28, v33); sub_774008(v33); sub_774544((int)&v28, "("); } if ( v23 > 0 ) { roundKeyToString((int)v34, v23, 0); sub_77441C(&v28, v34); sub_774008(v34); sub_774544((int)&v28, "("); } if ( v13 ) { sub_77441C(&v28, v27); if ( !isOpValid(v8, v15) ) goto LABEL_28; sub_774544((int)&v28, " "); opKeyToString((int)v35, v8); sub_77441C(&v28, v35); sub_774008(v35); sub_774544((int)&v28, " "); } v20 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%.03f", v19, v15); v21 = (char *)cocos2d::CCString::getCString(v20); sub_774544((int)&v28, v21); LABEL_28: if ( v23 > 0 ) sub_774544((int)&v28, ")"); if ( v25 > 0 ) sub_774544((int)&v28, ")"); a1->m_formulaLabel->setString(a1->m_formulaLabel, v28); cocos2d::CCLabelBMFont::limitLabelWidth(a1->m_formulaLabel, 230.0, 0.7, 0.0); sub_774008(&v28); sub_774008(v27); sub_774008(v26); }
GD Web Decomp Icon

GD Web Decomp

Raw Source