Skip to content

Commit

Permalink
update mantine links
Browse files Browse the repository at this point in the history
  • Loading branch information
LukeWasTakenn committed Sep 19, 2023
1 parent d200c7e commit 53338a6
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 5 deletions.
2 changes: 1 addition & 1 deletion pages/ox_lib.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ pnpm build
Resource configuration is handled using [convars](https://docs.fivem.net/docs/scripting-reference/convars/).

```bash
# https://mantine.dev/theming/colors/#default-colors
# https://v6.mantine.dev/theming/colors/#default-colors
setr ox:primaryColor blue
setr ox:primaryShade 8
```
Expand Down
4 changes: 2 additions & 2 deletions pages/ox_lib/Modules/Interface.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ dialog confirm buttons, input field focus, and more.

You can find the full list of preset colours and shades here:

https://mantine.dev/theming/colors/#default-colors
https://v6.mantine.dev/theming/colors/#default-colors

If you wish to create your own pallete I suggest following the guide on that page.
Keep in mind doing so *will* require you to download the source code and build the UI.
Keep in mind doing so _will_ require you to download the source code and build the UI.
9 changes: 8 additions & 1 deletion pages/ox_lib/Modules/Interface/Client/context.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ Used for registering a context menu.

lib.registerContext(context);
```

</Tab>
</Tabs>

Expand Down Expand Up @@ -57,7 +58,7 @@ Used for registering a context menu.
- Adds a progress bar filled to this percentage
- colorScheme?: `string`
- Sets the color scheme of the progress bar. Current options can be found here:
- https://mantine.dev/theming/colors/#default-colors
- https://v6.mantine.dev/theming/colors/#default-colors
- For example: `blue` or `teal`
- 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.
Expand Down Expand Up @@ -100,6 +101,7 @@ Opens a registered context menu by its id.

lib.showContext(id);
```

</Tab>
</Tabs>

Expand All @@ -121,6 +123,7 @@ Hides any currently visible context menu.

lib.hideContext(onExit);
```

</Tab>
</Tabs>

Expand All @@ -145,6 +148,7 @@ If no context menu is open returns `nil`.

lib.getOpenContextMenu();
```

</Tab>
</Tabs>

Expand Down Expand Up @@ -252,6 +256,7 @@ First we register the menu with our specified options then we call the show func
],
});
```

</Tab>
</Tabs>

Expand Down Expand Up @@ -314,6 +319,7 @@ And the event that we are going to run from the `some_menu` menu, which is going
lib.showContext('event_menu')
end)
```

</Tab>
<Tab>
```ts
Expand All @@ -332,6 +338,7 @@ And the event that we are going to run from the `some_menu` menu, which is going
lib.showContext('event_menu');
});
```

</Tab>
</Tabs>

Expand Down
1 change: 0 additions & 1 deletion pages/ox_lib/Modules/Interface/Client/skillcheck.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@ Cancels the currently ongoing skill check.
</Tab>
</Tabs>


## Usage Example

<Tabs items={["Lua", "JS"]}>
Expand Down

0 comments on commit 53338a6

Please sign in to comment.