Skip to content

Commit

Permalink
Slightly update DisplayHelpTextThisFrame (#1040)
Browse files Browse the repository at this point in the history
* Slightly update DisplayHelpTextThisFrame

Changed description and put parameters

* Update DisplayHelpTextThisFrame.md

Refactor parameter naming for improved clarity:

Changed parameter names to use prefixes for clarity, i.e., 'bCurvedWindow'. This enhances readability, especially in dynamic languages where type information might not be explicit.

---------

Co-authored-by: ammonia-cfx <[email protected]>
  • Loading branch information
freedy69 and 4mmonium authored Mar 4, 2024
1 parent 3f36443 commit 31864ad
Showing 1 changed file with 5 additions and 16 deletions.
21 changes: 5 additions & 16 deletions HUD/DisplayHelpTextThisFrame.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,24 +5,13 @@ ns: HUD

```c
// 0x960C9FF8F616E41C 0x18E3360A
void DISPLAY_HELP_TEXT_THIS_FRAME(char* message, BOOL p1);
void DISPLAY_HELP_TEXT_THIS_FRAME(char* pTextLabel, BOOL bCurvedWindow);
```
```
The messages are localized strings.
Examples:
"No_bus_money"
"Enter_bus"
"Tour_help"
"LETTERS_HELP2"
"Dummy"
**The bool appears to always be false (if it even is a bool, as it's represented by a zero)**
--------
p1 doesn't seem to make a difference, regardless of the state it's in.
picture of where on the screen this is displayed?
```
Shows a help message for one frame.
Do note that this message doesn't get added to the Pause Menu info section.
## Parameters
* **message**:
* **p1**:
* **pTextLabel**: Text label for this message.
* **bCurvedWindow**: Unused parameter.

1 comment on commit 31864ad

@freedy69
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@4mmonium thanks for merging! Should we use prefixes in all our changes from now on?

Please sign in to comment.