static void Postfix(ItemDrop.ItemData item, UITooltip tooltip) { if (!modEnabled.Value || !IsDoorKey(item)) { return; } tooltip.Set(string.Format(keyName.Value, GetDoorName(item.m_crafterName)), tooltip.m_text); }
public static bool Prefix(ItemDrop.ItemData item, UITooltip tooltip) { string tooltipText; if (item.IsEquipable() && !item.m_equiped && Player.m_localPlayer != null && Player.m_localPlayer.HasEquipmentOfType(item.m_shared.m_itemType) && Input.GetKey(KeyCode.LeftControl)) { var otherItem = Player.m_localPlayer.GetEquipmentOfType(item.m_shared.m_itemType); tooltipText = item.GetTooltip() + $"\n\n<color=#AAA><i>Currently Equipped:</i></color>\n<size=18>{otherItem.GetDecoratedName()}</size>\n" + otherItem.GetTooltip(); } else { tooltipText = item.GetTooltip(); } tooltip.Set(item.GetDecoratedName(), tooltipText); return(false); }
// Token: 0x0600052D RID: 1325 RVA: 0x0002BE58 File Offset: 0x0002A058 private void CreateItemTooltip(ItemDrop.ItemData item, UITooltip tooltip) { tooltip.Set(item.m_shared.m_name, item.GetTooltip()); }
public static bool Prefix(ItemDrop.ItemData item, UITooltip tooltip) { tooltip.Set(item.GetDecoratedName(), item.GetTooltip()); return(false); }