mirror of
https://github.com/darksaid98/overextended.github.io.git
synced 2026-12-02 14:38:50 +00:00
add disable input property for menu
This commit is contained in:
1 parent
2345af470a
commit
608e9927eb
1 file changed
+2
-1
@@ -19,6 +19,7 @@ Registers and caches a menu under the specified id.
|
|||||||
-- defaultIndex: number (optional - sets the current index for the list to specified number)
|
-- defaultIndex: number (optional - sets the current index for the list to specified number)
|
||||||
-- args: any (optional)
|
-- args: any (optional)
|
||||||
-- position: 'top-left' or 'top-right' or 'bottom-left' or 'bottom-right' (optional - default is top-left)
|
-- position: 'top-left' or 'top-right' or 'bottom-left' or 'bottom-right' (optional - default is top-left)
|
||||||
|
-- disableInput: boolean (optional - default false)
|
||||||
-- onClose: function (optional)
|
-- onClose: function (optional)
|
||||||
-- onSelected: function (optional - triggers every time a new button is selected)
|
-- onSelected: function (optional - triggers every time a new button is selected)
|
||||||
-- onSideScroll: function (optional - triggers every time a side list is scrolled)
|
-- onSideScroll: function (optional - triggers every time a side list is scrolled)
|
||||||
@@ -39,7 +40,7 @@ lib.showMenu(id)
|
|||||||
### lib.hideMenu
|
### lib.hideMenu
|
||||||
|
|
||||||
```lua
|
```lua
|
||||||
-- onExit: boolean (optinal - if true runs the menu's onClose function)
|
-- onExit: boolean (optional - if true runs the menu's onClose function)
|
||||||
|
|
||||||
lib.hideMenu(onExit)
|
lib.hideMenu(onExit)
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in new issue
Block a user