-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Document various text input box natives (#1111)
* Document various text input box natives Added parameters, real names, etc. * Add example to DisplayOnscreenKeyboard * Add a table to UPDATE_ONSCREEN_KEYBOARD * Update DisplayOnscreenKeyboardWithLongerInitialString.md Change `Any*` to `AnyPtr` `cs_type` declaration. * Use enum in NextOnscreenKeyboardResultWillDisplayUsingTheseFonts * use enum in DisplayOnscreenKeyboard. * Use enum in UpdateOnscreenKeyboard * Use consistent casing for enums --------- Co-authored-by: ammonia-cfx <[email protected]> Co-authored-by: Dillon Skaggs <[email protected]>
- Loading branch information
1 parent
f40be99
commit a0e27fd
Showing
10 changed files
with
115 additions
and
92 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,10 @@ | ||
--- | ||
ns: HUD | ||
aliases: ["0x8817605C2BA76200"] | ||
aliases: ["0x8817605C2BA76200", "_FORCE_CLOSE_TEXT_INPUT_BOX"] | ||
--- | ||
## _FORCE_CLOSE_TEXT_INPUT_BOX | ||
## FORCE_CLOSE_TEXT_INPUT_BOX | ||
|
||
```c | ||
// 0x8817605C2BA76200 | ||
void _FORCE_CLOSE_TEXT_INPUT_BOX(); | ||
void FORCE_CLOSE_TEXT_INPUT_BOX(); | ||
``` | ||
|
||
|
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
--- | ||
ns: HUD | ||
aliases: ["0x577599CCED639CA2"] | ||
--- | ||
## SET_ALLOW_COMMA_ON_TEXT_INPUT | ||
|
||
```c | ||
// 0x577599CCED639CA2 | ||
void SET_ALLOW_COMMA_ON_TEXT_INPUT(cs_type(Any) BOOL allow); | ||
``` | ||
**NOTE:** This must be called before you open the text input box. | ||
## Parameters | ||
* **allow**: Toggles if the comma can be used in conjuction with the `filename` text input box type. | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
--- | ||
ns: HUD | ||
aliases: ["0x1185A8087587322C"] | ||
--- | ||
## SET_TEXT_INPUT_BOX_ENABLED | ||
|
||
```c | ||
// 0x1185A8087587322C | ||
void SET_TEXT_INPUT_BOX_ENABLED(BOOL state); | ||
``` | ||
Toggles if the text input box can be opened with [`DISPLAY_ONSCREEN_KEYBOARD`](#_0x00DC833F2568DBF6). | ||
## Parameters | ||
* **state**: | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,15 @@ | ||
--- | ||
ns: MISC | ||
aliases: ["0x58A39BE597CE99CD"] | ||
aliases: ["0x58A39BE597CE99CD", "_CANCEL_ONSCREEN_KEYBOARD"] | ||
--- | ||
## _CANCEL_ONSCREEN_KEYBOARD | ||
## CANCEL_ONSCREEN_KEYBOARD | ||
|
||
```c | ||
// 0x58A39BE597CE99CD 0x196444BB | ||
void _CANCEL_ONSCREEN_KEYBOARD(); | ||
void CANCEL_ONSCREEN_KEYBOARD(); | ||
``` | ||
|
||
``` | ||
DO NOT use this as it doesn't clean up the text input box properly and your script will get stuck in the UPDATE_ONSCREEN_KEYBOARD() loop. | ||
Use _FORCE_CLOSE_TEXT_INPUT_BOX instead. | ||
CANCEL_* | ||
``` | ||
Closes the onscreen keyboard on console versions of the game. | ||
|
||
**NOTE:** Do not use this native in FiveM/PC, because [`UPDATE_ONSCREEN_KEYBOARD`](#_0x0CF2B696BBF945AE) value doesn't get cleaned up and stays as `0`. | ||
You should use [`FORCE_CLOSE_TEXT_INPUT_BOX`](#_0x8817605C2BA76200) instead. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters