feat: add a getter for selected widget

This commit is contained in:
Kazhnuz Klappsthul 2020-12-04 12:00:28 +01:00
parent 876d30671d
commit 89bbf5fff2
1 changed files with 4 additions and 0 deletions

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