public void Internal_SetToolTip(ItemDataBlock itemdb, IInventoryItem item) { this.ClearContents(); if (itemdb == null) { this.SetVisible(false); } else { this.RepositionAtCursor(); itemdb.PopulateInfoWindow(this, item); this._background.transform.localScale = new Vector3(250f, this.GetContentHeight() + Mathf.Abs((float)(this.addParent.transform.localPosition.y * 2f)), 1f); this.SetVisible(true); } }
public void Internal_SetToolTip(ItemDataBlock itemdb, IInventoryItem item) { this.ClearContents(); if (itemdb == null) { this.SetVisible(false); return; } this.RepositionAtCursor(); itemdb.PopulateInfoWindow(this, item); Transform vector3 = this._background.transform; float contentHeight = this.GetContentHeight(); Vector3 vector31 = this.addParent.transform.localPosition; vector3.localScale = new Vector3(250f, contentHeight + Mathf.Abs(vector31.y * 2f), 1f); this.SetVisible(true); }