I realise this code shows me duplicating parameters between XML and BrightScript, but I was being over cautious to ensure that I hadn't missed anything between either display method. Currently, the white icon on the transparent field isn't showing, just the text ALL EPISODES. as it appears that focusFootprintBitmapUri isn't being recognised at all.
If I switch the states and use the `_off` for focusBitmapUri, then I can get both those buttons to display, so I know the assets are correctly referenced and available.
Re: focusFootprintBitmapUri not changing bitmap URI
Our Button only shows the rectangular background image for the Button in a ButtonGroup that is in the focus position.
If the ButtonGroup has the focus, the focusBitmapUri image for the button in the focus position is used. If the ButtonGroup does not have the focus, the focusFootprintBitmapUri is shown as a hint to the user as to which button will be focused when the ButtonGroup gets the focus.
It appears that in actuality, only the button that in the focus position when the ButtonGroup is unfocused uses the focusFootprintBitmapUri image.
Buttons that are not in current focus position never have a background rectangle shown.
If you want a Button that always draws a background rectangle, you should be able to create an RSG component that extends Button and use that instead of Button. In that component, you would have a child Rectangle node set up to have the same width and height as the Button. you would also need to set the childRenderOrder field to “first” for the component so that the background draws first, then the Button on top of it. To prevent the Button from ever drawing its builtin background (if that’s what you want), you would set both focusBitmapUri and focusFootprintBitmapUri to an empty string.