Nikita Kruglickiy 1a0785862d Initial commit
2020-12-25 22:18:23 +06:00

17 lines
370 B
Plaintext

--@include element.txt
--@include ../utils.txt
require("element.txt")
require("../utils.txt")
EShape = class("EShape", Element)
accessorFunc(EShape, "_color", "Color", Color(255, 255, 255))
function EShape:paint()
local x, y = self:getAbsolutePos()
local w, h = self:getSize()
render.setColor(self:getColor())
render.drawRectFast(x, y, w, h)
end