public static void Display(object o) { Hide(); if (o is Item) { Item item = (Item)o; ObjectPropertyList propertyList = item.PropertyList; if (propertyList != null) { m_Instance = new GObjectProperties(0xf9060 + item.ID, o, propertyList); } } else if (o is Mobile) { Mobile mobile = (Mobile)o; ObjectPropertyList propList = mobile.PropertyList; if (propList != null) { m_Instance = new GObjectProperties(-1, mobile, propList); } } if (m_Instance != null) { Gumps.Desktop.Children.Add(m_Instance); m_Instance.m_WorldTooltip = true; } }
public static void Hide() { if (m_Instance != null) { Gumps.Destroy(m_Instance); } m_Instance = null; }
public static void Display(object o) { Hide(); if (o is Item) { Item item = (Item) o; ObjectPropertyList propertyList = item.PropertyList; if (propertyList != null) { m_Instance = new GObjectProperties(0xf9060 + item.ID, o, propertyList); } } else if (o is Mobile) { Mobile mobile = (Mobile) o; ObjectPropertyList propList = mobile.PropertyList; if (propList != null) { m_Instance = new GObjectProperties(-1, mobile, propList); } } if (m_Instance != null) { Gumps.Desktop.Children.Add(m_Instance); m_Instance.m_WorldTooltip = true; } }