mirror of
https://github.com/linux-man/LoveFrames.git
synced 2024-11-18 16:04:22 +00:00
Add menu:RemoveOption
This commit is contained in:
parent
d2b76b191d
commit
ca26c83414
@ -207,6 +207,21 @@ function newobject:AddOption(text, icon, func)
|
||||
|
||||
end
|
||||
|
||||
--[[---------------------------------------------------------
|
||||
- func: RemoveOption(id)
|
||||
- desc: removes an option
|
||||
--]]---------------------------------------------------------
|
||||
function newobject:RemoveOption(id)
|
||||
|
||||
for k, v in ipairs(self.internals) do
|
||||
if k == id then
|
||||
table.remove(self.internals, k)
|
||||
return
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
--[[---------------------------------------------------------
|
||||
- func: AddSubMenu(text, icon, menu)
|
||||
- desc: adds a submenu to the object
|
||||
|
Loading…
Reference in New Issue
Block a user