GUI fixes; Mesh loader WIP
This commit is contained in:
@@ -1,9 +1,7 @@
|
||||
--@include label.txt
|
||||
--@include radius_mixin.txt
|
||||
--@include /koptilnya/libs/utils.txt
|
||||
|
||||
require("label.txt")
|
||||
require("/koptilnya/libs/utils.txt")
|
||||
|
||||
EButton = class("EButton", ELabel)
|
||||
EButton:include(require("radius_mixin.txt"))
|
||||
@@ -28,9 +26,6 @@ function EButton:initialize()
|
||||
})
|
||||
end
|
||||
|
||||
function EButton:onClick()
|
||||
end
|
||||
|
||||
function EButton:onMousePressed(x, y, key, keyName)
|
||||
if keyName == "MOUSE1" then
|
||||
self:onClick()
|
||||
@@ -52,3 +47,8 @@ function EButton:paint(x, y, w, h)
|
||||
render.setColor(self:getColorFromScheme("text"))
|
||||
render.drawSimpleText(x + w / 2 - textW / 2, y + h / 2 - textH / 2, self:getText())
|
||||
end
|
||||
|
||||
-- STUB
|
||||
|
||||
function EButton:onClick()
|
||||
end
|
||||
Reference in New Issue
Block a user