From 5d517c3e971c176c0c5c86bee36fe1673b44796c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20B=C3=B6ckelmann?= Date: Sat, 10 Feb 2024 11:22:07 +0100 Subject: [PATCH] Basic SimpleState Editing --- src/app/app.module.ts | 4 ++- .../simple-state-editor.component.html | 30 +++++++++++++++---- .../simple-state-editor.component.scss | 4 +++ .../simple-state-editor.component.ts | 9 ++++++ 4 files changed, 40 insertions(+), 7 deletions(-) diff --git a/src/app/app.module.ts b/src/app/app.module.ts index 12f1b3c..8e5ae65 100644 --- a/src/app/app.module.ts +++ b/src/app/app.module.ts @@ -46,6 +46,7 @@ import { MatHeaderRow, MatHeaderRowDef, MatRow, MatRowDef, MatTable } from "@angular/material/table"; +import {MatCheckbox} from "@angular/material/checkbox"; // AoT requires an exported function for factories const httpLoaderFactory = (http: HttpClient): TranslateHttpLoader => new TranslateHttpLoader(http, './assets/i18n/', '.json'); @@ -111,7 +112,8 @@ const httpLoaderFactory = (http: HttpClient): TranslateHttpLoader => new Transl MatHeaderRow, MatRow, MatHeaderRowDef, - MatRowDef + MatRowDef, + MatCheckbox ], providers: [], bootstrap: [AppComponent] diff --git a/src/app/editor/gamesystem-editor/state-editor/simple-state-editor/simple-state-editor.component.html b/src/app/editor/gamesystem-editor/state-editor/simple-state-editor/simple-state-editor.component.html index 4c42012..dc67e1e 100644 --- a/src/app/editor/gamesystem-editor/state-editor/simple-state-editor/simple-state-editor.component.html +++ b/src/app/editor/gamesystem-editor/state-editor/simple-state-editor/simple-state-editor.component.html @@ -1,14 +1,23 @@ - + @@ -18,15 +27,22 @@ @@ -38,7 +54,9 @@ - +
Label{{state.stateLabel}} + {{state.stateLabel}} + + + +
-

{{element.stateDescription}}

+

{{element.stateDescription}}

+ + Description + +
Initial - done - close +
+ done + close +
+ +
- +   + +