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
2 changed files with 4 additions and 0 deletions
Showing only changes of commit 9ed2b44be2 - Show all commits

View file

@ -60,11 +60,13 @@ end
function HListBox:moveByKeys(key, code)
if key == 'left' then
self.widget:moveCursor(-1)
self.canvas.needRedraw = true
self:playNavigationSound()
end
if key == 'right' then
self.widget:moveCursor(1)
self.canvas.needRedraw = true
self:playNavigationSound()
end
end

View file

@ -61,11 +61,13 @@ function ListBox:moveByKeys(key)
if key == 'up' then
self.widget:moveCursor(-1)
self:playNavigationSound()
self.canvas.needRedraw = true
end
if key == 'down' then
self.widget:moveCursor(1)
self:playNavigationSound()
self.canvas.needRedraw = true
end
end