Блядь, да как затрахал этот опенсурс

This commit is contained in:
IgorTimofeev
2021-08-25 03:56:12 +07:00
parent d08ed5c0fd
commit 25289c43d2
6 changed files with 190 additions and 179 deletions

View File

@@ -3524,20 +3524,23 @@ end
local function textUpdate(object)
object.width = unicode.len(object.text)
return object
end
local function textDraw(object)
object:update()
screen.drawText(object.x, object.y, object.color, object.text)
screen.drawText(object.x, object.y, object.color, object.text, object.transparency)
return object
end
function GUI.text(x, y, color, text)
function GUI.text(x, y, color, text, transparency)
local object = GUI.object(x, y, 1, 1)
object.text = text
object.color = color
object.transparency = transparency
object.update = textUpdate
object.draw = textDraw
object:update()