mirror of
https://github.com/IgorTimofeev/MineOS.git
synced 2025-12-24 13:02:49 +01:00
Improved icons drawing - up to 2x faster and without fs stressing
This commit is contained in:
parent
3777c70651
commit
1da40f1ac8
@ -137,9 +137,9 @@ end
|
||||
-- НАРИСОВАТЬ ВЫДЕЛЕНИЕ ИКОНКИ
|
||||
local function drawIconSelection(x, y, nomer)
|
||||
if obj["DesktopIcons"][nomer][6] == true then
|
||||
ecs.square(x - 2, y, widthOfIcon, heightOfIcon, iconsSelectionColor)
|
||||
ecs.square(x, y, widthOfIcon, heightOfIcon, iconsSelectionColor)
|
||||
elseif obj["DesktopIcons"][nomer][6] == false then
|
||||
ecs.square(x - 2, y, widthOfIcon, heightOfIcon, background)
|
||||
ecs.square(x, y, widthOfIcon, heightOfIcon, background)
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user