mirror of
https://github.com/IgorTimofeev/MineOS.git
synced 2026-01-10 05:02:40 +01:00
бля, забыл ширину
This commit is contained in:
parent
0d7d5bc734
commit
a5d7eeb779
@ -45,8 +45,8 @@ local files = {
|
||||
|
||||
local properties = {
|
||||
-- Comment any coordinate to calculate it automatically (will centerize window on screen by specified axis)
|
||||
windowX = 2,
|
||||
windowY = 2,
|
||||
-- windowX = 2,
|
||||
-- windowY = 2,
|
||||
-- Set window width value lower than zero (0.5 for example) to calculate it dependent on screen width
|
||||
windowWidth = 54,
|
||||
-- Customize offset by X axis from window corners
|
||||
@ -125,6 +125,7 @@ local function centerizedText(y, color, text)
|
||||
local textLength = unicode.len(text)
|
||||
if textLength > progressBarWidth then
|
||||
text = unicode.sub(text, 1, progressBarWidth)
|
||||
textLength = progressBarWidth
|
||||
end
|
||||
|
||||
setForeground(color)
|
||||
|
||||
@ -146,13 +146,13 @@ end
|
||||
|
||||
---------------------------------------------- Filesystem extensions ------------------------------------------------------------------------
|
||||
|
||||
function filesystem.path(path)
|
||||
return path:match("^(.+%/).") or ""
|
||||
end
|
||||
-- function filesystem.path(path)
|
||||
-- return path:match("^(.+%/).") or ""
|
||||
-- end
|
||||
|
||||
function filesystem.name(path)
|
||||
return path:match("%/?([^%/]+)%/?$")
|
||||
end
|
||||
-- function filesystem.name(path)
|
||||
-- return path:match("%/?([^%/]+)%/?$")
|
||||
-- end
|
||||
|
||||
function filesystem.extension(path, lower)
|
||||
local extension = path:match("[^%/]+(%.[^%/]+)%/?$")
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user