コード例 #1
0
 public static void Display(object o)
 {
     GObjectProperties.Hide();
     if (o is Item)
     {
         Item obj = (Item)o;
         ObjectPropertyList propertyList = obj.PropertyList;
         if (propertyList != null)
         {
             GObjectProperties.m_Instance = new GObjectProperties(1020000 + obj.ID, o, propertyList);
         }
     }
     else if (o is Mobile)
     {
         Mobile             mobile       = (Mobile)o;
         ObjectPropertyList propertyList = mobile.PropertyList;
         if (propertyList != null)
         {
             GObjectProperties.m_Instance = new GObjectProperties(-1, (object)mobile, propertyList);
         }
     }
     if (GObjectProperties.m_Instance == null)
     {
         return;
     }
     Gumps.Desktop.Children.Add((Gump)GObjectProperties.m_Instance);
     GObjectProperties.m_Instance.m_WorldTooltip = true;
 }
コード例 #2
0
 public static void Hide()
 {
     if (GObjectProperties.m_Instance != null)
     {
         Gumps.Destroy((Gump)GObjectProperties.m_Instance);
     }
     GObjectProperties.m_Instance = (GObjectProperties)null;
 }