mirror of
https://github.com/darksaid98/overextended.github.io.git
synced 2026-12-02 06:28:54 +00:00
add menu canClose
This commit is contained in:
1 parent
bc17fe5f70
commit
7e89f69bf4
2 files changed
+4
No files matched your search
@@ -31,6 +31,8 @@ lib.registerContext(context)
|
|||||||
* Title display in the menu.
|
* Title display in the menu.
|
||||||
* menu?: `string`
|
* menu?: `string`
|
||||||
* Menu identifier - if defined there will be a back arrow next to the menu title that will take you to the menu you defined.
|
* Menu identifier - if defined there will be a back arrow next to the menu title that will take you to the menu you defined.
|
||||||
|
* canClose: `boolean`
|
||||||
|
* If set to false the user won't be able to exit the menu without pressing one of the buttons.
|
||||||
* onExit?: `function`
|
* onExit?: `function`
|
||||||
* Function that will be ran when the user closes their context menu with ESC.
|
* Function that will be ran when the user closes their context menu with ESC.
|
||||||
* options: `table` (`object` or `array`)
|
* options: `table` (`object` or `array`)
|
||||||
|
|||||||
@@ -44,6 +44,8 @@ lib.registerMenu(data, cb)
|
|||||||
* Default: `'top-left'`
|
* Default: `'top-left'`
|
||||||
* disableInput?: `boolean`
|
* disableInput?: `boolean`
|
||||||
* Default: `false`
|
* Default: `false`
|
||||||
|
* canClose: `boolean`
|
||||||
|
* If set to false the user won't be able to exit the menu without pressing one of the buttons.
|
||||||
* onClose: `function`
|
* onClose: `function`
|
||||||
* Function that runs when the menu is exited via ESC/Backspace.
|
* Function that runs when the menu is exited via ESC/Backspace.
|
||||||
* onSelected: `function`(selected: `number`: scrollIndex: `number`: args: `any`)
|
* onSelected: `function`(selected: `number`: scrollIndex: `number`: args: `any`)
|
||||||
|
|||||||
Reference in new issue
Block a user