GUI fixes; Mesh loader WIP

This commit is contained in:
Nikita Kruglickiy
2021-01-19 14:08:53 +06:00
parent d4dd889bb5
commit ceaada7e2d
16 changed files with 433 additions and 58 deletions

View File

@@ -1,8 +1,6 @@
--@include element.txt
--@include /koptilnya/libs/utils.txt
require("element.txt")
require("/koptilnya/libs/utils.txt")
ECheckbox = class("ECheckbox", Element)
@@ -47,12 +45,14 @@ end
function ECheckbox:paint(x, y, w, h)
render.setColor(self:isChecked() and self:getColorFromScheme("mark") or Color(0, 0, 0, 0))
render.drawRectFast(x, y, h, h)
render.drawRectFast(x + 4, y + 4, w - 8, h - 8)
render.setColor(self:getColorFromScheme("border"))
render.drawRectOutline(x, y, h, h, 1)
render.drawRectOutline(x + 1, y + 1, h - 2, h - 2, 1)
render.drawRectOutline(x, y, w, h, 1)
render.drawRectOutline(x + 1, y + 1, w - 2, h - 2, 1)
end
-- STUB
function ECheckbox:onChange(state)
end