issue-5-gamesystems #6
@ -113,8 +113,11 @@ export class AppComponent implements OnInit{
 | 
			
		||||
    } else {
 | 
			
		||||
      parentGamesystemName = this.gamesystemOverview!.selectedGamesystemName;
 | 
			
		||||
    }
 | 
			
		||||
    this.gameModel!.createGamesystem("New Gamesystem", parentGamesystemName);
 | 
			
		||||
    const createdGamesystem = this.gameModel!.createGamesystem("New Gamesystem", parentGamesystemName);
 | 
			
		||||
    if(createdGamesystem != undefined) {
 | 
			
		||||
      this.gamesystemOverview!.refresh();
 | 
			
		||||
      this.editor?.openGameModelComponent(createdGamesystem!);
 | 
			
		||||
    }
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  private getSelectedModelComponent(): ModelComponent | undefined {
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user