Initial commit

This commit is contained in:
Nikita Kruglickiy
2020-12-25 22:18:23 +06:00
commit 1a0785862d
21 changed files with 1181 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
--@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