Example #1
0
void VSTPlugin::Edit(bool open)
{	
	if(Is()) { 	
        if(open) {
		    if(HasEditor() && !IsEdited())
                StartEditor(this);
        }
        else if(IsEdited())
            StopEditor(this);
	}
}
Example #2
0
//Function change current game mode
void MainGame::ChangeMode(Mode m)
{
	if(m == none)
	{
		Clear();
		StartNone();	
	}
	if(m == game)
	{
		Clear();
		StartNewGame();
	}
	if(m == editor)
	{
		StartEditor();
	}
	mode = m;	
}