mirror of
https://github.com/IgorTimofeev/MineOS.git
synced 2025-12-22 12:09:22 +01:00
Update Pastebin.lua
This commit is contained in:
parent
c40dd5490f
commit
995e7aa1c3
@ -401,7 +401,7 @@ local function viewPaste(i)
|
|||||||
|
|
||||||
--ecs.error("#lines = ".. #lines)
|
--ecs.error("#lines = ".. #lines)
|
||||||
|
|
||||||
ecs.textField(1, 2, xSize, ySize - 1, lines, from)
|
ecs.textField(1, 2, xSize, ySize - 1, lines, from, 0xffffff, 0x262626, 0xdddddd, ecs.colors.blue)
|
||||||
|
|
||||||
fs.remove(tmp)
|
fs.remove(tmp)
|
||||||
|
|
||||||
@ -409,9 +409,9 @@ local function viewPaste(i)
|
|||||||
local e = {event.pull()}
|
local e = {event.pull()}
|
||||||
if e[1] == "scroll" then
|
if e[1] == "scroll" then
|
||||||
if e[5] == 1 then
|
if e[5] == 1 then
|
||||||
if from > 1 then from = from - 1; ecs.textField(1, 2, xSize, ySize - 1, lines, from) end
|
if from > 1 then from = from - 1; ecs.textField(1, 2, xSize, ySize - 1, lines, from, 0xffffff, 0x262626, 0xdddddd, ecs.colors.blue) end
|
||||||
else
|
else
|
||||||
if from < #lines then from = from + 1; ecs.textField(1, 2, xSize, ySize - 1, lines, from) end
|
if from < #lines then from = from + 1; ecs.textField(1, 2, xSize, ySize - 1, lines, from, 0xffffff, 0x262626, 0xdddddd, ecs.colors.blue) end
|
||||||
end
|
end
|
||||||
elseif e[1] == "touch" then
|
elseif e[1] == "touch" then
|
||||||
if e[3] == (xSize) and e[4] == 1 then
|
if e[3] == (xSize) and e[4] == 1 then
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user