Пример #1
0
 ///     Check if the Item List Tab needs to be updated or closed
 public static void CheckItemListTab()
 {
     if (!Instance.itemListTabExists)
     {
         return;
     }
     if (!PlayerManager.LocalPlayerScript || !PlayerManager.LocalPlayerScript.IsInReach(UITileList.GetListedItemsLocation(), false))
     {
         Instance.HideTab(ClientTabType.ItemList);
         return;
     }
     UITileList.UpdateItemPanelList();
 }
Пример #2
0
        /// <summary>
        ///     Check if the Item List Tab needs to be updated or closed
        /// </summary>
        public static void CheckItemListTab()
        {
            if (!Instance.itemListTabExists)
            {
                return;
            }

            UITileList.UpdateItemPanelList();
            if (!PlayerManager.LocalPlayerScript.IsInReach(UITileList.GetListedItemsLocation()))
            {
                HideItemListTab();
            }
        }
Пример #3
0
        /// <summary>
        /// Check if the Item List Tab needs to be updated or closed
        /// </summary>
        public static void CheckItemListTab()
        {
            if (!Instance.itemListTabExists)
            {
                return;
            }

            UITileList.UpdateItemPanelList();
            //Slightly lower reach because distance from player to tile is shorter than from player to object. (Ends up allowing 2 floor tile reach otherwise)
            if (!PlayerManager.LocalPlayerScript.IsInReach(UITileList.GetListedItemsLocation(), 1.5f))
            {
                HideItemListTab();
            }
        }