From d9705b5f9d9960ef955dbe9f8d131f6a2437cfe1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20Lemaire?= Date: Thu, 7 Dec 2017 00:25:35 +0100 Subject: [PATCH] Fixed dialogs overlay sometimes not being set --- TODO.md | 1 - src/ui/BaseView.ts | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/TODO.md b/TODO.md index 5638502..5638ebf 100644 --- a/TODO.md +++ b/TODO.md @@ -92,7 +92,6 @@ Common UI * Mobile: think UI layout so that fingers do not block the view (right and left handed) * Mobile: display tooltips larger and on the side of screen where the finger is not * Mobile: targetting in two times, using a draggable target indicator -* Fix dialogs sometimes not having their input overlay under (reproductible when loading a game with battle outcome dialog) Technical --------- diff --git a/src/ui/BaseView.ts b/src/ui/BaseView.ts index 82a2649..45f37fb 100644 --- a/src/ui/BaseView.ts +++ b/src/ui/BaseView.ts @@ -66,6 +66,7 @@ module TK.SpaceTac.UI { this.tooltip_layer = this.add.group(undefined, "Tooltip layer"); this.tooltip = new Tooltip(this); this.messages = new Messages(this); + this.dialogs_opened = []; // Browser console variable (for debugging purpose) if (typeof window != "undefined") {