HUD Message: Difference between revisions
Update availability enum
(Created page with "== v1.9 == === GuiHudMessageRessource === {| class="wikitable" ! Offset !! Size !! Type !! Name !! Description !! More Information !! Comments |- | 0x0 || 0x4 || GuiHudMessageData * * || mppHudMessageData || HUD messages || GuiHudMessageData format || |- | 0x4 || 0x4 || int32_t || miSizeOfHudMessageResource || Size of file || || |- | 0x8 || 0x4 || int32_t || miHudMessageCount || Num HUD messages || || |} === GuiHudMessageData === {| class="wikitable" ! Offset !! Siz...") |
(Update availability enum) |
||
(7 intermediate revisions by the same user not shown) | |||
Line 1:
{{ParadiseResourceTypeInfobox
| name = HudMessage
| othernames = GuiHudMessage
| example = [[File:Paradise HudMessage Example 1.png|frameless|270px]]<br />[[File:Paradise HudMessage Example 2.png|frameless|200px]]<br />Various HUD messages.
| resourcenames = HUDMESSAGES.HM
| id = 0x2C
| category = Generic
| memdist = Main Memory only
}}
HUD messages appear when triggered by in-game actions, such as getting taken down or smashing a billboard. Their style varies depending on whether the action that triggered the message was positive or negative. They can also be displayed above the boost bar if in an event.
The only HUD message resource is found in HUDMESSAGES.HM.
= Structures =
=== CgsGui::GuiHudMessageResource ===
==== 32-bit ====
{| class="wikitable"
! Offset !!
|-
| 0x0 || 0x4 || [[#CgsGui::GuiHudMessageData
|-
| 0x4 || 0x4 || int32_t || miSizeOfHudMessageResource ||
|-
| 0x8 || 0x4 || int32_t || miHudMessageCount ||
|}
==== 64-bit ====
{| class="wikitable"
! Offset !!
|-
| 0x0 ||
|-
|
|-
| 0xC || 0x4 || int32_t || miHudMessageCount || Number
|}
===
{| class="wikitable"
! Offset !!
|-
| 0x0 ||
|-
|
|-
|
|-
|
|-
|
|-
| 0x110 || 0x8 || [[CgsID]] || mMessageIdHash ||
|-
| 0x118 || 0x4 || uint32_t || muAvailabilityBitSet || || See [[#CgsGui::HudMessageAvailableFields|availability flags]]
|-
| 0x11C || 0x4 || float32_t || mfDuration || Time
|-
| 0x120 || 0x4 || float32_t || mfTimeToWait || Wait
|-
| 0x124 || 0x4 || int32_t || miPriority || Percent
|-
| 0x128 || 0x4 || int32_t || miForceRemoveThreshold || Priority-related?
|-
| 0x12C || 0x4 ||
|-
| 0x130 || 0xC || int32_t[3] || maiParamCount || Num
|-
| 0x13C || 0x30 || [[#CgsGui::HudMessageParamTypes|HudMessageParamTypes]][3][4] || maaeParams || ||
|-
| 0x16C || 0x4 || || ||
|}
= Enumerations =
=== CgsGui::HudMessageAvailableFields ===
{| class="wikitable"
|-
| E_HUDMESSAGEAVAILABLEFIELDS_RACE || 0x1 || Available in Race events
|-
| E_HUDMESSAGEAVAILABLEFIELDS_ROADRAGE || 0x2 || Available in Road Rage events
|-
| E_HUDMESSAGEAVAILABLEFIELDS_SHOWTIME || 0x4 || Available in Showtime
|-
| E_HUDMESSAGEAVAILABLEFIELDS_OFFLINE || 0x8 || Available offline
|-
| E_HUDMESSAGEAVAILABLEFIELDS_ONLINE || 0x10 || Available online
|-
| E_HUDMESSAGEAVAILABLEFIELDS_INCRASH || 0x20 || Available while crashed
|}
===
{| class="wikitable"
|-
| E_HUDMESSAGEGROUP_ALL || 0 ||
|-
| E_HUDMESSAGEGROUP_ONLINE_LIVEREVENGE || 1 ||
|-
| E_HUDMESSAGEGROUP_ONLINE_DIRTY_TRICKS || 2 ||
|-
| E_HUDMESSAGEGROUP_INGAMEMESSAGES || 3 ||
|-
| E_HUDMESSAGEGROUP_COUNT || 4 ||
|}
===
{| class="wikitable"
|-
| E_HUDMESSAGEPARAMTYPES_UNUSED || 0 ||
|-
| E_HUDMESSAGEPARAMTYPES_STRING || 1 ||
|-
| E_HUDMESSAGEPARAMTYPES_INT || 2 ||
|-
| E_HUDMESSAGEPARAMTYPES_FLOAT || 3 ||
|-
| E_HUDMESSAGEPARAMTYPES_MONEY || 4 ||
|-
| E_HUDMESSAGEPARAMTYPES_TIME || 5 ||
|-
| E_HUDMESSAGEPARAMTYPES_STRINGID || 6 ||
|-
| E_HUDMESSAGEPARAMTYPES_COUNT || 7 ||
|}
|