Hi @zv713,
Can you please post your code? In the future, we appreciate if you attempt to get help in the forums before you file a bug report. It might be one tiny issue with your code, and not a bug in the SDK.
Thanks,
Brent
Hi @zv713,
Can you please post your code? In the future, we appreciate if you attempt to get help in the forums before you file a bug report. It might be one tiny issue with your code, and not a bug in the SDK.
Thanks,
Brent
[lua]
local widget = require(“widget”)
local tile = widget.newButton ( {
x=display.contentCenterX,
y=display.contentCenterY,
shape=“rect”,
height=44,
width=44,
fillColor = { default={ 1, 1, 1, 1 }, over={ 0.9, 0.9, 0.9, 1 } },
strokeColor = { default={ 0.3, 0.6, 0.8, 1 } },
strokeWidth = 1
})
[/lua]
commenting out the strokeWidth line fixes the error
Hi @zv713,
It appears that you omitted the “over” color table for the stroke. I believe both are required if you use the “strokeColor” parameter. Please add that and see if the error stops.
Brent
That did the job. Thanks for the quick reply.
Happy to help. If you receive a confirmation on the bug case you filed, can you please post the # here? I would like to close that case since it’s not a bug.
Thanks,
Brent
No confirmation on my end as of yet, and I recall having trouble getting my bug reports received back in August. Not sure if there was something wrong with my account, or the form, and whether this was sorted out since then.
Will message if I get anything.
ok it seems that it’s because my down state button is trimmed in my sprite sheet, but surely that shouldn’t matter, it did work before
I had to add “labelAlign = left” to get it to behave and honor anchorX = 0
update: no, that didn’t work either
I have
backgroundText = display.newText(“background”, left, top, native.systemFont, 16)
backgroundText.anchorX = 0
dialogGroup:insert(backgroundText)
clearButton = widget.newButton({label = “clear”, labelAlign = “left”, left = left, top = top + 10})
clearButton.anchorX = 0
dialogGroup:insert(clearButton)
I get the results shown in the attached file. I expected the 2 items to be left aligned.
This works
clearButton = widget.newButton({label = “clear”, labelAlign = “left”})
clearButton.anchorX = 0
clearButton.x = left
clearButton.y = top + 10