HUD Message: Difference between revisions
Content added Content deleted
m (Burninrubber0 moved page HudMessage (Burnout Paradise) to HUD Message) |
(Update availability enum) |
||
(5 intermediate revisions by the same user not shown) | |||
Line 1: | 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 = |
= Structures = |
||
=== CgsGui:: |
=== CgsGui::GuiHudMessageResource === |
||
==== 32-bit ==== |
==== 32-bit ==== |
||
{| class="wikitable" |
{| class="wikitable" |
||
! Offset !! Length !! Type !! Name !! Description !! Comments |
! Offset !! Length !! Type !! Name !! Description !! Comments |
||
|- |
|- |
||
| 0x0 || 0x4 || [[#CgsGui::GuiHudMessageData |
| 0x0 || 0x4 || [[#CgsGui::GuiHudMessageData|GuiHudMessageData]]** || mppHudMessageData || HUD messages || |
||
|- |
|- |
||
| 0x4 || 0x4 || int32_t || miSizeOfHudMessageResource || |
| 0x4 || 0x4 || int32_t || miSizeOfHudMessageResource || Resource size || |
||
|- |
|- |
||
| 0x8 || 0x4 || int32_t || miHudMessageCount || |
| 0x8 || 0x4 || int32_t || miHudMessageCount || Number of HUD messages || |
||
|} |
|} |
||
Line 18: | Line 30: | ||
! Offset !! Length !! Type !! Name !! Description !! Comments |
! Offset !! Length !! Type !! Name !! Description !! Comments |
||
|- |
|- |
||
| 0x0 || 0x8 || [[#CgsGui::GuiHudMessageData |
| 0x0 || 0x8 || [[#CgsGui::GuiHudMessageData|GuiHudMessageData]]** || mppHudMessageData || HUD messages || |
||
|- |
|- |
||
| 0x8 || 0x4 || int32_t || miSizeOfHudMessageResource || |
| 0x8 || 0x4 || int32_t || miSizeOfHudMessageResource || Resource size || |
||
|- |
|- |
||
| 0xC || 0x4 || int32_t || miHudMessageCount || |
| 0xC || 0x4 || int32_t || miHudMessageCount || Number of HUD messages || |
||
|} |
|} |
||
Line 37: | Line 49: | ||
| 0x100 || 0xD || char[13] || macMessageId || || |
| 0x100 || 0xD || char[13] || macMessageId || || |
||
|- |
|- |
||
| 0x10D || 0x3 || || || |
| 0x10D || 0x3 || || || Padding || |
||
|- |
|- |
||
| 0x110 || 0x8 || [[ |
| 0x110 || 0x8 || [[CgsID]] || mMessageIdHash || || |
||
|- |
|- |
||
| 0x118 || 0x4 || uint32_t || muAvailabilityBitSet || || See [[# |
| 0x118 || 0x4 || uint32_t || muAvailabilityBitSet || || See [[#CgsGui::HudMessageAvailableFields|availability flags]] |
||
|- |
|- |
||
| 0x11C || 0x4 || float32_t || mfDuration || Time the message displays || In seconds |
| 0x11C || 0x4 || float32_t || mfDuration || Time the message displays || In seconds |
||
Line 51: | Line 63: | ||
| 0x128 || 0x4 || int32_t || miForceRemoveThreshold || Priority-related? (0-100) || |
| 0x128 || 0x4 || int32_t || miForceRemoveThreshold || Priority-related? (0-100) || |
||
|- |
|- |
||
| 0x12C || 0x4 || [[#CgsGui::HudMessageGroup |
| 0x12C || 0x4 || [[#CgsGui::HudMessageGroup|HudMessageGroup]] || meMessageGroup || || |
||
|- |
|- |
||
| 0x130 || 0xC || int32_t[3] || maiParamCount || Num params used || |
| 0x130 || 0xC || int32_t[3] || maiParamCount || Num params used || |
||
|- |
|- |
||
| 0x13C || 0x30 || [[#CgsGui::HudMessageParamTypes |
| 0x13C || 0x30 || [[#CgsGui::HudMessageParamTypes|HudMessageParamTypes]][3][4] || maaeParams || || |
||
|- |
|- |
||
| 0x16C || 0x4 || || || |
| 0x16C || 0x4 || || || Padding || |
||
|} |
|} |
||
= Enumerations = |
= Enumerations = |
||
=== CgsGui::HudMessageAvailableFields === |
|||
=== Availability flags === |
|||
{| class="wikitable" |
{| class="wikitable" |
||
|- |
|||
! Name !! Value !! Comments |
! Name !! Value !! Comments |
||
|- |
|- |
||
| E_HUDMESSAGEAVAILABLEFIELDS_RACE || 0x1 || Available in Race events |
|||
| ? || 0x1 || ? |
|||
|- |
|- |
||
| E_HUDMESSAGEAVAILABLEFIELDS_ROADRAGE || 0x2 || Available in Road Rage events |
|||
| ? || 0x2 || ? |
|||
|- |
|- |
||
| |
| 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 |
||
|} |
|} |
||
=== CgsGui::HudMessageGroup === |
=== CgsGui::HudMessageGroup === |
||
{| class="wikitable" |
{| class="wikitable" |
||
|- |
|||
! Name !! Value !! Comments |
! Name !! Value !! Comments |
||
|- |
|- |
||
Line 97: | Line 107: | ||
=== CgsGui::HudMessageParamTypes === |
=== CgsGui::HudMessageParamTypes === |
||
{| class="wikitable" |
{| class="wikitable" |
||
|- |
|||
! Name !! Value !! Comments |
! Name !! Value !! Comments |
||
|- |
|- |
Latest revision as of 08:42, 15 March 2024
HudMessage | |
---|---|
aka GuiHudMessage | |
Various HUD messages. | |
Resource names | HUDMESSAGES.HM |
Type ID | 0x2C |
Category | Generic |
Memory distribution |
Main Memory only |
Editor available? |
No |
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
Offset | Length | Type | Name | Description | Comments |
---|---|---|---|---|---|
0x0 | 0x4 | GuiHudMessageData** | mppHudMessageData | HUD messages | |
0x4 | 0x4 | int32_t | miSizeOfHudMessageResource | Resource size | |
0x8 | 0x4 | int32_t | miHudMessageCount | Number of HUD messages |
64-bit
Offset | Length | Type | Name | Description | Comments |
---|---|---|---|---|---|
0x0 | 0x8 | GuiHudMessageData** | mppHudMessageData | HUD messages | |
0x8 | 0x4 | int32_t | miSizeOfHudMessageResource | Resource size | |
0xC | 0x4 | int32_t | miHudMessageCount | Number of HUD messages |
CgsGui::GuiHudMessageData
Offset | Length | Type | Name | Description | Comments |
---|---|---|---|---|---|
0x0 | 0xC0 | char[3][64] | maacStringId | ||
0xC0 | 0x20 | char[32] | macMessageStyle | ||
0xE0 | 0x20 | char[32] | macDefaultIcon | ||
0x100 | 0xD | char[13] | macMessageId | ||
0x10D | 0x3 | Padding | |||
0x110 | 0x8 | CgsID | mMessageIdHash | ||
0x118 | 0x4 | uint32_t | muAvailabilityBitSet | See availability flags | |
0x11C | 0x4 | float32_t | mfDuration | Time the message displays | In seconds |
0x120 | 0x4 | float32_t | mfTimeToWait | Wait before displaying message | |
0x124 | 0x4 | int32_t | miPriority | Percent priority (0-100) | |
0x128 | 0x4 | int32_t | miForceRemoveThreshold | Priority-related? (0-100) | |
0x12C | 0x4 | HudMessageGroup | meMessageGroup | ||
0x130 | 0xC | int32_t[3] | maiParamCount | Num params used | |
0x13C | 0x30 | HudMessageParamTypes[3][4] | maaeParams | ||
0x16C | 0x4 | Padding |
Enumerations
CgsGui::HudMessageAvailableFields
Name | Value | Comments |
---|---|---|
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 |
CgsGui::HudMessageGroup
Name | Value | Comments |
---|---|---|
E_HUDMESSAGEGROUP_ALL | 0 | |
E_HUDMESSAGEGROUP_ONLINE_LIVEREVENGE | 1 | |
E_HUDMESSAGEGROUP_ONLINE_DIRTY_TRICKS | 2 | |
E_HUDMESSAGEGROUP_INGAMEMESSAGES | 3 | |
E_HUDMESSAGEGROUP_COUNT | 4 |
CgsGui::HudMessageParamTypes
Name | Value | Comments |
---|---|---|
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 |