17 lines
396 B
Plaintext
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 |