diff --git a/src/app/app.component.html b/src/app/app.component.html
index 2beb7f6..b7c855b 100644
--- a/src/app/app.component.html
+++ b/src/app/app.component.html
@@ -2,6 +2,8 @@
diff --git a/src/app/app.component.ts b/src/app/app.component.ts
index 325cbac..5aff408 100644
--- a/src/app/app.component.ts
+++ b/src/app/app.component.ts
@@ -13,6 +13,7 @@ import {
import {MatDialog} from "@angular/material/dialog";
import {DeleteConfirmationDialogComponent} from "./delete-confirmation-dialog/delete-confirmation-dialog.component";
import {ScriptAccount} from "./game-model/scriptAccounts/ScriptAccount";
+import {GamescriptOverviewComponent} from "./side-overviews/gamescript-overview/gamescript-overview.component";
@Component({
selector: 'app-root',
@@ -25,6 +26,7 @@ export class AppComponent implements OnInit{
@ViewChild('drawer') drawer: MatDrawerContainer|undefined
@ViewChild('editor') editor: EditorComponent|undefined
@ViewChild('scriptAccountOverview') scriptAccountOverview: ScriptAccountOverviewComponent | undefined
+ @ViewChild('gamesystemOverview') gamesystemOverview: GamescriptOverviewComponent | undefined
gameModel: GameModel | undefined
@@ -87,6 +89,11 @@ export class AppComponent implements OnInit{
this.drawer!.open();
}
+ openGamesystemsOverview() {
+ this.openContent = ModelComponentType.GAMESYTEM;
+ this.drawer!.open();
+ }
+
protected readonly ModelComponentType = ModelComponentType;
closeContentOverview() {
diff --git a/src/app/app.module.ts b/src/app/app.module.ts
index c3edf21..ad744e9 100644
--- a/src/app/app.module.ts
+++ b/src/app/app.module.ts
@@ -28,6 +28,7 @@ import {ScriptAccountEditorComponent} from "./editor/script-account-editor/scrip
import {ModelComponentEditorComponent} from "./editor/model-component-editor/model-component-editor.component";
import {DeleteConfirmationDialogComponent} from "./delete-confirmation-dialog/delete-confirmation-dialog.component";
import {MatDialogActions, MatDialogContent, MatDialogTitle} from "@angular/material/dialog";
+import {GamescriptOverviewComponent} from "./side-overviews/gamescript-overview/gamescript-overview.component";
// AoT requires an exported function for factories
const httpLoaderFactory = (http: HttpClient): TranslateHttpLoader => new TranslateHttpLoader(http, './assets/i18n/', '.json');
@@ -41,45 +42,46 @@ const httpLoaderFactory = (http: HttpClient): TranslateHttpLoader => new Transl
ModelComponentEditorComponent,
DeleteConfirmationDialogComponent
],
- imports: [
- BrowserModule,
- FormsModule,
- HttpClientModule,
- CoreModule,
- SharedModule,
- TranslateModule.forRoot({
- loader: {
- provide: TranslateLoader,
- useFactory: httpLoaderFactory,
- deps: [HttpClient]
- }
- }),
- BrowserAnimationsModule,
- MatIcon,
- MatToolbar,
- MatButton,
- MatFormField,
- MatInput,
- MatDrawerContainer,
- MatDrawer,
- MatIconButton,
- MatMenuTrigger,
- MatMenu,
- MatMenuItem,
- MatListItem,
- MatActionList,
- MatTabGroup,
- MatTab,
- MatTabLabel,
- MatLabel,
- MatFormField,
- ReactiveFormsModule,
- MatError,
- MatDialogTitle,
- MatDialogContent,
- MatDialogActions,
- MatMiniFabButton,
- ],
+ imports: [
+ BrowserModule,
+ FormsModule,
+ HttpClientModule,
+ CoreModule,
+ SharedModule,
+ TranslateModule.forRoot({
+ loader: {
+ provide: TranslateLoader,
+ useFactory: httpLoaderFactory,
+ deps: [HttpClient]
+ }
+ }),
+ BrowserAnimationsModule,
+ MatIcon,
+ MatToolbar,
+ MatButton,
+ MatFormField,
+ MatInput,
+ MatDrawerContainer,
+ MatDrawer,
+ MatIconButton,
+ MatMenuTrigger,
+ MatMenu,
+ MatMenuItem,
+ MatListItem,
+ MatActionList,
+ MatTabGroup,
+ MatTab,
+ MatTabLabel,
+ MatLabel,
+ MatFormField,
+ ReactiveFormsModule,
+ MatError,
+ MatDialogTitle,
+ MatDialogContent,
+ MatDialogActions,
+ MatMiniFabButton,
+ GamescriptOverviewComponent,
+ ],
providers: [],
bootstrap: [AppComponent]
})
diff --git a/src/app/game-model/ModelComponentType.ts b/src/app/game-model/ModelComponentType.ts
index 5218558..77a75a7 100644
--- a/src/app/game-model/ModelComponentType.ts
+++ b/src/app/game-model/ModelComponentType.ts
@@ -1,5 +1,5 @@
export enum ModelComponentType {
- SCRIPTACCOUNT
-
+ SCRIPTACCOUNT,
+ GAMESYTEM
}
diff --git a/src/app/game-model/ModelComponentTypeUtillities.ts b/src/app/game-model/ModelComponentTypeUtillities.ts
index c92fce9..c267736 100644
--- a/src/app/game-model/ModelComponentTypeUtillities.ts
+++ b/src/app/game-model/ModelComponentTypeUtillities.ts
@@ -1,10 +1,10 @@
import {ModelComponentType} from "./ModelComponentType";
-import {ModelComponent} from "./ModelComponent";
export class ModelComponentTypeUtillities {
static toString(modelComponentType: ModelComponentType | undefined): string {
switch (modelComponentType) {
case ModelComponentType.SCRIPTACCOUNT: return "ScriptAccounts";
+ case ModelComponentType.GAMESYTEM: return "Gamesystems";
default: return "Undefined";
}
}
@@ -12,6 +12,7 @@ export class ModelComponentTypeUtillities {
static toSingleString(modelComponentType: ModelComponentType | undefined): string {
switch (modelComponentType) {
case ModelComponentType.SCRIPTACCOUNT: return "ScriptAccount";
+ case ModelComponentType.GAMESYTEM: return "Gamesystem";
default: return "Undefined";
}
}
diff --git a/src/app/side-overviews/gamescript-overview/gamescript-overview.component.html b/src/app/side-overviews/gamescript-overview/gamescript-overview.component.html
new file mode 100644
index 0000000..99e6d6c
--- /dev/null
+++ b/src/app/side-overviews/gamescript-overview/gamescript-overview.component.html
@@ -0,0 +1 @@
+
gamescript-overview works!
diff --git a/src/app/side-overviews/gamescript-overview/gamescript-overview.component.scss b/src/app/side-overviews/gamescript-overview/gamescript-overview.component.scss
new file mode 100644
index 0000000..e69de29
diff --git a/src/app/side-overviews/gamescript-overview/gamescript-overview.component.spec.ts b/src/app/side-overviews/gamescript-overview/gamescript-overview.component.spec.ts
new file mode 100644
index 0000000..afcbba8
--- /dev/null
+++ b/src/app/side-overviews/gamescript-overview/gamescript-overview.component.spec.ts
@@ -0,0 +1,23 @@
+import { ComponentFixture, TestBed } from '@angular/core/testing';
+
+import { GamescriptOverviewComponent } from './gamescript-overview.component';
+
+describe('GamescriptOverviewComponent', () => {
+ let component: GamescriptOverviewComponent;
+ let fixture: ComponentFixture
;
+
+ beforeEach(async () => {
+ await TestBed.configureTestingModule({
+ imports: [GamescriptOverviewComponent]
+ })
+ .compileComponents();
+
+ fixture = TestBed.createComponent(GamescriptOverviewComponent);
+ component = fixture.componentInstance;
+ fixture.detectChanges();
+ });
+
+ it('should create', () => {
+ expect(component).toBeTruthy();
+ });
+});
diff --git a/src/app/side-overviews/gamescript-overview/gamescript-overview.component.ts b/src/app/side-overviews/gamescript-overview/gamescript-overview.component.ts
new file mode 100644
index 0000000..01edda5
--- /dev/null
+++ b/src/app/side-overviews/gamescript-overview/gamescript-overview.component.ts
@@ -0,0 +1,12 @@
+import { Component } from '@angular/core';
+
+@Component({
+ selector: 'app-gamescript-overview',
+ standalone: true,
+ imports: [],
+ templateUrl: './gamescript-overview.component.html',
+ styleUrl: './gamescript-overview.component.scss'
+})
+export class GamescriptOverviewComponent {
+
+}