示例#1
0
 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;
     }
 }
示例#2
0
 public static void Hide()
 {
     if (m_Instance != null)
     {
         Gumps.Destroy(m_Instance);
     }
     m_Instance = null;
 }
示例#3
0
 public static void Hide()
 {
     if (m_Instance != null)
     {
         Gumps.Destroy(m_Instance);
     }
     m_Instance = null;
 }
示例#4
0
 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;
     }
 }