From a9b7432d34f6f9effb6841a54f213bcd12e51160 Mon Sep 17 00:00:00 2001 From: Solomon Cammack Date: Sun, 3 Sep 2023 22:00:14 +0100 Subject: [PATCH] Add animation logic and some other bits --- .../src/components/broadcast/StingerWrap.vue | 7 +- .../broadcast/roots/ChampionsOverlay.vue | 12 ++- .../broadcast/roots/ConfettiOverlay.vue | 87 +++++++++++++------ 3 files changed, 77 insertions(+), 29 deletions(-) diff --git a/website/src/components/broadcast/StingerWrap.vue b/website/src/components/broadcast/StingerWrap.vue index 7856c501..f34e6561 100644 --- a/website/src/components/broadcast/StingerWrap.vue +++ b/website/src/components/broadcast/StingerWrap.vue @@ -25,7 +25,8 @@ export default { data: () => ({ showStinger: null, customTheme: null, - customText: null + customText: null, + hideText: false }), watch: { active(isActive) { @@ -45,6 +46,7 @@ export default { return logoBackground(this.useTheme); }, stingerText() { + if (this.hideText) return; return this.customText || this.text; } }, @@ -56,6 +58,9 @@ export default { updateText(text) { this.customText = text; console.log("custom stinger text", text); + }, + setTextVisibility(visibility) { + this.hideText = !visibility; } } }; diff --git a/website/src/components/broadcast/roots/ChampionsOverlay.vue b/website/src/components/broadcast/roots/ChampionsOverlay.vue index 03a24efe..55753155 100644 --- a/website/src/components/broadcast/roots/ChampionsOverlay.vue +++ b/website/src/components/broadcast/roots/ChampionsOverlay.vue @@ -1,5 +1,5 @@