Forums | developer.brewmp.com Forums | developer.brewmp.com

Developer

Forums

Hi gurus,

I've just started with Brew MP and TrigML and have some basic questions.
I have buttons on page which I would like to look like focused/unfocused:

And than Lua looks like:

function home.setIconFocused(elemId)
local elmSpotlight = ui.element('spotlight_' .. elemId)
elmSpotlight.visible = _true
end

function home.setIconUnfocused(elemId)
local elmSpotlight = ui.element('spotlight_' .. elemId)
elmSpotlight.visible = _false
end

When setting spotlight image visible to _true everything looks like it should, but for some reason spotlight visible _true/false is not changing.

Thanks!