// // EditorUI::create from 0x3a29ac to 0x3a2cae (770 bytes) // // 1 xrefs: // > LevelEditorLayer::init @ 0x376b10 // // 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 // EditorUI *EditorUI::create(LevelEditorLayer *a1) { EditorUI *v2; // r4 unsigned int v3; // r0 std::_Hashtable, std::allocator>, std::__detail::_Select1st, std::equal_to, std::hash, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Prime_rehash_policy, std::__detail::_Hashtable_traits>::__bucket_type *p_M_single_bucket; // r6 size_t v5; // r5 EditorUI_vtbl *v6; // r3 int *v7; // r0 v2 = (EditorUI *)operator new(0x3C0u); cocos2d::CCLayer::CCLayer(v2); v2->m_objectEditorStates._M_h._M_rehash_policy._M_max_load_factor = 1.0; v2->cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (EditorUI_vtbl *)&off_A4C520; v2->cocos2d::CCLayer::cocos2d::CCTouchDelegate::__vftable = (cocos2d::CCTouchDelegate_vtbl *)&off_A4C7DC; v2->cocos2d::CCLayer::cocos2d::CCAccelerometerDelegate::__vftable = (cocos2d::CCAccelerometerDelegate_vtbl *)&off_A4C814; v2->cocos2d::CCLayer::cocos2d::CCKeypadDelegate::__vftable = (cocos2d::CCKeypadDelegate_vtbl *)&off_A4C820; v2->cocos2d::CCLayer::cocos2d::CCKeyboardDelegate::__vftable = (cocos2d::CCKeyboardDelegate_vtbl *)&off_A4C830; v2->cocos2d::CCLayer::cocos2d::CCMouseDelegate::__vftable = (cocos2d::CCMouseDelegate_vtbl *)&off_A4C840; v2->FLAlertLayerProtocol::__vftable = (FLAlertLayerProtocol_vtbl *)&off_A4C854; v2->ColorSelectDelegate::__vftable = (ColorSelectDelegate_vtbl *)&off_A4C860; v2->GJRotationControlDelegate::__vftable = (GJRotationControlDelegate_vtbl *)&off_A4C86C; v2->GJScaleControlDelegate::__vftable = (GJScaleControlDelegate_vtbl *)&off_A4C880; v2->GJTransformControlDelegate::__vftable = (GJTransformControlDelegate_vtbl *)&off_A4C8A4; v2->MusicDownloadDelegate::__vftable = (MusicDownloadDelegate_vtbl *)&off_A4C8EC; v2->SetIDPopupDelegate::__vftable = (SetIDPopupDelegate_vtbl *)&off_A4C91C; v2->m_objectEditorStates._M_h._M_before_begin._M_nxt = nullptr; v2->m_objectEditorStates._M_h._M_element_count = 0; v2->m_objectEditorStates._M_h._M_rehash_policy._M_next_resize = 0; v3 = sub_773A14(&v2->m_objectEditorStates._M_h._M_rehash_policy, 10); v2->m_objectEditorStates._M_h._M_bucket_count = v3; if ( v3 == 1 ) { p_M_single_bucket = &v2->m_objectEditorStates._M_h._M_single_bucket; v2->m_objectEditorStates._M_h._M_single_bucket = nullptr; } else { if ( v3 >= 0x40000000 ) sub_772FB4(v3); v5 = 4 * v3; p_M_single_bucket = (std::_Hashtable, std::allocator>, std::__detail::_Select1st, std::equal_to, std::hash, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Prime_rehash_policy, std::__detail::_Hashtable_traits>::__bucket_type *)operator new(4 * v3); memset(p_M_single_bucket, 0, v5); } v2->m_objectEditorStates._M_h._M_buckets = p_M_single_bucket; v2->m_transformState.m_transformReset = 0; v2->m_transformState.m_transformRotation = 0.0; cocos2d::CCPoint::CCPoint(&v2->m_transformState.m_transformPosition); cocos2d::CCPoint::CCPoint(&v2->m_transformState.m_transformSkewX); cocos2d::CCPoint::CCPoint(&v2->m_transformState.m_transformSkewY); v2->m_transformState.m_scaleX = 1.0; v2->m_transformState.m_scaleY = 1.0; v2->m_gridSize = 30.0; v2->m_transformState.m_angleX = 0.0; v2->m_transformState.m_angleY = 0.0; v2->m_transformState.m_skewX = 0.0; v2->m_transformState.m_skewY = 0.0; v2->m_transformState.m_transformRotationX = 0.0; v2->m_transformState.m_transformRotationY = 0.0; v2->m_transformState.m_transformPosition.x = 0.0; v2->m_transformState.m_transformPosition.y = 0.0; v2->m_transformState.m_transformScaleX = 1.0; v2->m_transformState.m_transformScaleY = 1.0; v2->m_isPlayingMusic = 0; v2->m_customTabBar = nullptr; v2->m_alertShown = 0; v2->m_playerTouchID1 = -1; v2->m_playerTouchID2 = -1; v2->m_playbackActive = 0; v2->m_playbackStartWarp = 0.0; v2->m_playbackStartTime = 0.0; v2->m_undoObject = nullptr; v2->m_spaceSwiping = 0; v2->m_noSnapUndo = 0; v2->m_editingObject = 0; v2->m_increaseScale = 0; v2->m_refreshPosition = 0; v2->m_rotationTouchID = -1; v2->m_scaleTouchID = -1; v2->m_touchID = -1; v2->m_transformTouchID = -1; v2->m_objectInfoLabel = nullptr; v2->m_rotationControl = nullptr; cocos2d::CCPoint::CCPoint(&v2->m_pivotPoint); v2->m_canActivateControls = 0; v2->m_scaleControl = nullptr; v2->m_transformControl = nullptr; v2->m_editButtonDict = nullptr; v2->m_createButtonBar = nullptr; v2->m_editButtonBar = nullptr; v2->m_positionSlider = nullptr; v2->m_unk308 = 0.0; v2->m_constrainedHeight = 0.0; v2->m_toolbarHeight = 0.0; v2->m_swipeEnabled = 0; v2->m_swipeActive = 0; v2->m_freeMoveEnabled = 0; v2->m_snapObjectExists = 0; v2->m_snapSelected = 0; v2->m_stickyControlsEnabled = 0; v2->m_linkControlsDisabled = 0; v2->m_speedObjectsUpdated = 0; cocos2d::CCPoint::CCPoint(&v2->m_createPosition); cocos2d::CCPoint::CCPoint(&v2->m_snapPosition); v2->m_selectedObjects = nullptr; v2->m_deleteMenu = nullptr; v2->m_customTabControls = nullptr; v2->m_deleteModeBtn = nullptr; v2->m_buildModeBtn = nullptr; v2->m_editModeBtn = nullptr; v2->m_swipeBtn = nullptr; v2->m_deselectBtn = nullptr; v2->m_snapBtn = nullptr; v2->m_rotateBtn = nullptr; v2->m_linkBtn = nullptr; v2->m_unlinkBtn = nullptr; v2->m_enableLinkBtn = nullptr; v2->m_undoBtn = nullptr; v2->m_redoBtn = nullptr; v2->m_editObjectBtn = nullptr; v2->m_editSpecialBtn = nullptr; v2->m_unk3F0 = nullptr; v2->m_copyPasteBtn = nullptr; v2->m_deleteGroupSprite = nullptr; v2->m_unk4b8 = nullptr; v2->m_unk4c0 = nullptr; v2->m_createButtonArray = nullptr; v2->m_selectedMode = 0; v2->m_editorLayer = nullptr; cocos2d::CCPoint::CCPoint(&v2->m_swipeStart); cocos2d::CCPoint::CCPoint(&v2->m_swipeEnd); cocos2d::CCPoint::CCPoint(&v2->m_swipePosition); cocos2d::CCPoint::CCPoint(&v2->m_lastTouchPoint); cocos2d::CCPoint::CCPoint(&v2->m_cameraTest); cocos2d::CCPoint::CCPoint(&v2->m_clickAtPosition); v2->m_selectedObject = nullptr; v2->m_snapObject = nullptr; v2->m_isDraggingCamera = 0; v2->m_continueSwipe = 0; v2->m_findSnap = 0; v2->m_unk540 = nullptr; v2->m_selectedTab = 0; v2->m_cycledObjectIndex = 1; v2->m_colorOverlay = nullptr; v2->m_hsvOverlay = nullptr; v2->m_swipeModeTriggered = 0; v2->m_pressedSpace = 0; v2->m_isPaused = 0; v2->m_reloadItems = 0; v2->m_keyTime = 0.0; v2->m_keyTime2 = 0.0; v2->m_editorZoom = 1.0; if ( EditorUI::init(v2, a1) ) { cocos2d::CCObject::autorelease(v2); } else { v6 = v2->cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; v7 = (int *)v2; v2 = nullptr; v6->~EditorUI_0((EditorUI *)v7); } return v2; }
GD Web Decomp Icon

GD Web Decomp

Raw Source