CGGameUI::AddErrorMessage
function · ui · primitive
- Address
0x4945b0· 35 bytes, up to0x4945d2- Signature
void __fastcall (const char *text, int isError)- Meaning
- Signals UI_INFO_MESSAGE or UI_ERROR_MESSAGE with the text, doing nothing for an empty text
- Confidence
- verified, proof one
- Name from
- the community database (idb)
- Finding
- ui/inventory#failure-messages
Finding: Failure messages in ui: inventory queries and alerts
An inventory failure shows its text through CGGameUI::DisplayError(id, args), 0x496720. An id of 465 or more does
nothing. The id's 0x14-byte entry at 0xb4b498 holds a key name (+0), a route 0 to 3 (+4), an interface sound name
(+8) and a vocal sound id (+0xc). The key is looked up as a global string with FrameScript_GetText, formatted
with the arguments into a 0x800 buffer, copied to 0xb4da40 and shown by the route: 0 through 0x49a870, 1 as
UI_INFO_MESSAGE and 2 as UI_ERROR_MESSAGE through 0x4945b0, 3 to the console. A key with no string in the interface
gives an empty text, which 0x4945b0 drops without a sound or a frame. Reason 0 and reason 59
(ERR_CANT_BE_DISENCHANTED) display nothing.
The derivation is in the doc.
Callers 3
- NotifyHandler client
- CGGameUI::HandlePacket ui
- CGGameUI::DisplayError ui
Callees 1
Calls and jumps by a bare address, from tables/calls.tsv.