1
0
mirror of https://github.com/LDDestroier/CC/ synced 2025-03-26 13:26:57 +00:00

Update pain.lua

This commit is contained in:
LDDestroier 2018-11-07 23:23:12 -05:00 committed by GitHub
parent 35f1fbeb59
commit aaf30b9290
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -371,6 +371,10 @@ Hotkeys:
"Edit > BLittle Shrink" "Edit > BLittle Shrink"
Shrinks the current frame using the BLittle API. Very lossy, and unreversable without Undo. Shrinks the current frame using the BLittle API. Very lossy, and unreversable without Undo.
"Set > ..."
Each option will toggle a config option (or set it's value to something else).
Changing a value is saved automatically, and effective immediately.
"Window > Set Screen Size" "Window > Set Screen Size"
Sets the sizes of the screen border references displayed on the canvas. Sets the sizes of the screen border references displayed on the canvas.
@ -527,7 +531,7 @@ local makeSubMenu = function(x,y,options)
else else
usingMouse = false usingMouse = false
if evt == "mouse_click" then if evt == "mouse_click" then
return false return false, longestLen
end end
end end
elseif evt == "mouse_up" then elseif evt == "mouse_up" then
@ -2644,6 +2648,7 @@ I recommend using NFT if you don't need multiple frames, NFP if you don't need t
end end
elseif event == "mouse_click" or event == "mouse_up" then elseif event == "mouse_click" or event == "mouse_up" then
if y < cleary then if y < cleary then
doRender = true
return return
elseif key == 1 and initial+clickdelay < os.time() then --key? more like button elseif key == 1 and initial+clickdelay < os.time() then --key? more like button
for a = 1, #menuPoses do for a = 1, #menuPoses do
@ -2652,7 +2657,8 @@ I recommend using NFT if you don't need multiple frames, NFP if you don't need t
cursor = a cursor = a
redrawTheMenu() redrawTheMenu()
local res = menuFunctions[a]() local res = menuFunctions[a]()
coroutine.yield() os.queueEvent("queue")
os.pullEvent("queue")
if res == "exit" then if res == "exit" then
return "exit" return "exit"
else else