From 7d7729cb50dfaa222e50eb35c2128804935f6ba4 Mon Sep 17 00:00:00 2001 From: Freddy <33939455+freedy69@users.noreply.github.com> Date: Wed, 7 Aug 2024 23:11:15 +0400 Subject: [PATCH] document SET_WARNING_MESSAGE_WITH_HEADER_UNK (#1054) * document SET_WARNING_MESSAGE_WITH_HEADER_UNK this changes a few types (such as Any to BOOL), let me know if there's something wrong with this. * add one frame to description --- HUD/SetWarningMessageWithHeaderExtended.md | 25 +++++++++++++++++++++ HUD/SetWarningMessageWithHeaderUnk.md | 26 ---------------------- 2 files changed, 25 insertions(+), 26 deletions(-) create mode 100644 HUD/SetWarningMessageWithHeaderExtended.md delete mode 100644 HUD/SetWarningMessageWithHeaderUnk.md diff --git a/HUD/SetWarningMessageWithHeaderExtended.md b/HUD/SetWarningMessageWithHeaderExtended.md new file mode 100644 index 000000000..ce8536e07 --- /dev/null +++ b/HUD/SetWarningMessageWithHeaderExtended.md @@ -0,0 +1,25 @@ +--- +ns: HUD +aliases: ["0x38B55259C2E078ED", "_SET_WARNING_MESSAGE_WITH_HEADER_UNK"] +--- +## SET_WARNING_MESSAGE_WITH_HEADER_EXTENDED + +```c +// 0x38B55259C2E078ED +void SET_WARNING_MESSAGE_WITH_HEADER_EXTENDED(char* headerTextLabel, char* line1TextLabel, int buttonsBitField, cs_type(char*) int buttonsBitFieldUpper, cs_type(BOOL) char* line2TextLabel, cs_type(Any) BOOL addNumber, cs_type(Any*) int numberToAdd, cs_type(Any*) char* firstSubstring, cs_type(BOOL) char* secondSubstring, cs_type(Any) BOOL showBackground, int errorCode); +``` + +Sets a warning message for one frame with header and upper buttons bit field that don't fit the standard 32 bit set. + +## Parameters +* **headerTextLabel**: Text label to set on the header/title. +* **line1TextLabel**: Text label to set on the first line of the body.. +* **buttonsBitField**: Bit field of the button flags. See [`SET_WARNING_MESSAGE`](#_0x7B1776B3B53F8D74). +* **buttonsBitFieldUpper**: Bit field of the upper button flags. See [`SET_WARNING_MESSAGE_WITH_HEADER_AND_SUBSTRING_FLAGS_EXTENDED`](#_0x15803FEC3B9A872B). +* **line2TextLabel**: Text label to set on the second line of the body. +* **addNumber**: If number should be inserted into `~1~` in the body. +* **numberToAdd**: What number to insert into `~1~` in the body. +* **firstSubstring**: First substring text label to insert into `~a~` in the body. +* **secondSubstring**: Second substring text label to insert into `~a~` in the body. +* **showBackground**: Bool indicating if the message should have a black background. +* **errorCode**: Error number to show at the bottom of the message. `0` is the default. diff --git a/HUD/SetWarningMessageWithHeaderUnk.md b/HUD/SetWarningMessageWithHeaderUnk.md deleted file mode 100644 index 74057f192..000000000 --- a/HUD/SetWarningMessageWithHeaderUnk.md +++ /dev/null @@ -1,26 +0,0 @@ ---- -ns: HUD ---- -## _SET_WARNING_MESSAGE_WITH_HEADER_UNK - -```c -// 0x38B55259C2E078ED -void _SET_WARNING_MESSAGE_WITH_HEADER_UNK(char* entryHeader, char* entryLine1, int flags, char* entryLine2, BOOL p4, Any p5, Any* p6, Any* p7, BOOL showBg, Any p9, Any p10); -``` - -``` -NativeDB Introduced: v1493 -``` - -## Parameters -* **entryHeader**: -* **entryLine1**: -* **flags**: -* **entryLine2**: -* **p4**: -* **p5**: -* **p6**: -* **p7**: -* **showBg**: -* **p9**: -* **p10**: