working on shaders
This commit is contained in:
@@ -38,6 +38,24 @@ function love.load()
|
||||
bg:fullFrame()
|
||||
bg.color = color.new("#242f9b")
|
||||
|
||||
local btn = bg:newImageButton("rainbow.jpg", 100, 100, 600, 450)
|
||||
btn.color = color.light_blue
|
||||
btn.align = gui.ALIGN_CENTER
|
||||
|
||||
btn.direction = {1,0}
|
||||
|
||||
btn:enableShaderTime()
|
||||
btn.OnEnter(function()
|
||||
btn:setShader(gui.SHADERS.blur)
|
||||
end)
|
||||
|
||||
btn.OnExit(function()
|
||||
btn:setShader()
|
||||
end)
|
||||
|
||||
-- btn:fitFont()
|
||||
-- btn:centerFont()
|
||||
|
||||
-- bg:setBlur(10)
|
||||
bg:OnUpdate(function(self, dt)
|
||||
if self.__blur then
|
||||
@@ -47,7 +65,7 @@ function love.load()
|
||||
end
|
||||
end)
|
||||
|
||||
StartGame(bg)
|
||||
-- StartGame(bg)
|
||||
end
|
||||
|
||||
function GetActivePlayer()
|
||||
|
||||
Reference in New Issue
Block a user