mirror of
https://github.com/LDDestroier/CC/
synced 2025-07-06 03:52:55 +00:00
Beginning copy/pasteing regions
This commit is contained in:
parent
17c1fc2573
commit
7b70be2118
21
pain.lua
21
pain.lua
@ -2876,7 +2876,7 @@ local getInput = function() --gotta catch them all
|
|||||||
isDragging = false
|
isDragging = false
|
||||||
elseif evt[1] == "key" then
|
elseif evt[1] == "key" then
|
||||||
local key = evt[2]
|
local key = evt[2]
|
||||||
if (not keysDown[keys.leftShift]) and (keysDown[keys.tab]) then
|
if (isDragging or not keysDown[keys.leftShift]) and (keysDown[keys.tab]) then
|
||||||
if key == keys.right and (not keysDown[keys.right]) then
|
if key == keys.right and (not keysDown[keys.right]) then
|
||||||
paint.scrollX = paint.scrollX + 1
|
paint.scrollX = paint.scrollX + 1
|
||||||
doRender = true
|
doRender = true
|
||||||
@ -2917,10 +2917,21 @@ local getInput = function() --gotta catch them all
|
|||||||
doRender = true
|
doRender = true
|
||||||
scr_x, scr_y = term.current().getSize()
|
scr_x, scr_y = term.current().getSize()
|
||||||
end
|
end
|
||||||
if (key == keys.c) and (not renderBlittle) then
|
if keysDown[keys.leftAlt] then
|
||||||
gotoCoords()
|
if (not renderBlittle) then
|
||||||
resetInputState()
|
-- you know what's coming
|
||||||
doRender = true
|
if (key == keys.c) then
|
||||||
|
|
||||||
|
elseif (key == keys.v) then
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
|
else
|
||||||
|
if (key == keys.c) and (not renderBlittle) then
|
||||||
|
gotoCoords()
|
||||||
|
resetInputState()
|
||||||
|
doRender = true
|
||||||
|
end
|
||||||
end
|
end
|
||||||
if (keysDown[keys.leftShift]) and (not isDragging) then
|
if (keysDown[keys.leftShift]) and (not isDragging) then
|
||||||
if key == keys.left then
|
if key == keys.left then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user