mirror of
https://github.com/darksaid98/overextended.github.io.git
synced 2026-12-02 06:28:54 +00:00
[Menu] Progress Bars - ox_lib PR 166 (#78)
* Update menu.md * Update menu.md * Update context.md * Update context.md
This commit is contained in:
1 parent
35b0cf739e
commit
af697ebafe
2 files changed
+10
No files matched your search
@@ -51,6 +51,11 @@ lib.registerContext(context)
|
|||||||
* FontAwesome icon that will be displayed on the left side, works the same as notification and textui icons.
|
* FontAwesome icon that will be displayed on the left side, works the same as notification and textui icons.
|
||||||
* iconColor?: `string`
|
* iconColor?: `string`
|
||||||
* Colour of the displayed icon.
|
* Colour of the displayed icon.
|
||||||
|
* progress?: `number`
|
||||||
|
* Adds a progress bar filled to this percentage
|
||||||
|
* colorScheme?: `string`
|
||||||
|
* Sets the color scheme of the progress bar. Current options available are:
|
||||||
|
* `whiteAlpha`, `blackAlpha`, `gray`, `red`, `orange`, `yellow`, `green`, `teal`, `blue`, `cyan`, `purple`, `pink`
|
||||||
* arrow?: `boolean`
|
* arrow?: `boolean`
|
||||||
* Shows an arrow on the right side like `menu` does, useful when you are opening a menu from an event. Can be set to false to hide it.
|
* Shows an arrow on the right side like `menu` does, useful when you are opening a menu from an event. Can be set to false to hide it.
|
||||||
* description?: `string`
|
* description?: `string`
|
||||||
@@ -335,3 +340,4 @@ with the `lib.showContext` function, passing in the menu's id.
|
|||||||

|

|
||||||

|

|
||||||

|

|
||||||
|

|
||||||
@@ -32,7 +32,10 @@ lib.registerMenu(data, cb)
|
|||||||
* title: `string`
|
* title: `string`
|
||||||
* options: `table` (`array`)
|
* options: `table` (`array`)
|
||||||
* label: `string`
|
* label: `string`
|
||||||
|
* progress?: `number`
|
||||||
|
* colorScheme?: `string`
|
||||||
* icon?: `string`
|
* icon?: `string`
|
||||||
|
* iconColor?: `string`
|
||||||
* values?: `table` (`Array<string | {label: string; description: string}>`)
|
* values?: `table` (`Array<string | {label: string; description: string}>`)
|
||||||
* If provided creates a side scrollabel list.
|
* If provided creates a side scrollabel list.
|
||||||
* When using object and setting description, the set description will be displayed in the menu tooltip.
|
* When using object and setting description, the set description will be displayed in the menu tooltip.
|
||||||
@@ -294,3 +297,4 @@ RegisterCommand('testmenu', () => {
|
|||||||
</Tabs>
|
</Tabs>
|
||||||
|
|
||||||

|

|
||||||
|

|
||||||
Reference in new issue
Block a user