// // ConfigureHSVWidget::updateLabels from 0x4b6c54 to 0x4b6ea2 (590 bytes) // // 5 xrefs: // > ConfigureHSVWidget::sliderChanged @ 0x4b6f82 // > ConfigureHSVWidget::onToggleSConst @ 0x4b6fea // > ConfigureHSVWidget::onToggleVConst @ 0x4b703e // > ConfigureHSVWidget::onResetHSV @ 0x4b7094 // > ConfigureHSVWidget::init @ 0x4b7628 // // 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 ConfigureHSVWidget::updateLabels(ConfigureHSVWidget *a1) { cocos2d::CCObject *v2; // r7 const char *v3; // r1 cocos2d::CCString *v4; // r0 char *v5; // r0 char *v6; // r2 cocos2d::CCObject *v7; // r7 const char *v8; // r1 cocos2d::CCString *v9; // r0 char *v10; // r0 char *v11; // r2 cocos2d::CCObject *v12; // r7 const char *v13; // r1 cocos2d::CCString *v14; // r0 char *v15; // r0 char *v16; // r2 cocos2d::CCString *v17; // r0 char *CString; // r0 const char *v19; // r1 cocos2d::CCString *v20; // r0 char *v21; // r0 char *v22; // r1 const char *v23; // r1 cocos2d::CCString *v24; // r0 char *v25; // r0 char *v26; // r1 const unsigned __int8 *v27; // [sp+8h] [bp-10h] BYREF const unsigned __int8 *v28; // [sp+Ch] [bp-Ch] BYREF const unsigned __int8 *v29; // [sp+10h] [bp-8h] BYREF if ( !a1->m_addInputs ) { sub_776584((int)&v27, "Hue: "); if ( a1->m_hsv.h > 0.0 ) sub_774544((int)&v27, "+"); v17 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%i", (const char *)(int)a1->m_hsv.h); CString = (char *)cocos2d::CCString::getCString(v17); sub_774544((int)&v27, CString); a1->m_hueLabel->setString(a1->m_hueLabel, v27); sub_776584((int)&v28, "Saturation: "); if ( a1->m_hsv.absoluteSaturation ) { if ( a1->m_hsv.s <= 0.0 ) { LABEL_7: v20 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%.02f", v19, a1->m_hsv.s); v21 = (char *)cocos2d::CCString::getCString(v20); sub_774544((int)&v28, v21); a1->m_saturationLabel->setString(a1->m_saturationLabel, v28); sub_776584((int)&v29, "Brightness: "); if ( a1->m_hsv.absoluteBrightness ) { if ( a1->m_hsv.v <= 0.0 ) { LABEL_13: v24 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%.02f", v23, a1->m_hsv.v); v25 = (char *)cocos2d::CCString::getCString(v24); sub_774544((int)&v29, v25); a1->m_brightnessLabel->setString(a1->m_brightnessLabel, v29); sub_774008(&v29); sub_774008(&v28); sub_774008(&v27); goto LABEL_17; } v26 = "+"; } else { v26 = "x"; } sub_774544((int)&v29, v26); goto LABEL_13; } v22 = "+"; } else { v22 = "x"; } sub_774544((int)&v28, v22); goto LABEL_7; } a1->m_updating = 1; v2 = cocos2d::CCDictionary::objectForKey(a1->m_inputs, 1); v4 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%.0f", v3, a1->m_hsv.h); v5 = (char *)cocos2d::CCString::getCString(v4); sub_776584((int)&v29, v5); CCTextInputNode::setString((int)v2, (char *)&v29, v6); sub_774008(&v29); v7 = cocos2d::CCDictionary::objectForKey(a1->m_inputs, 2); v9 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%.2f", v8, a1->m_hsv.s); v10 = (char *)cocos2d::CCString::getCString(v9); sub_776584((int)&v29, v10); CCTextInputNode::setString((int)v7, (char *)&v29, v11); sub_774008(&v29); v12 = cocos2d::CCDictionary::objectForKey(a1->m_inputs, 3); v14 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%.2f", v13, a1->m_hsv.v); v15 = (char *)cocos2d::CCString::getCString(v14); sub_776584((int)&v29, v15); CCTextInputNode::setString((int)v12, (char *)&v29, v16); sub_774008(&v29); a1->m_updating = 0; LABEL_17: a1->m_mixed = 0; }