// // ConfigureHSVWidget::updateLabels from 0x1000ffdc8 to 0x1001000d0 (776 bytes) // // 5 xrefs: // > ConfigureHSVWidget::init @ 0x1000ff828 // > ConfigureHSVWidget::sliderChanged @ 0x1000ffc28 // > ConfigureHSVWidget::onToggleSConst @ 0x1000ffcac // > ConfigureHSVWidget::onToggleVConst @ 0x1000ffd20 // > ConfigureHSVWidget::onResetHSV @ 0x1000ffd98 // // 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 __fastcall ConfigureHSVWidget::updateLabels(ConfigureHSVWidget *a1) { cocos2d::CCObject *v2; // x20 cocos2d::CCString *v3; // x0 char *CString; // x0 cocos2d::CCObject *v5; // x20 cocos2d::CCString *v6; // x0 char *v7; // x0 cocos2d::CCObject *v8; // x20 cocos2d::CCString *v9; // x0 char *v10; // x0 float h; // s0 cocos2d::CCString *v12; // x0 const char *v13; // x0 std::string *v14; // x1 const std::string::value_type *v15; // x1 cocos2d::CCString *v16; // x0 const char *v17; // x0 std::string *v18; // x1 const std::string::value_type *v19; // x1 cocos2d::CCString *v20; // x0 const char *v21; // x0 std::string *v22; // x1 std::string v23; // [xsp+10h] [xbp-A0h] BYREF std::string v24; // [xsp+28h] [xbp-88h] BYREF std::string v25; // [xsp+40h] [xbp-70h] BYREF void *__p[2]; // [xsp+58h] [xbp-58h] BYREF char v27; // [xsp+6Fh] [xbp-41h] void *v28[2]; // [xsp+70h] [xbp-40h] BYREF char v29; // [xsp+87h] [xbp-29h] void *v30[2]; // [xsp+88h] [xbp-28h] BYREF char v31; // [xsp+9Fh] [xbp-11h] if ( a1->m_addInputs ) { a1->m_updating = 1; v2 = cocos2d::CCDictionary::objectForKey(a1->m_inputs, 1); v3 = (cocos2d::CCString *)sub_100268F4C("%.0f", a1->m_hsv.h); CString = (char *)cocos2d::CCString::getCString(v3); sub_100009900(v30, CString); CCTextInputNode::setString(v2, v30); if ( v31 < 0 ) operator delete(v30[0]); v5 = cocos2d::CCDictionary::objectForKey(a1->m_inputs, 2); v6 = (cocos2d::CCString *)sub_100268F4C("%.2f", a1->m_hsv.s); v7 = (char *)cocos2d::CCString::getCString(v6); sub_100009900(v28, v7); CCTextInputNode::setString(v5, v28); if ( v29 < 0 ) operator delete(v28[0]); v8 = cocos2d::CCDictionary::objectForKey(a1->m_inputs, 3); v9 = (cocos2d::CCString *)sub_100268F4C("%.2f", a1->m_hsv.v); v10 = (char *)cocos2d::CCString::getCString(v9); sub_100009900(__p, v10); CCTextInputNode::setString(v8, __p); if ( v27 < 0 ) operator delete(__p[0]); a1->m_updating = 0; goto LABEL_36; } sub_100009900(&v25, "Hue: "); h = a1->m_hsv.h; if ( h > 0.0 ) { std::string::append(&v25, "+"); h = a1->m_hsv.h; } v12 = (cocos2d::CCString *)sub_100268F4C("%i", (int)h); v13 = cocos2d::CCString::getCString(v12); std::string::append(&v25, v13); if ( (v25.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL ) v14 = &v25; else v14 = (std::string *)v25.__r_.__value_.__r.__words[0]; ((void (__fastcall *)(cocos2d::CCLabelBMFont *, std::string *))a1->m_hueLabel->setString)(a1->m_hueLabel, v14); sub_100009900(&v24, "Saturation: "); if ( a1->m_hsv.absoluteSaturation ) { if ( a1->m_hsv.s <= 0.0 ) goto LABEL_19; v15 = "+"; } else { v15 = "x"; } std::string::append(&v24, v15); LABEL_19: v16 = (cocos2d::CCString *)sub_100268F4C("%.02f", a1->m_hsv.s); v17 = cocos2d::CCString::getCString(v16); std::string::append(&v24, v17); if ( (v24.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL ) v18 = &v24; else v18 = (std::string *)v24.__r_.__value_.__r.__words[0]; ((void (__fastcall *)(cocos2d::CCLabelBMFont *, std::string *))a1->m_saturationLabel->setString)( a1->m_saturationLabel, v18); sub_100009900(&v23, "Brightness: "); if ( !a1->m_hsv.absoluteBrightness ) { v19 = "x"; goto LABEL_26; } if ( a1->m_hsv.v > 0.0 ) { v19 = "+"; LABEL_26: std::string::append(&v23, v19); } v20 = (cocos2d::CCString *)sub_100268F4C("%.02f", a1->m_hsv.v); v21 = cocos2d::CCString::getCString(v20); std::string::append(&v23, v21); if ( (v23.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL ) v22 = &v23; else v22 = (std::string *)v23.__r_.__value_.__r.__words[0]; ((void (__fastcall *)(cocos2d::CCLabelBMFont *, std::string *))a1->m_brightnessLabel->setString)( a1->m_brightnessLabel, v22); if ( SHIBYTE(v23.__r_.__value_.__r.__words[2]) < 0 ) operator delete(v23.__r_.__value_.__l.__data_); if ( SHIBYTE(v24.__r_.__value_.__r.__words[2]) < 0 ) operator delete(v24.__r_.__value_.__l.__data_); if ( SHIBYTE(v25.__r_.__value_.__r.__words[2]) < 0 ) operator delete(v25.__r_.__value_.__l.__data_); LABEL_36: a1->m_mixed = 0; }