feat: add a getter for selected widget
This commit is contained in:
parent
876d30671d
commit
89bbf5fff2
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue