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; }
SICALLBACK Import3DCoatMenu_Init(CRef& in_ctxt) { Context ctxt( in_ctxt ); Menu oMenu; MenuItem oNewItem; oMenu = ctxt.GetSource(); oMenu.AddCallbackItem( L"3DCoat...", L"coatClicked", oNewItem ); 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; }
SICALLBACK AppLink_3DCoat_Init( CRef& in_ctxt ) { Context ctxt( in_ctxt ); Menu oMenu; oMenu = ctxt.GetSource(); MenuItem oNewItem; oMenu.AddCallbackItem( L"Settings", L"coatClicked", oNewItem ); return CStatus::OK; }