// // EditorUI::scrollWheel from 0x1003fa718 to 0x1003fa840 (296 bytes) // // 2 xrefs: // > sub_1003FA840 @ 0x1003fa844 // > @ 0x100814058 // // 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 EditorUI::scrollWheel(EditorUI *a1, float a2, float a3) { cocos2d::CCDirector *v6; // x0 __n128 v7; // q0 __n128 v8; // q1 float v9; // s0 float v10; // s0 timeb v11; // [xsp+0h] [xbp-30h] BYREF cocos2d::CCPoint v12; // 0:s0.4,4:s1.4 if ( a1->m_editorLayer->m_playbackMode != Playing ) { ftime(&v11); a1->m_keyTime = (double)(v11.millitm + 1000 * (unsigned __int64)(v11.time & 0xFFFFF)) / 1000.0; v6 = cocos2d::CCDirector::sharedDirector(); if ( *(_BYTE *)(((__int64 (__fastcall *)(cocos2d::CCDirector *))v6->getKeyboardDispatcher)(v6) + 89) == 1 ) { ((void (__fastcall *)(cocos2d::CCLayer *))a1->m_editorLayer->m_objectLayer->getScale)(a1->m_editorLayer->m_objectLayer); if ( a2 > 0.0 || a3 > 0.0 ) { v10 = v9 + -0.1; if ( v10 > 4.0 ) v10 = 4.0; } else { v10 = v9 + 0.1; if ( v10 > 4.0 ) v10 = 4.0; } if ( v10 < 0.1 ) v10 = 0.1; EditorUI::updateZoom(a1, v10); } else { v7.n128_f32[0] = a3; v8.n128_f32[0] = a2; sub_100022980(v7, v8, &v11); EditorUI::moveGamelayer(a1, v12); EditorUI::updateSlider(a1); } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source