mirror of
https://github.com/IgorTimofeev/MineOS.git
synced 2026-01-06 11:12:40 +01:00
afaef
This commit is contained in:
parent
1115adfb34
commit
5ae48eea3d
@ -10,7 +10,6 @@ local libraries = {
|
||||
["keyboard"] = "keyboard",
|
||||
["computer"] = "computer",
|
||||
["serialization"] = "serialization",
|
||||
["colorlib"] = "colorlib",
|
||||
--["internet"] = "internet",
|
||||
--["image"] = "image",
|
||||
}
|
||||
@ -212,6 +211,14 @@ function ECSAPI.findMount(address)
|
||||
end
|
||||
end
|
||||
|
||||
function ECSAPI.getArraySize(array)
|
||||
local size = 0
|
||||
for key in pairs(array) do
|
||||
size = size + 1
|
||||
end
|
||||
return size
|
||||
end
|
||||
|
||||
--Скопировать файлы с одного диска на другой с заменой
|
||||
function ECSAPI.duplicateFileSystem(fromAddress, toAddress)
|
||||
local source, destination = ECSAPI.findMount(fromAddress), ECSAPI.findMount(toAddress)
|
||||
@ -2089,7 +2096,7 @@ function ECSAPI.universalWindow(x, y, width, background, closeWindowAfter, ...)
|
||||
|
||||
elseif objectType == "color" then
|
||||
local xPos, yPos = x + 1, objects[number].y
|
||||
local blendedColor = colorlib.alphaBlend(objects[number][3], 0xFFFFFF, 180)
|
||||
local blendedColor = require("colorlib").alphaBlend(objects[number][3], 0xFFFFFF, 180)
|
||||
local w = width - 2
|
||||
|
||||
ECSAPI.colorTextWithBack(xPos, yPos + 2, blendedColor, background, string.rep("▀", w))
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user