I’ve got a button created with the UI class. Is it possible to change its alpha value from a function it calls? Code:
local function setAlpha(event)
pauseButton.alpha = 0
end
-- pauseButton
local pauseButton = ui.newButton{
default = "pausebutton.png",
over = "pausebuttonblack.png",
onRelease = setAlpha,
x = 28,
y = 296,
}
localGroup:insert(pauseButton)
This code is not working for some reason [import]uid: 30185 topic_id: 6297 reply_id: 306297[/import]