Question Retrieve ItemDefinition from InterfaceComponent?

Discussion in 'Developer Support' started by Conmiro, Jul 23, 2016.

  1. I was wondering if there's a way to get the item definition of the item being portrayed by the texture in an InterfaceComponent?

    For example, when you search for an item in the G.E., the item you select is displayed in a small box in the offer interface. I want to get the item that is being shown there. I can't just use the name because some names refer to multiple items (think "Boots").

    I thought maybe it would be getContainedItem(), but that does not work for this instance.


    ====Solution====

    I was using it incorrectly. It does not retrieve the item based on its Texture ID. I had the wrong component selected, thus why it was returning null. There is another component overlaid (or underneath) that contains the actual "ContainedItem".
     
    #1 Conmiro, Jul 23, 2016
    Last edited: Jul 23, 2016

Share This Page

Loading...