Nikita Kruglickiy eaf0a90173 )
2020-12-27 21:29:46 +06:00

17 lines
396 B
Plaintext

--@include element.txt
--@include /koptilnya/libs/utils.txt
require("element.txt")
require("/koptilnya/libs/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