27 lines
		
	
	
		
			2.0 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			27 lines
		
	
	
		
			2.0 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
<mat-tab-group [(selectedIndex)]="activeTab">
 | 
						|
  <mat-tab *ngFor="let modelComponent of gameModelComponents">
 | 
						|
    <ng-template mat-tab-label>
 | 
						|
      <mat-icon class="example-tab-icon unsaved" *ngIf="modelComponent.type === ModelComponentType.SCRIPTACCOUNT" [ngClass]="modelComponent.unsaved? 'unsaved':'saved'">inventory_2</mat-icon>
 | 
						|
      <mat-icon class="example-tab-icon unsaved" *ngIf="modelComponent.type === ModelComponentType.GAMESYTEM" [ngClass]="modelComponent.unsaved? 'unsaved':'saved'">code</mat-icon>
 | 
						|
 | 
						|
      <span [ngClass]="modelComponent.unsaved? 'unsaved':'saved'">{{modelComponent.componentName}}</span>
 | 
						|
      <button class="content-label close-btn" mat-icon-button (click)="closeGameModelComponent(modelComponent)"><mat-icon>close</mat-icon></button>
 | 
						|
    </ng-template>
 | 
						|
    <app-model-component-editor [modelComponent]="modelComponent" (onModelNameUpdated)="onModelNameUpdate()"></app-model-component-editor>
 | 
						|
    <app-script-account-editor *ngIf="modelComponent.type === ModelComponentType.SCRIPTACCOUNT"
 | 
						|
                               [scriptAccount]="convertModelComponentToScriptAccount(modelComponent)"></app-script-account-editor>
 | 
						|
    <app-gamesystem-editor *ngIf="modelComponent.type === ModelComponentType.GAMESYTEM"
 | 
						|
                                [gamesystem]="convertModelComponentToGamesystem(modelComponent)"
 | 
						|
                                (onOpenGamesystemEditor)="openGameModelComponent($event)"
 | 
						|
                                [scriptAccounts]="gameModel!.scriptAccounts"></app-gamesystem-editor>
 | 
						|
    <app-character-editor *ngIf="modelComponent.type === ModelComponentType.CHARACTER"
 | 
						|
                                [character]="convertModelComponentToCharacter(modelComponent)"
 | 
						|
                                [gameModel]="gameModel!">
 | 
						|
    </app-character-editor>
 | 
						|
    <app-inventory-item-editor *ngIf="modelComponent.type === ModelComponentType.ITEM"
 | 
						|
                                [item]="convertModelComponentToItem(modelComponent)"
 | 
						|
                                [gameModel]="gameModel!">
 | 
						|
    </app-inventory-item-editor>
 | 
						|
  </mat-tab>
 | 
						|
</mat-tab-group>
 |