GUI fixes; Mesh loader WIP
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user