Hud (Dynamic Type)

From Battlepedia
Jump to navigationJump to search

This page contains the format of the DYNA types which inherit from Hud. All offsets are relative to 0x10 (start of the type-specific data in DYNA assets).

Note: the X and Y coordinates of all Vector3s in HUD assets are measured in screen coordinates (0 to 1). The Z coordinate is distance from the camera which is only useful for Z-buffering (there is no visible size difference).

hud

hud:meter:font, hud:meter:unit, hud:model, and hud:text all inherit from this.

Offset Type Variable Description
0x00 Vector3 loc Position
0x0C Vector3 size Size

hud:meter

hud:meter:font and hud:meter:unit both inherit from this.

Offset Type Variable Description
0x18 float start_value
0x1C float min_value
0x20 float max_value
0x24 float increment_time
0x28 float decrement_time
0x2C AssetID (Sound) sound.start_increment
0x30 AssetID (Sound) sound.increment
0x34 AssetID (Sound) sound.start_decrement
0x38 AssetID (Sound) sound.decrement

hud:model

hud:model
Version 1
Hash 0xFF5691D2
Games used Battle For Bikini Bottom
The SpongeBob SquarePants Movie
Offset Type Description
0x18 AssetID (Model) model - It needs to be a hash of the model's name WITHOUT THE .dff or else it won't play the spinning animation for some reason

hud:text

hud:text
Version 1
Hash 0x687ED0B0
Games used Battle For Bikini Bottom
The SpongeBob SquarePants Movie
The Incredibles
Offset Type Description
0x18 AssetID (game_object:text_box) text_box
0x1C AssetID (Text) text - Default text

hud:meter:font

hud:meter:font
Version 3
Hash 0x8B3E732F
Games used Battle For Bikini Bottom
The SpongeBob SquarePants Movie
Offset Type Description
0x3C uint font.id
  • 0 - Default (SpongeBob font)
  • 1 - Arial (Copyright screen)
  • 2 - System (Debug screen)
  • 3 - Numbers (HUD)
0x40 int font.justify
0x44 float font.w
0x48 float font.h
0x4C float font.space
0x50 float font.drop_x - Shadow X offset
0x54 float font.drop_y - Shadow Y offset
0x58 Color font.c - Color
0x5C Color font.drop_c - Shadow color
0x60 char counter_mode
0x61 char pad1 - null
0x62 char pad2 - null
0x63 char pad3 - null

hud:meter:unit

hud:meter:unit
Version 3
Hash 0x8D40B9AC
Games used Battle For Bikini Bottom
The SpongeBob SquarePants Movie
Offset Type Description
0x3C AssetID (Model) model[0].id - Empty model ID. Needs to be a hash of the model's name WITHOUT THE .dff or else it won't play the animation for some reason
0x40 Vector3 model[0].loc - Offset position of the empty units.
0x4C Vector3 model[0].size - Scale of the empty units. (Multiplied by size in HUD header)
0x58 AssetID (Model) model[1].id - Full model ID. Needs to be a hash of the model's name WITHOUT THE .dff or else it won't play the animation for some reason
0x5C Vector3 model[1].loc - Offset position of the full units.
0x68 Vector3 model[1].size - Scale of the full units. (Multiplied by size in HUD header)
0x74 Vector3 offset - How far away each unit is from each other.
0x80 uint fill_forward - Whether to fill in the meter forwards or backwards.
  • 0 - Right to Left
  • 1 - Left to Right (default)