XSI::CStatus CPPImportVMF_Init( XSI::CRef& in_ref ) { Context ctxt = in_ref; Menu menu = ctxt.GetSource(); CStatus st; MenuItem item; menu.AddCallbackItem(L"Import VMF...", L"OnVMFImportMenu", item); return CStatus::OK; }
/** Defines the menu text and the event callback to execute (OnOgreMeshExportMenu) */ XSI::CStatus OgreMeshExportMenu_Init( XSI::CRef& in_ref ) { Context ctxt = in_ref; Menu menu = ctxt.GetSource(); CStatus st; MenuItem item; menu.AddCallbackItem(L"OGRE Mesh / Skeleton...", L"OnOgreMeshExportMenu", item); return CStatus::OK; }