feat: add a getter for selected widget

This commit is contained in:
Kazhnuz 2020-12-04 12:00:28 +01:00
parent 876d30671d
commit 89bbf5fff2

View file

@ -131,6 +131,10 @@ end
-- CURSOR FUNCTIONS
-- Set or move the cursor of the menu
function MenuModel:getSelected()
return self.selected
end
function MenuModel:haveCursor()
return self:widgetExist(self.selected)
end