Home › Forums › General › Programming › Changing Images – what could be wrong in that LUA code › Re: Changing Images – what could be wrong in that LUA code
June 25, 2012 at 12:28 pm
#4461
"atom":2ytp1jfd wrote:
I really can’t debug this cause only you know how you imagined this to work. I can tell you:
doing this is a bad idea
[code:2ytp1jfd]
comp = filter_slope_mod:getComponent()
comp:setPropertyString ("uiImageButtonResource" , FilterSlopeTypeOn)
[/code:2ytp1jfd]
doing this is a bad idea
[code:2ytp1jfd]
comp = filter_slope_mod:getComponent()
comp:setPropertyString ("uiImageButtonResource" , FilterSlopeTypeOn)
[/code:2ytp1jfd]
always check if the object is valid, otherwise the method might be disabled on load
[code:2ytp1jfd]
comp = filter_slope_mod:getComponent()
if comp ~= nil then
comp:setPropertyString ("uiImageButtonResource" , FilterSlopeTypeOn)
end
[/code:2ytp1jfd][/quote:2ytp1jfd]
ok, I have added this into the code. Thank you mate ” title=”Smile” />
Have you seen XML data and extra pictures? The strange behavior of the CtrlR
Check your spelling of properties.