issue-5-gamesystems #6

Merged
sebastian merged 24 commits from issue-5-gamesystems into main 2024-02-10 12:30:37 +00:00
Showing only changes of commit 635da80bf2 - Show all commits

View File

@ -113,8 +113,11 @@ export class AppComponent implements OnInit{
} else { } else {
parentGamesystemName = this.gamesystemOverview!.selectedGamesystemName; parentGamesystemName = this.gamesystemOverview!.selectedGamesystemName;
} }
this.gameModel!.createGamesystem("New Gamesystem", parentGamesystemName); const createdGamesystem = this.gameModel!.createGamesystem("New Gamesystem", parentGamesystemName);
this.gamesystemOverview!.refresh(); if(createdGamesystem != undefined) {
this.gamesystemOverview!.refresh();
this.editor?.openGameModelComponent(createdGamesystem!);
}
} }
private getSelectedModelComponent(): ModelComponent | undefined { private getSelectedModelComponent(): ModelComponent | undefined {