Nikita Kruglickiy 1e9e783ee6 changes
2021-03-31 05:25:18 +06:00

15 lines
410 B
Lua

--@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))
accessorFunc(EShape, "_hoveredColor", "HoveredColor", Color(150, 150, 150))
function EShape:paint(x, y, w, h)
render.setColor(self:getColor())
render.drawRectFast(x, y, w, h)
end