21 lines
708 B
Lua
21 lines
708 B
Lua
local Frame = Object:extend()
|
|
|
|
function Frame:new()
|
|
self.guiborder = game.gui.newBorder(424, 20, 6)
|
|
self.guiborder2 = game.gui.newBorder(424, 40, 12)
|
|
self.emblem = love.graphics.newImage("assets/gui/status/emblem_speedster.png")
|
|
self.status = love.graphics.newImage("assets/gui/status/status_bar.png")
|
|
|
|
end
|
|
|
|
function Frame:draw()
|
|
love.graphics.setColor(0.256, 0.632, 0.852, 1)
|
|
love.graphics.rectangle("fill", 0, 220, 424, 20)
|
|
utils.graphics.resetColor()
|
|
love.graphics.draw(self.guiborder, 424, 20, 0, -1, -1)
|
|
love.graphics.draw(self.guiborder2, 424, 220, 0, 1, 1, 424, 0)
|
|
love.graphics.draw(self.emblem, 8, 8, 0)
|
|
love.graphics.draw(self.status, 24, 16, 0)
|
|
end
|
|
|
|
return Frame
|