Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update various feed message natives #1134

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions HUD/EndTextCommandThefeedPostMpticker.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,14 @@ aliases: ["_DRAW_NOTIFICATION_4"]

```c
// 0xF020C96915705B3A 0x8E319AB8
int END_TEXT_COMMAND_THEFEED_POST_MPTICKER(BOOL blink, BOOL bHasTokens);
int END_TEXT_COMMAND_THEFEED_POST_MPTICKER(BOOL isImportant, BOOL showInBrief);
```

Exactly the same as [`END_TEXT_COMMAND_THEFEED_POST_TICKER`](#_0x2ED7843F8F801023).

## Parameters
* **blink**:
* **bHasTokens**:
* **isImportant**: If true, the notification will flash.
* **showInBrief**: If true, the message will be shown in Pause Menu > Info > Notifications.

## Return value
The notification handle.
13 changes: 7 additions & 6 deletions HUD/EndTextCommandThefeedPostTicker.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,25 +6,26 @@ aliases: ["_DRAW_NOTIFICATION"]

```c
// 0x2ED7843F8F801023 0x08F7AF78
int END_TEXT_COMMAND_THEFEED_POST_TICKER(BOOL isImportant, BOOL bHasTokens);
int END_TEXT_COMMAND_THEFEED_POST_TICKER(BOOL isImportant, BOOL showInBrief);
```

Example output preview:
Posts a generic feed notification:


![](https://i.imgur.com/TJvqkYq.png)
![](https://i.ibb.co/GkHcFvf/image.png)


## Examples
```lua
BeginTextCommandThefeedPost("STRING")
AddTextComponentSubstringPlayerName("Hello " .. GetPlayerName(PlayerId()) .. ".")
AddTextEntry("MyFeedMessage", "Hello " .. GetPlayerName(PlayerId()) .. ".")

BeginTextCommandThefeedPost("MyFeedMessage")
EndTextCommandThefeedPostTicker(true, true)
```

## Parameters
* **isImportant**: Makes the notification flash on the screen.
* **bHasTokens**: Makes the notification appear in the "Pause Menu > Info/Brief > Notifications" section.
* **showInBrief**: Makes the notification appear in the "Pause Menu > Info/Brief > Notifications" section.

## Return value
The notification handle.
9 changes: 6 additions & 3 deletions HUD/EndTextCommandThefeedPostTickerForced.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,14 @@ aliases: ["_DRAW_NOTIFICATION_2"]

```c
// 0x44FA03975424A0EE 0x57B8D0D4
int END_TEXT_COMMAND_THEFEED_POST_TICKER_FORCED(BOOL blink, BOOL bHasTokens);
int END_TEXT_COMMAND_THEFEED_POST_TICKER_FORCED(BOOL isImportant, BOOL showInBrief);
```

Posts an above minimap feed notification that is forced (Previous messages will be cleared).

## Parameters
* **blink**:
* **bHasTokens**:
* **isImportant**: If true, the notification will flash.
* **showInBrief**: If true, shows in Pause Menu > Info > Notifications.

## Return value
The notification handle.
8 changes: 5 additions & 3 deletions HUD/EndTextCommandThefeedPostTickerWithTokens.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,14 @@ aliases: ["_DRAW_NOTIFICATION_3"]

```c
// 0x378E809BF61EC840 0x02BCAF9B
int END_TEXT_COMMAND_THEFEED_POST_TICKER_WITH_TOKENS(BOOL isImportant, BOOL bHasTokens);
int END_TEXT_COMMAND_THEFEED_POST_TICKER_WITH_TOKENS(BOOL isImportant, BOOL showInBrief);
```

Posts an above minimap feed message with tokens support (blips, input keys, etc...)

## Parameters
* **isImportant**:
* **bHasTokens**:
* **isImportant**: Makes the notification flash.
* **showInBrief**: Shows in Pause Menu > Info > Notifications.

## Return value
Notification handle.
13 changes: 13 additions & 0 deletions HUD/ThefeedAutoPostGametipsOff.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
ns: HUD
aliases: ["0xADED7F5748ACAFE6","_THEFEED_SHOW_GTAO_TOOLTIPS", "_THEFEED_COMMENT_TELEPORT_POOL_OFF"]
---
## THEFEED_AUTO_POST_GAMETIPS_OFF

```c
// 0xADED7F5748ACAFE6 0x1D6859CA
void THEFEED_AUTO_POST_GAMETIPS_OFF();
```

Disables tip notifications enabled by [`THEFEED_AUTO_POST_GAMETIPS_ON`](#_0x56C8B608CFD49854)

13 changes: 13 additions & 0 deletions HUD/ThefeedAutoPostGametipsOn.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
ns: HUD
aliases: ["0x56C8B608CFD49854", "_THEFEED_COMMENT_TELEPORT_POOL_ON"]
---
## THEFEED_AUTO_POST_GAMETIPS_ON

```c
// 0x56C8B608CFD49854 0xF881AB87
void THEFEED_AUTO_POST_GAMETIPS_ON();
```

Enables loading screen tips to be be shown, blocks other kinds of notifications from being displayed.
Call [`THEFEED_AUTO_POST_GAMETIPS_OFF`](#_0xADED7F5748ACAFE6) to undo this.
15 changes: 0 additions & 15 deletions HUD/ThefeedCommentTeleportPoolOff.md

This file was deleted.

15 changes: 0 additions & 15 deletions HUD/ThefeedCommentTeleportPoolOn.md

This file was deleted.

Loading