Payday 2 Maps

Custom HUD Icons

This will add a custom HUD icon to the game using BeardLib's HUDIconModule.


Shortcut: 'hudiconstweakdata.lua'


XML structure

Single icon texture (One icon per texture)

<HUDIcon id="" texture=""/>

Atlas texture (Multiple icons in one texture)

<HUDIcon id="" texture=""> <texture_rect> <value_node value=""/> <value_node value=""/> <value_node value=""/> <value_node value=""/> </texture_rect> </HUDIcon>

id

The ID for your hud icon. Has to be unique.

texture

The path to your texture file. Needs to be added via AddFiles first.

*HUD icons for special equipment are always 32x32 pixels.


Special Equipment Template Texture

<texture_rect>

Table with pixel coordinates for atlas textures with multiple icons in one texture file.
Has 4 value_node tags nested.

<value_node> #1: Starting pixel on X axis.
<value_node> #2: Starting pixel on Y axis.
<value_node> #3: Width in pixels.
<value_node> #4: height in pixels.