Sets a Texture object to display the icon of one of the player's bags. Adapts the square item icon texture to fit within the circular "portrait" frames used in many default UI elements.


See also Container functions.

Signature:

SetBagPortraitTexture(texture, container)

Arguments:

  • texture - A Texture object (table)
  • container - Index of one of the player's bags or other containers (number, containerID)

Examples:

-- Set a texture to the rounded icon of the player's first bag (not the backpack)
SetBagPortraitTexture(MyBagTexture, 1)