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

@@ -8,14 +8,14 @@ GUI = class("GUI")
GUI.static.fonts = {
main = render.createFont("Roboto", 16, 700, true),
icons = render.createFont("Segoe MDL2 Assets", 32, 400, true)
icons = render.createFont("Segoe MDL2 Assets", 16, 400, true, false, false, false, false, true)
}
function GUI:initialize(renderDevice)
checkVarClass(renderDevice, RenderDevice)
self.renderDevice = renderDevice
self._root = ERoot:new("root")
self._root = ERoot:new()
self._root:setSize(renderDevice:getSize())
hook.add("inputPressed", "gui_inputPressed", function(key)