I'm looking to have highly graphic buttons that display in two states, focused and unfocused. And they would look like the following:
The "icon" is attached the background "Bitmap", black on the orange field for focused, white on a transparent field for unfocused.
While the
focusBitmapUri is showing and changing in response to
buttonFocused to
focusFootprintBitmapUri isn't effective at all.Here's the relevant code from an RSG XML file:
...
m.favourites_button.minWidth="360"
m.favourites_button.text=" ADD TO FAVOURITES"
m.favourites_button.textFont=m.font.button
m.favourites_button.iconUri="pkg:/theme/transparent_10.png"
m.favourites_button.focusedIconUri=""
m.favourites_button.focusedTextFont=m.font.button
m.favourites_button.focusBitmapUri="pkg:/images/button_favourites_on.png"
m.favourites_button.focusedTextColor=palette.dark
m.favourites_button.showFocusFootprint=true
m.favourites_button.focusFootprintBitmapUri="pkg:/images/button_favourites_off.png"
m.episodes_button.minWidth="360"
m.episodes_button.text=" ALL EPISODES"
m.episodes_button.textFont=m.font.button
m.episodes_button.iconUri="pkg:/theme/transparent_10.png"
m.episodes_button.focusedIconUri=""
m.episodes_button.focusedTextFont=m.font.button
m.episodes_button.focusBitmapUri="pkg:/images/button_episodes_on.png"
m.episodes_button.focusedTextColor=palette.dark
m.episodes_button.showFocusFootprint=true
m.episodes_button.focusFootprintBitmapUri="pkg:/images/button_episodes_off.png"
m.top.observeField("visible", "onVisibleChange")
m.buttonGroup.observeField("buttonFocused", "buttonFocused")
end Sub
]]>
</script>
<ButtonGroup
id="buttonGroup"
translation="[840, 390]"
>
<Button
id="favourites_button"
translation="[0, 90]"
minWidth="360"
maxWidth="360"
text=" ADD TO FAVOURITES"
iconUri=""
focusFootprintBitmapUri="pkg:/images/button_favourites_off.png"
focusBitmapUri="pkg:/images/button_favourites_on.png"
showFocusFootprint="true"
/>
<Button
id="episodes_button"
translation="[0, 180]"
minWidth="360"
maxWidth="360"
text=" ADD TO FAVOURITES"
iconUri=""
focusFootprintBitmapUri="pkg:/images/button_episodes_off.png"
focusBitmapUri="pkg:/images/button_episodes_on.png"
showFocusFootprint="true"
/>
</ButtonGroup>
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.I realise my post is similar in nature to OG_OTT post, but hopefully our slightly different angles will spark something in the community or at Roku:
https://forums.roku.com/viewtopic.php?f=34&t=119962&p=601530&hilit=showFocusFootprint#p601530It feels like this might be a regression, and I'm keen for experiences, opinions, or guidance.
Perhaps you've got a ZIP of a channel that
focusFootprintBitmapUri is working in?
_______________________________________________________________________________
Craig Sharkie
Connected TV Lead, Engineering – EDS & OD
sbs.com.au