// // ConfigureHSVWidget::sliderChanged from 0x8e15b0 to 0x8e16c0 (272 bytes) // // 5 xrefs: // > @ 0xb4540 // > ConfigureHSVWidget::init @ 0x8e1958 // > ConfigureHSVWidget::init @ 0x8e1a74 // > ConfigureHSVWidget::init @ 0x8e1b94 // > @ 0x122e418 // // 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::sliderChanged(ConfigureHSVWidget *a1, cocos2d::CCObject *a2) { int v3; // w0 const char *v4; // x1 HSVWidgetDelegate *m_delegate; // x0 cocos2d::CCString *v6; // x0 float v7; // s0 float v8; // s0 cocos2d::CCString *v9; // x0 float v10; // s0 float v11; // s0 float Value; // [xsp+30h] [xbp+30h] Value = SliderThumb::getValue((SliderThumb *)a2); v3 = a2->getTag(a2); switch ( v3 ) { case 2: v9 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%0.2f", v4, Value); v10 = cocos2d::CCString::floatValue(v9); if ( a1->m_hsv.absoluteSaturation ) v11 = (float)(v10 * 2.0) + -1.0; else v11 = v10 + v10; a1->m_hsv.s = v11; break; case 3: v6 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%0.2f", v4, Value); v7 = cocos2d::CCString::floatValue(v6); if ( a1->m_hsv.absoluteBrightness ) v8 = (float)(v7 * 2.0) + -1.0; else v8 = v7 + v7; a1->m_hsv.v = v8; break; case 1: a1->m_hsv.h = (float)(int)(float)((float)(Value * 360.0) + -180.0); break; } ConfigureHSVWidget::updateLabels(a1); m_delegate = a1->m_delegate; if ( m_delegate ) m_delegate->hsvChanged(m_delegate, a1); }
GD Web Decomp Icon

GD Web Decomp

Raw Source