Merge luaML.love

This commit is contained in:
Kartik K. Agaram 2023-10-16 23:46:49 -07:00
commit a026c39f1e
2 changed files with 1 additions and 5 deletions

View File

@ -509,10 +509,6 @@ function App.color(color)
love.graphics.setColor(color.r, color.g, color.b, color.a)
end
function colortable(app_color)
return {app_color.r, app_color.g, app_color.b, app_color.a}
end
function App.shallow_copy_all_globals()
local result = {}
for k,v in pairs(_G) do

View File

@ -12,7 +12,7 @@ function button(State, name, params)
if State.button_handlers == nil then
State.button_handlers = {}
end
love.graphics.setColor(params.color[1], params.color[2], params.color[3])
love.graphics.setColor(params.bg.r, params.bg.g, params.bg.b, params.bg.a)
love.graphics.rectangle('fill', params.x,params.y, params.w,params.h, 5,5)
if params.icon then params.icon(params) end
table.insert(State.button_handlers, params)