benilla-re systems structs docs

Script::ClearSendMail

function · ui · orchestration

Address
0x4adee0 · 13 bytes, up to 0x4adeec
Signature
int __fastcall (lua_State *L)
Meaning
Resets the compose state with its events and returns nothing
Confidence
verified, proof one
Name from
the community database (idb)
Finding
ui/mailsend#the-compose-state

Finding: The compose state in ui: composing and sending mail

The draft is a few cells. The attached item is a GUID (0xb6ef90), the container GUID it came from (0xb6ef98) and its slot byte (0xb6efa0). The amounts are money (0xb6efa4) and COD (0xb6efa8). 0xb6efac is 1 while a send awaits its result. The selections are a stationery id (0xb6efb4) and a package id (0xb6efb8). ClearSendMail() and the compose reset 0x4acdc0 unlock the attached item, zero every cell and, when asked, signal SEND_MAIL_MONEY_CHANGED, SEND_MAIL_COD_CHANGED and MAIL_SEND_SUCCESS in that order. Opening a mailbox, a successful send and ClearSendMail reset with the events; closing the window resets without them. A reset clears the stationery selection, so a draft cannot be sent until SelectStationery runs again.

The derivation is in the doc.

Callers 0

None by a direct call or jump.

Callees 1

Calls and jumps by a bare address, from tables/calls.tsv.