HUD Message: Difference between revisions

Update availability enum
(Added infobox and normalized some content.)
(Update availability enum)
 
(2 intermediate revisions by the same user not shown)
Line 3:
| 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
Line 9 ⟶ 10:
 
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::GuiHudMessageRessourceGuiHudMessageResource ===
==== 32-bit ====
{| class="wikitable"
Line 50 ⟶ 53:
| 0x110 || 0x8 || [[CgsID]] || mMessageIdHash || ||
|-
| 0x118 || 0x4 || uint32_t || muAvailabilityBitSet || || See [[#Availability flagsCgsGui::HudMessageAvailableFields|availability flags]]
|-
| 0x11C || 0x4 || float32_t || mfDuration || Time the message displays || In seconds
Line 70 ⟶ 73:
 
= Enumerations =
=== CgsGui::HudMessageAvailableFields ===
=== Availability flags ===
{| class="wikitable"
! 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?Showtime
|-
| ?E_HUDMESSAGEAVAILABLEFIELDS_OFFLINE || 0x8 || Available offline
|-
| ?E_HUDMESSAGEAVAILABLEFIELDS_ONLINE || 0x10 || Available online
|-
| ?E_HUDMESSAGEAVAILABLEFIELDS_INCRASH || 0x20 || Available while crashed
|}