Adding alpha as attribute for buttons (ui.lua)

I was curious why i wasn’t able to add alpha to a standart button like that:
[lua] local button4 = ui.newButton{
default = “graphic/button.png”,
over = “graphic/buttonOver.png”,
x = 0,
y = 0,
alpha = 0.5
}[/lua]
and found out it can be done when you modify the ui.lua and add
[lua] if params.alpha then
button.alpha = params.alpha
end[/lua]
at line 210.

Maybe it helps some people… :slight_smile:
Greetz [import]uid: 13097 topic_id: 8625 reply_id: 308625[/import]