improve Prompt and use it to ask for level and file name when exporting
This commit is contained in:
@@ -44,6 +44,7 @@ function Keybind:CheckDown(action)
|
||||
end
|
||||
end
|
||||
|
||||
-- relies on being called exactly once per frame to be accurate.
|
||||
function Keybind:CheckPressed(action)
|
||||
if Keybind:CheckDown(action) then
|
||||
if not action.pressed then
|
||||
@@ -77,6 +78,7 @@ function Keybind:RemoveKeys(action)
|
||||
action.keys = {}
|
||||
end
|
||||
|
||||
-- this prolly should be used by Prompt:keypressed()
|
||||
function Keybind:hasKey(action, key)
|
||||
for _, v in pairs(action.keys) do
|
||||
if v == key then
|
||||
|
||||
Reference in New Issue
Block a user