mirror of
https://github.com/darksaid98/overextended.github.io.git
synced 2026-12-02 14:38:50 +00:00
update textui docs
This commit is contained in:
1 parent
7a3ecf27b9
commit
b47092b02a
1 file changed
+32
-29
@@ -5,11 +5,14 @@ title: TextUI
|
|||||||
import Tabs from '@theme/Tabs';
|
import Tabs from '@theme/Tabs';
|
||||||
import TabItem from '@theme/TabItem';
|
import TabItem from '@theme/TabItem';
|
||||||
|
|
||||||
## lib.showTextUI
|
### lib.showTextUI
|
||||||
|
|
||||||
Show the TextUI window.
|
Show the TextUI window.
|
||||||
|
|
||||||
**DO NOT** run this every tick, it's intended to be used as a toggle.
|
:::danger
|
||||||
|
|
||||||
|
**DO NOT** run this function every tick, it's intented to be used as a toggle.
|
||||||
|
:::
|
||||||
|
|
||||||
<Tabs>
|
<Tabs>
|
||||||
<TabItem value='Lua'>
|
<TabItem value='Lua'>
|
||||||
@@ -38,9 +41,32 @@ lib.showTextUI(text, options)
|
|||||||
* iconColor?: `string`
|
* iconColor?: `string`
|
||||||
* style?: React.CSSProperties
|
* style?: React.CSSProperties
|
||||||
|
|
||||||
|
### lib.hideTextUI
|
||||||
|
|
||||||
|
Hides the currently visible TextUI window
|
||||||
|
|
||||||
|
<Tabs>
|
||||||
|
<TabItem value='Lua'>
|
||||||
|
|
||||||
|
```lua
|
||||||
|
lib.hideTextUI()
|
||||||
|
```
|
||||||
|
|
||||||
|
</TabItem>
|
||||||
|
<TabItem value='JS/TS'>
|
||||||
|
|
||||||
|
```ts
|
||||||
|
import lib from '@overextended/ox_lib/client'
|
||||||
|
|
||||||
|
lib.hideTextUI()
|
||||||
|
```
|
||||||
|
|
||||||
|
</TabItem>
|
||||||
|
</Tabs>
|
||||||
|
|
||||||
### Usage Example
|
### Usage Example
|
||||||
|
|
||||||
### Basic
|
#### Basic
|
||||||
|
|
||||||
<Tabs>
|
<Tabs>
|
||||||
<TabItem value='Lua'>
|
<TabItem value='Lua'>
|
||||||
@@ -61,9 +87,9 @@ lib.showTextUI('[E] - Fuel vehicle')
|
|||||||
</TabItem>
|
</TabItem>
|
||||||
</Tabs>
|
</Tabs>
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
### Custom styling
|
#### Custom styling
|
||||||
|
|
||||||
<Tabs>
|
<Tabs>
|
||||||
<TabItem value='Lua'>
|
<TabItem value='Lua'>
|
||||||
@@ -100,27 +126,4 @@ lib.showTextUI('[E] - Pick apple', {
|
|||||||
</TabItem>
|
</TabItem>
|
||||||
</Tabs>
|
</Tabs>
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
### lib.hideTextUI
|
|
||||||
|
|
||||||
Hides the currently visible TextUI window
|
|
||||||
|
|
||||||
<Tabs>
|
|
||||||
<TabItem value='Lua'>
|
|
||||||
|
|
||||||
```lua
|
|
||||||
lib.hideTextUI()
|
|
||||||
```
|
|
||||||
|
|
||||||
</TabItem>
|
|
||||||
<TabItem value='JS/TS'>
|
|
||||||
|
|
||||||
```ts
|
|
||||||
import lib from '@overextended/ox_lib/client'
|
|
||||||
|
|
||||||
lib.hideTextUI()
|
|
||||||
```
|
|
||||||
|
|
||||||
</TabItem>
|
|
||||||
</Tabs>
|
|
||||||
Reference in new issue
Block a user