Пример #1
0
    public void SelectFirstLockIcon()
    {
        sdUILapBossLockIcon icon = null;

        foreach (DictionaryEntry item in rkItemList)
        {
            icon = item.Value as sdUILapBossLockIcon;
            break;
        }

        m_SelectUUID = UInt64.MaxValue;
        OnHideBossUI();
        if (btnUnlock)
        {
            btnUnlock.SetActive(false);
        }

        if (icon != null)
        {
            if (icon.GetId() != UInt64.MaxValue)
            {
                icon.SetSelect(true);
                SAbyssLockInfo info = sdActGameMgr.Instance.GetLockInfo(icon.GetId());
                if (info != null)
                {
                    m_SelectUUID = icon.GetId();
                    OnSelectBossSetUI(info);
                    if (btnUnlock)
                    {
                        btnUnlock.SetActive(true);
                    }
                }
            }
        }
    }
Пример #2
0
    public void SetAllRKItemUnSelected()
    {
        foreach (DictionaryEntry info in rkItemList)
        {
            sdUILapBossLockIcon icon = info.Value as sdUILapBossLockIcon;
            icon.SetSelect(false);
        }

        m_SelectUUID = UInt64.MaxValue;
    }
Пример #3
0
    public void RefreshRKItemListPage()
    {
        Hashtable list = null;

        list = sdActGameMgr.Instance.m_LapBossLockInfo;

        int num   = list.Count;
        int count = rkItemList.Count;

        if (num > count)
        {
            num = num - count;
            for (int i = 0; i < num; ++i)
            {
                GameObject tempItem = GameObject.Instantiate(rkItem) as GameObject;
                tempItem.GetComponent <sdUILapBossLockIcon>().index = count;
                tempItem.transform.parent        = rkItem.transform.parent;
                tempItem.transform.localPosition = rkItem.transform.localPosition;
                tempItem.transform.localScale    = rkItem.transform.localScale;
                Vector3 pos = tempItem.transform.localPosition;
                pos.y = pos.y - (152 * count);
                tempItem.transform.localPosition = pos;
                tempItem.GetComponent <sdUILapBossLockIcon>().bSelect = false;
                rkItemList.Add(rkItemList.Count, tempItem.GetComponent <sdUILapBossLockIcon>());
                ++count;
            }
        }

        IDictionaryEnumerator iter = rkItemList.GetEnumerator();

        foreach (DictionaryEntry info in list)
        {
            string key1 = info.Key.ToString();
            if (iter.MoveNext())
            {
                sdUILapBossLockIcon icon = iter.Value as sdUILapBossLockIcon;
                icon.SetIdAndReflashUI(UInt64.Parse(key1));
            }
        }

        while (iter.MoveNext())
        {
            sdUILapBossLockIcon icon = iter.Value as sdUILapBossLockIcon;
            icon.SetIdAndReflashUI(UInt64.MaxValue);
        }

        m_SelectUUID = UInt64.MaxValue;
    }