From e8d176cfe4d9b1a6610c10e22b3225efbd671ac4 Mon Sep 17 00:00:00 2001 From: Pieter Vander Vennet Date: Sun, 15 Nov 2020 14:56:20 +0100 Subject: [PATCH] Create icons for surveillance cams --- State.ts | 2 +- Svg.ts | 2 +- UI/FullScreenMessageBoxHandler.ts | 7 +- assets/themes/surveillance_cameras/cam.svg | 61 +++++++++++++++ assets/themes/surveillance_cameras/dome.svg | 85 +++++++++++++++++++++ 5 files changed, 151 insertions(+), 6 deletions(-) create mode 100644 assets/themes/surveillance_cameras/cam.svg create mode 100644 assets/themes/surveillance_cameras/dome.svg diff --git a/State.ts b/State.ts index 89aa915..c4faf55 100644 --- a/State.ts +++ b/State.ts @@ -22,7 +22,7 @@ export default class State { // The singleton of the global state public static state: State; - public static vNumber = "0.1.3"; + public static vNumber = "0.1.3-rc1"; // The user journey states thresholds when a new feature gets unlocked public static userJourney = { diff --git a/Svg.ts b/Svg.ts index 4850a0c..f5a8d65 100644 --- a/Svg.ts +++ b/Svg.ts @@ -104,7 +104,7 @@ export default class Svg { public static help_svg() { return new FixedUiElement(Svg.help);} public static help_ui() { return new FixedUiElement(Svg.help_img);} - public static home = " " + public static home = " " public static home_img = Img.AsImageElement(Svg.home) public static home_svg() { return new FixedUiElement(Svg.home);} public static home_ui() { return new FixedUiElement(Svg.home_img);} diff --git a/UI/FullScreenMessageBoxHandler.ts b/UI/FullScreenMessageBoxHandler.ts index c6b7a1f..855eb62 100644 --- a/UI/FullScreenMessageBoxHandler.ts +++ b/UI/FullScreenMessageBoxHandler.ts @@ -11,6 +11,7 @@ export class FullScreenMessageBox extends UIElement { private static readonly _toTheMap_height : string = "5em"; private readonly returnToTheMap: UIElement; + private _content: UIElement; constructor(onClear: (() => void)) { super(); @@ -67,10 +68,8 @@ export class FullScreenMessageBox extends UIElement { if (State.state.fullScreenMessage.data === undefined) { return ""; } - - const el = document.getElementById(this.id); - - const uielement = new Combine([State.state.fullScreenMessage.data]).SetStyle( + this._content = State.state.fullScreenMessage.data; + const uielement = new Combine([this._content]).SetStyle( "display:block;" + "padding: 1em;" + "padding-bottom:6em;" + diff --git a/assets/themes/surveillance_cameras/cam.svg b/assets/themes/surveillance_cameras/cam.svg new file mode 100644 index 0000000..0fcce84 --- /dev/null +++ b/assets/themes/surveillance_cameras/cam.svg @@ -0,0 +1,61 @@ + + + + + + image/svg+xml + + + + + + + + + diff --git a/assets/themes/surveillance_cameras/dome.svg b/assets/themes/surveillance_cameras/dome.svg new file mode 100644 index 0000000..28d0e32 --- /dev/null +++ b/assets/themes/surveillance_cameras/dome.svg @@ -0,0 +1,85 @@ + + + + + + image/svg+xml + + + + + + + + + + + + + +