//
// EditorUI::EditorUI from 0x1400de9e0 to 0x1400dee1f (1087 bytes)
//
// 2 xrefs:
// > LevelEditorLayer::init @ 0x1402d2b1a
// > ??> @ 0x1406c8af0
//
// 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
//
// Hidden C++ exception states: #wind=4
EditorUI *EditorUI::EditorUI(EditorUI *a1)
{
std::_List_simple_types>::_Node *v2; // rax
std::_List_val>>::_Nodeptr Myhead; // rbx
char *v4; // rsi
std::_Vector_val>>>>>::pointer Myfirst; // rcx
__int64 v6; // rax
char *v7; // rax
cocos2d::CCLayer::CCLayer(a1);
a1->cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (EditorUI_vtbl *)&EditorUI::`vftable';
a1->cocos2d::CCLayer::cocos2d::CCTouchDelegate::__vftable = (cocos2d::CCTouchDelegate_vtbl *)&EditorUI::`vftable';
a1->cocos2d::CCLayer::cocos2d::CCAccelerometerDelegate::__vftable = (cocos2d::CCAccelerometerDelegate_vtbl *)&EditorUI::`vftable';
a1->cocos2d::CCLayer::cocos2d::CCKeypadDelegate::__vftable = (cocos2d::CCKeypadDelegate_vtbl *)&EditorUI::`vftable';
a1->cocos2d::CCLayer::cocos2d::CCKeyboardDelegate::__vftable = (cocos2d::CCKeyboardDelegate_vtbl *)&EditorUI::`vftable';
a1->cocos2d::CCLayer::cocos2d::CCMouseDelegate::__vftable = (cocos2d::CCMouseDelegate_vtbl *)&EditorUI::`vftable';
a1->FLAlertLayerProtocol::__vftable = (FLAlertLayerProtocol_vtbl *)&EditorUI::`vftable';
a1->ColorSelectDelegate::__vftable = (ColorSelectDelegate_vtbl *)&EditorUI::`vftable';
a1->GJRotationControlDelegate::__vftable = (GJRotationControlDelegate_vtbl *)&EditorUI::`vftable';
a1->GJScaleControlDelegate::__vftable = (GJScaleControlDelegate_vtbl *)&EditorUI::`vftable';
a1->GJTransformControlDelegate::__vftable = (GJTransformControlDelegate_vtbl *)&EditorUI::`vftable';
a1->MusicDownloadDelegate::__vftable = (MusicDownloadDelegate_vtbl *)&EditorUI::`vftable';
a1->SetIDPopupDelegate::__vftable = (SetIDPopupDelegate_vtbl *)&EditorUI::`vftable';
a1->m_objectEditorStates._Traitsobj._Mypair._Myval2._Myval2 = 0.0;
a1->m_objectEditorStates._List._Mypair._Myval2._Myhead = nullptr;
a1->m_objectEditorStates._List._Mypair._Myval2._Mysize = 0;
v2 = (std::_List_simple_types>::_Node *)operator new(0x30u);
*(_QWORD *)v2 = v2;
*((_QWORD *)v2 + 1) = v2;
a1->m_objectEditorStates._List._Mypair._Myval2._Myhead = v2;
a1->m_objectEditorStates._Vec._Mypair._Myval2._Myfirst = nullptr;
a1->m_objectEditorStates._Vec._Mypair._Myval2._Mylast = nullptr;
a1->m_objectEditorStates._Vec._Mypair._Myval2._Myend = nullptr;
a1->m_objectEditorStates._Mask = 7;
a1->m_objectEditorStates._Maxidx = 8;
a1->m_objectEditorStates._Traitsobj._Mypair._Myval2._Myval2 = 1.0;
Myhead = a1->m_objectEditorStates._List._Mypair._Myval2._Myhead;
v4 = (char *)operator new(0x80u);
Myfirst = a1->m_objectEditorStates._Vec._Mypair._Myval2._Myfirst;
v6 = (a1->m_objectEditorStates._Vec._Mypair._Myval2._Myend - Myfirst) >> 3;
if ( v6 )
{
if ( (unsigned __int64)(8 * v6) >= 0x1000 )
{
if ( (unsigned __int64)Myfirst - *((_QWORD *)Myfirst - 1) - 8 > 0x1F )
invalid_parameter_noinfo_noreturn();
Myfirst = *((std::_Vector_val>>>>>::pointer *)Myfirst
- 1);
}
j_j_free(Myfirst);
}
a1->m_objectEditorStates._Vec._Mypair._Myval2._Myfirst = (std::_Vector_val>>>>>::pointer)v4;
v7 = v4 + 128;
a1->m_objectEditorStates._Vec._Mypair._Myval2._Mylast = (std::_Vector_val>>>>>::pointer)(v4 + 128);
a1->m_objectEditorStates._Vec._Mypair._Myval2._Myend = (std::_Vector_val>>>>>::pointer)(v4 + 128);
do
{
*(_QWORD *)v4 = Myhead;
v4 += 8;
}
while ( v4 != v7 );
sub_1400DE960((__int64)&a1->m_transformState);
a1->m_isPlayingMusic = 0;
a1->m_customTabBar = nullptr;
a1->m_alertShown = 0;
a1->m_gridSize = 30.0;
*(_QWORD *)&a1->m_playerTouchID1 = -1;
a1->m_playbackActive = 0;
*(_QWORD *)&a1->m_playbackStartWarp = 0;
a1->m_undoObject = nullptr;
*(_DWORD *)&a1->m_spaceSwiping = 0;
a1->m_refreshPosition = 0;
*(_QWORD *)&a1->m_rotationTouchID = -1;
*(_QWORD *)&a1->m_touchID = -1;
a1->m_objectInfoLabel = nullptr;
a1->m_rotationControl = nullptr;
cocos2d::CCPoint::CCPoint(&a1->m_pivotPoint);
a1->m_canActivateControls = 0;
a1->m_scaleControl = nullptr;
a1->m_transformControl = nullptr;
a1->m_editButtonDict = nullptr;
a1->m_createButtonBar = nullptr;
a1->m_editButtonBar = nullptr;
a1->m_positionSlider = nullptr;
*(_QWORD *)&a1->m_unk308 = 0;
a1->m_toolbarHeight = 0.0;
*(_WORD *)&a1->m_swipeEnabled = 0;
*(_DWORD *)&a1->m_freeMoveEnabled = 0;
*(_WORD *)&a1->m_linkControlsDisabled = 0;
cocos2d::CCPoint::CCPoint(&a1->m_createPosition);
cocos2d::CCPoint::CCPoint(&a1->m_snapPosition);
a1->m_selectedObjects = nullptr;
a1->m_deleteMenu = nullptr;
a1->m_customTabControls = nullptr;
a1->m_deleteModeBtn = nullptr;
a1->m_buildModeBtn = nullptr;
a1->m_editModeBtn = nullptr;
a1->m_swipeBtn = nullptr;
a1->m_deselectBtn = nullptr;
a1->m_snapBtn = nullptr;
a1->m_rotateBtn = nullptr;
a1->m_linkBtn = nullptr;
a1->m_unlinkBtn = nullptr;
a1->m_enableLinkBtn = nullptr;
a1->m_undoBtn = nullptr;
a1->m_redoBtn = nullptr;
a1->m_editObjectBtn = nullptr;
a1->m_editSpecialBtn = nullptr;
a1->m_unk3F0 = nullptr;
a1->m_copyPasteBtn = nullptr;
a1->m_deleteGroupSprite = nullptr;
a1->m_unk4b8 = nullptr;
a1->m_unk4c0 = nullptr;
a1->m_createButtonArray = nullptr;
a1->m_selectedMode = 0;
a1->m_editorLayer = nullptr;
cocos2d::CCPoint::CCPoint(&a1->m_swipeStart);
cocos2d::CCPoint::CCPoint(&a1->m_swipeEnd);
cocos2d::CCPoint::CCPoint(&a1->m_swipePosition);
cocos2d::CCPoint::CCPoint(&a1->m_lastTouchPoint);
cocos2d::CCPoint::CCPoint(&a1->m_cameraTest);
cocos2d::CCPoint::CCPoint(&a1->m_clickAtPosition);
a1->m_selectedObject = nullptr;
a1->m_snapObject = nullptr;
*(_WORD *)&a1->m_isDraggingCamera = 0;
a1->m_findSnap = 0;
a1->m_unk540 = nullptr;
a1->m_selectedTab = 0;
a1->m_cycledObjectIndex = 1;
a1->m_colorOverlay = nullptr;
a1->m_hsvOverlay = nullptr;
a1->m_keyTime = 0.0;
a1->m_keyTime2 = 0.0;
a1->m_swipeModeTriggered = 0;
a1->m_pressedSpace = 0;
a1->m_editorZoom = 1.0;
*(_WORD *)&a1->m_isPaused = 0;
return a1;
}