Returns information about a gem added to a socket. If the given socket contains a new gem (one that has been placed in the UI, but not yet confirmed for permanently socketing into the item), returns information for that gem. If the socket is empty or has a permanently socketed gem but no new gem, returns nil.

Only returns valid information when the Item Socketing UI is open (i.e. between the SOCKET_INFO_UPDATE and SOCKET_INFO_CLOSE events).


See also Socketing functions.

Signature:

name, texture, matches = GetNewSocketInfo(index)

Arguments:

Returns:

  • name - Name of the gem added to the socket (string)
  • texture - Path to an icon texture for the gem added to the socket (string)
  • matches - 1 if the gem matches the socket's color; otherwise nil (1nil)