This commit is contained in:
parent
64409bf846
commit
0c328e1fd6
@ -70,10 +70,18 @@ export class AppComponent implements OnInit{
|
|||||||
}
|
}
|
||||||
|
|
||||||
private onEditModelComponent() {
|
private onEditModelComponent() {
|
||||||
if(this.openContent == ModelComponentType.SCRIPTACCOUNT && this.scriptAccountOverview != undefined && this.scriptAccountOverview.selectedScriptAccount != undefined) {
|
switch (this.openContent!) {
|
||||||
this.editor!.openGameModelComponent(this.scriptAccountOverview.selectedScriptAccount!);
|
case ModelComponentType.SCRIPTACCOUNT: {
|
||||||
} else {
|
if(this.scriptAccountOverview!.selectedScriptAccount != undefined) {
|
||||||
//Erweitere to Gamesystems
|
this.editor!.openGameModelComponent(this.scriptAccountOverview!.selectedScriptAccount);
|
||||||
|
}
|
||||||
|
} break;
|
||||||
|
case ModelComponentType.GAMESYTEM: {
|
||||||
|
if(this.gamesystemOverview!.selectedGamesystem != undefined) {
|
||||||
|
const gamesystem = this.gameModel!.findGamesystem(this.gamesystemOverview!.selectedGamesystemName!);
|
||||||
|
this.editor!.openGameModelComponent(gamesystem!);
|
||||||
|
}
|
||||||
|
} break
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user