Hello Walter.
There is definetly something different between 825 and 826 since I am able to run fine with 825 in term of touch and widget. In 826, the buttons seems to keep focus no matter what I do. Just in case it may help, here an example of how I deal with buttons (I have four settings buttons, game mode, level, sounds and so on. Here my game level logic:
[lua]------------ game level Selection
local onLevelTouch = function( event )
local phase = event.phase
if event.phase == “release” then
– Play Sound
if fxOn == true then
audio.play( tapSound )
end
if gameLevel == 1 then
gameLevel = 2
settings:store( “gameLevel”, gameLevel )
btLevel:setLabel( “level > Medium” )
analytics.logEvent(“APP_OPTIONS_MEDIUM”)
elseif gameLevel == 2 then
gameLevel= 3
settings:store( “gameLevel”, gameLevel )
btLevel:setLabel( “level > Hard” )
analytics.logEvent(“APP_OPTIONS_HARD”)
elseif gameLevel == 3 then
gameLevel= 1
settings:store( “gameLevel”, gameLevel )
btLevel:setLabel( “level > Easy” )
analytics.logEvent(“APP_OPTIONS_EASY”)
end
end
return true
end[/lua]
And here how I set that widget button:
[lua]btLevel = widget.newButton{
id = “btLevel”,
left = left + screenW*0.5 - 86,
top = top + 110,
label = “level > Hard”,
width = 181, height = 32,
cornerRadius = 8,
onEvent = onLevelTouch,
default=imagesHudPath…“pauseLabel.png”,
over=imagesHudPath…“pauseLabelOver3.png”,
font = myFont,
–fontSize = 14,
labelColor = { default={ 255,255,255}, over={ 255,0,0 } }
}[/lua]
Of course I could just use build 825 but i rather use the upcoming stable version (833) instead. But first I need to understand why changes made to widgets buttons (multitouch) in 826 changed the behavior of the widget buttons.
Anybody else got the same issue with their widget buttons after 825? What changes with the mutitouch and button widgets?
Thanks.
Mo.
ps: @Walter, it is difficult to reproduce the problem into a smaller code but i could email you the all project (Yes, I trust you ha! ha!) and maybe someone can see something I am missing) I am still hoping I can make a small project but my feeling it will work just fine since the sample projects coming with 833 worked just fine… [import]uid: 100814 topic_id: 27550 reply_id: 112096[/import]