From fff514850ac40593e4c25682968832d47e1959a8 Mon Sep 17 00:00:00 2001 From: Neil Burrows Date: Tue, 17 Nov 2020 16:10:17 +0000 Subject: [PATCH] Fix placeholder images --- components/ItemGrid2/GridItem.brs | 8 +++++++- components/ItemGrid2/GridItem.xml | 2 +- images/white.9.png | Bin 0 -> 447 bytes 3 files changed, 8 insertions(+), 2 deletions(-) create mode 100644 images/white.9.png diff --git a/components/ItemGrid2/GridItem.brs b/components/ItemGrid2/GridItem.brs index 2c24ceff..f88e18f6 100644 --- a/components/ItemGrid2/GridItem.brs +++ b/components/ItemGrid2/GridItem.brs @@ -23,7 +23,7 @@ sub itemContentChanged() ' Set Random background colors from pallet posterBackgrounds = m.global.constants.poster_bg_pallet - m.backdrop.color = posterBackgrounds[rnd(posterBackgrounds.count()) - 1] + m.backdrop.blendColor = posterBackgrounds[rnd(posterBackgrounds.count()) - 1] itemData = m.top.itemContent @@ -51,6 +51,12 @@ sub itemContentChanged() print "Unhandled Item Type: " + itemData.type end if + 'If Poster not loaded, ensure "blue box" is shown until loaded + if m.itemPoster.loadStatus <> "ready" then + m.backdrop.visible = true + m.posterText.visible = true + end if + m.posterText.text = m.itemText.text end sub diff --git a/components/ItemGrid2/GridItem.xml b/components/ItemGrid2/GridItem.xml index 9f0d51d2..64cbe69c 100644 --- a/components/ItemGrid2/GridItem.xml +++ b/components/ItemGrid2/GridItem.xml @@ -2,7 +2,7 @@ - +