void VSTPlugin::Edit(bool open) { if(Is()) { if(open) { if(HasEditor() && !IsEdited()) StartEditor(this); } else if(IsEdited()) StopEditor(this); } }
//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; }