mirror of
https://github.com/IgorTimofeev/MineOS.git
synced 2026-04-04 23:22:47 +02:00
Блядь, да как затрахал этот опенсурс
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user