Refonte pour utiliser le systeme de GUI #112

Merged
kazhnuz merged 102 commits from feat/gui into master 2022-01-06 19:15:16 +01:00
Showing only changes of commit 2ccf4d2e4e - Show all commits

View file

@ -152,7 +152,7 @@ function Gui:keycheck(keys)
if (haveFocus) then if (haveFocus) then
local elem = self:getFocusedElement() local elem = self:getFocusedElement()
for key,_ in pairs(keys) do for key,_ in pairs(keys) do
if keys[key].isPressed then if (keys[key].isPressed and not elem:isTransforming()) then
elem:keypressed(key) elem:keypressed(key)
end end
end end