This commit is contained in:
Nikita Kruglickiy
2021-03-31 05:25:18 +06:00
parent 44a539758f
commit 1e9e783ee6
12 changed files with 1518 additions and 23 deletions

View File

@@ -10,6 +10,6 @@ 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:isHovered() and self:getHoveredColor() or self:getColor())
render.setColor(self:getColor())
render.drawRectFast(x, y, w, h)
end