add Prompt

This commit is contained in:
binarycat
2022-03-05 13:46:33 -05:00
parent 3c4f763ae7
commit 70958c5762
5 changed files with 109 additions and 2 deletions

View File

@@ -77,6 +77,16 @@ function Keybind:RemoveKeys(action)
action.keys = {}
end
function Keybind:hasKey(action, key)
for _, v in pairs(action.keys) do
if v == key then
return true
end
end
return false
end
function Keybind:Default()
--Menu
Keybind.menu.pause.keys = {"escape"}