mirror of https://github.com/LDDestroier/CC/
Update pain.lua
This commit is contained in:
parent
7a01f6c63e
commit
1012ac4dd0
3
pain.lua
3
pain.lua
|
@ -2795,6 +2795,7 @@ I recommend using NFT if you don't need multiple frames, NFP if you don't need t
|
||||||
elseif key == keys.enter then
|
elseif key == keys.enter then
|
||||||
redrawmenu = true
|
redrawmenu = true
|
||||||
local res = menuFunctions[cursor]()
|
local res = menuFunctions[cursor]()
|
||||||
|
resetInputState()
|
||||||
if res == "exit" then
|
if res == "exit" then
|
||||||
return "exit"
|
return "exit"
|
||||||
elseif res == "nobreak" then
|
elseif res == "nobreak" then
|
||||||
|
@ -2817,6 +2818,7 @@ I recommend using NFT if you don't need multiple frames, NFP if you don't need t
|
||||||
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
|
doRender = true
|
||||||
|
resetInputState()
|
||||||
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
|
||||||
|
@ -2827,6 +2829,7 @@ I recommend using NFT if you don't need multiple frames, NFP if you don't need t
|
||||||
local res = menuFunctions[a]()
|
local res = menuFunctions[a]()
|
||||||
os.queueEvent("queue")
|
os.queueEvent("queue")
|
||||||
os.pullEvent("queue")
|
os.pullEvent("queue")
|
||||||
|
resetInputState()
|
||||||
if res == "exit" then
|
if res == "exit" then
|
||||||
return "exit"
|
return "exit"
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue