This commit is contained in:
Nikita Kruglickiy
2021-03-17 18:21:42 +06:00
parent 19ab152f5f
commit f1eaecd79e
11 changed files with 46 additions and 98 deletions

View File

@@ -281,6 +281,8 @@ function Element:_onPaint()
if self._firstChild then
self._firstChild:_postEventToAllReverse("PAINT")
end
self:postChildPaint(x, y, w, h)
end
end
@@ -362,7 +364,10 @@ end
function Element:think()
end
function Element:paint()
function Element:paint(x, y, w, h)
end
function Element:postChildPaint(x, y, w, h)
end
function Element:onMousePressed(x, y, key, keyName)

View File

@@ -1,4 +1,4 @@
--@include element.txt
--@include element.txt
--@include label.txt
--@include button.txt
--@include /koptilnya/libs/utils.txt
@@ -31,7 +31,8 @@ function EPanel:initialize()
}
self.minimizeButton = EButton:new()
self.minimizeButton:setText("_")
self.minimizeButton:setFont(GUI.fonts["icons"])
self.minimizeButton:setText(string.utf8char(0xE73F))
self.minimizeButton:setSize(32, 32)
self.minimizeButton:setRadius(0)
self.minimizeButton:setColorScheme(colorScheme)
@@ -42,7 +43,7 @@ function EPanel:initialize()
self.closeButton = EButton:new()
self.closeButton:setFont(GUI.fonts["icons"])
self.closeButton:setText(string.utf8char(10005))
self.closeButton:setText(string.utf8char(0xE006))
self.closeButton:setSize(32, 32)
self.closeButton:setRadius(0)
self.closeButton:setColorScheme(colorScheme)