コード例 #1
0
ファイル: BlacklistWndUI.cs プロジェクト: Pircs/Fishing-1
    public void UpdateBlacklistDate()
    {
        if (m_BaseWndObject == null)
        {
            return;
        }
        if (m_BaseWndObject.activeSelf != true)
        {
            return;
        }
        if (PlayerRole.Instance.RelationManager.GetBlackMap() == null)
        {
            return;
        }
        ClearGridChild();
        m_BlackList.Clear();
        byte Idx = 0;

        foreach (KeyValuePair <uint, RelationRole> map in PlayerRole.Instance.RelationManager.GetBlackMap())
        {
            ViewWndUI item = new ViewWndUI(ItemType.Blacklist_Item, null, map.Value);
            item.Init(m_ScrollItem);
            m_Gird[Idx].AddChild(item.m_BaseTrans);
            item.ResetLocalScale();
            m_BlackList.Add(item);
            if ((++Idx) > 2)
            {
                Idx = 0;
            }
        }
    }
コード例 #2
0
    public void UpateQueryListDate()
    {
        if (m_BaseWndObject.activeSelf != true)
        {
            return;
        }
        ClearGird();
        m_SearchList.Clear();
        m_ScrollTrans.localPosition = new Vector3(0, -45f, 0);
        m_UIPanel.clipOffset        = new Vector2(0, -4.5f);
        for (byte i = 0; i < PlayerRole.Instance.QueryManager.GetQueryList().Count; ++i)
        {
            ViewWndUI item = new ViewWndUI(ItemType.Search_Item, PlayerRole.Instance.QueryManager.GetQueryList()[i], null);
            item.Init(m_ScrollItem);
            m_Gird[i % 3].AddChild(item.m_BaseTrans);
            item.ResetLocalScale();
            m_SearchList.Add(item);
        }

        //m_CDCurTime = 0;
        //m_bCDState = false;
        //m_UISearchButton.isEnabled = true;
    }