Ejemplo n.º 1
0
ASErr Ai2VltPlugin::GoMenuItem(AIMenuMessage* message)
{
	if (message->menuItem == this->m_aboutMenu)
	{
		SDKAboutPluginsHelper aboutPluginsHelper;
		aboutPluginsHelper.PopAboutBox(message, "Ai->Violet Export Plug-In", "Developed for the Violet engine of Building Forge, LLC");
	}
	else if (message->menuItem == this->m_panelMenu)
	{
		m_panelController->LoadExtension();
	}
	return kNoErr;
}
Ejemplo n.º 2
0
/* Handles this plug-in's menus.
*/
static AIErr GoMenu ( AIMenuMessage* message )
{
	AIErr error = kNoErr;
	error = AcquireSuites( message->d.basic );
	if (!error) {
		if (message->menuItem == g->aboutPluginMenu) {
			// Pop this plug-ins about box.
			SDKAboutPluginsHelper aboutPluginsHelper;
			aboutPluginsHelper.PopAboutBox(message, "About Tutorial", kSDKDefAboutSDKCompanyPluginsAlertString);
		}
	}
	ReleaseSuites( message->d.basic );
	return error;
}
Ejemplo n.º 3
0
extern AIErr goMenuItem( AIMenuMessage *message ) {



	AIErr error = kNoErr;
//	AIPlatformMenuItem	pmenuThrowAway;

	error = acquireSuites( message->d.basic );
	if ( error )
		goto error;

	// Compare the menuItem selected (in the message) with our stored values to see if we do anything
	if (message->menuItem == g->aboutPluginMenu) {
		// Pop this plug-in's about box.
		SDKAboutPluginsHelper aboutPluginsHelper;
		aboutPluginsHelper.PopAboutBox(message, "About MenuPlay", kSDKDefAboutSDKCompanyPluginsAlertString);
	}	
	else if ( message->menuItem == g->checkMeAIMenu ) { // Check Me menu item
		g->checkMeChecked = !g->checkMeChecked;
		sMenu->CheckItem(  g->checkMeAIMenu, g->checkMeChecked );
		}
	else if ( message->menuItem == g->multiDemoAIMenu ) { // Disable Check Me menu item
		if ( g->checkMeEnabled ) {
			error = sMenu->DisableItem( g->checkMeAIMenu ); // disable checkMeMenu
		
			sMenu->SetItemIcon( g->multiDemoAIMenu, 1 );	
			}
		else { 
			error = sMenu->EnableItem( g->checkMeAIMenu ); // enable checkMeMenu

			sMenu->SetItemIcon( g->multiDemoAIMenu, 2 );
			}
		
		g->checkMeEnabled = !g->checkMeEnabled;
		}
		
error:
	releaseSuites( message->d.basic );
	return error;





}
Ejemplo n.º 4
0
extern AIErr goMenuItem( AIMenuMessage *message ) {

	AIErr error = kNoErr;
	
	if ( message->menuItem == g->showADMNonModalDialog ) 
	{
		sADMDialog->Show( g->nonModalDialog, !( sADMDialog->IsVisible( g->nonModalDialog ) ) );
	}
	else if (message->menuItem == g->aboutPluginMenu) {
		// Pop this plug-in's about box.
		SDKAboutPluginsHelper aboutPluginsHelper;
		aboutPluginsHelper.PopAboutBox(message, "About ADMNonModalDialog", kSDKDefAboutSDKCompanyPluginsAlertString);
	}	
	
	if (error)
		goto error;

error:
	return error;

}