// Token: 0x06002A20 RID: 10784 RVA: 0x0009C230 File Offset: 0x0009A430
    public GameObject AddItemTitle(global::ItemDataBlock item, float aboveSpace)
    {
        float      contentHeight = this.GetContentHeight();
        GameObject gameObject    = global::NGUITools.AddChild(this.addParent, this.itemTitlePrefab);

        gameObject.GetComponentInChildren <global::UILabel>().text = item.name;
        global::UITexture componentInChildren = gameObject.GetComponentInChildren <global::UITexture>();

        componentInChildren.material = componentInChildren.material.Clone();
        componentInChildren.material.Set("_MainTex", item.GetIconTexture());
        gameObject.transform.SetLocalPositionY(-(contentHeight + aboveSpace));
        return(gameObject);
    }
    // Token: 0x060028E8 RID: 10472 RVA: 0x00095C10 File Offset: 0x00093E10
    public GameObject AddItemTitle(global::ItemDataBlock itemdb, global::IInventoryItem itemInstance = null, float aboveSpace = 0f)
    {
        float      contentHeight = this.GetContentHeight();
        GameObject gameObject    = global::NGUITools.AddChild(this.addParent, this.itemTitlePrefab);

        gameObject.GetComponentInChildren <global::UILabel>().text = ((itemInstance == null) ? itemdb.name : itemInstance.toolTip);
        global::UITexture componentInChildren = gameObject.GetComponentInChildren <global::UITexture>();

        componentInChildren.material = componentInChildren.material.Clone();
        componentInChildren.material.Set("_MainTex", itemdb.GetIconTexture());
        componentInChildren.color = ((itemInstance == null || !itemInstance.IsBroken()) ? Color.white : Color.red);
        gameObject.transform.SetLocalPositionY(-(contentHeight + aboveSpace));
        return(gameObject);
    }