hi guys i have a problem with a simple button. I created 2 differents button but they’re basically identical (the only thing that changes is the defaultFile and the overFIle) and they’re both connected to a function which should print 99 in the console, well just one of them works and they’re basically the same button.
[lua]
local buttonmtomm = widget.newButton
{ left = 50,
top = -10,
width = 63,
height = 30,
defaultFile = (“Sfondi/icons/m to mm.png”),
overFile = (“Sfondi/icons/m to mm.png”),
onEvent = handleButtonEventmtomm
}
local function handleButtonEventmtomm ( event )
local phase = event.phase
if “ended” == event.phase then
print (99)
end
end
local buttontest= widget.newButton
{ left = 150,
top = -10,
width = 63,
height = 30,
defaultFile = (“Sfondi/icons/9.png”),
overFile = (“Sfondi/icons/9.png”),
onEvent = handleButtonEventmtomm
} [/lua] ty all