mirror of
https://github.com/SashLilac/cambridge.git
synced 2024-11-22 14:09:03 -06:00
Compare commits
No commits in common. "9e447d51a70c81dcda70da39e37a3f6b627c9347" and "92d67968f52bdeffae82c8098de11b4bf3e0ffd6" have entirely different histories.
9e447d51a7
...
92d67968f5
2
main.lua
2
main.lua
@ -118,7 +118,7 @@ function love.keypressed(key, scancode)
|
|||||||
love.filesystem.remove("ss")
|
love.filesystem.remove("ss")
|
||||||
love.filesystem.createDirectory("ss")
|
love.filesystem.createDirectory("ss")
|
||||||
end
|
end
|
||||||
print("Saving screenshot as "..love.filesystem.getSaveDirectory().."/"..ss_name)
|
print("Saving screenshot as "..ss_name)
|
||||||
GLOBAL_CANVAS:newImageData():encode("png", ss_name)
|
GLOBAL_CANVAS:newImageData():encode("png", ss_name)
|
||||||
-- function keys are reserved
|
-- function keys are reserved
|
||||||
elseif string.match(scancode, "^f[1-9]$") or string.match(scancode, "^f[1-9][0-9]+$") then
|
elseif string.match(scancode, "^f[1-9]$") or string.match(scancode, "^f[1-9][0-9]+$") then
|
||||||
|
Loading…
Reference in New Issue
Block a user