Ejemplo n.º 1
0
    private void SetGuildMark()
    {
        for (int i = 0; i < this.m_nlbWarList.Count; i++)
        {
            UIListItemContainer item = this.m_nlbWarList.GetItem(i);
            if (!(item == null))
            {
                GUILDWAR_MATCH_INFO gUILDWAR_MATCH_INFO = item.Data as GUILDWAR_MATCH_INFO;
                if (gUILDWAR_MATCH_INFO != null)
                {
                    UIButton[] componentsInChildren = item.GetComponentsInChildren <UIButton>();
                    if (gUILDWAR_MATCH_INFO.SUB_INFO.i64GuildID[0] == NrTSingleton <NewGuildManager> .Instance.GetGuildID() || gUILDWAR_MATCH_INFO.SUB_INFO.i64GuildID[1] == NrTSingleton <NewGuildManager> .Instance.GetGuildID())
                    {
                        NrTSingleton <FormsManager> .Instance.AttachEffectKey("FX_UI_GUILDMARK", componentsInChildren[0], componentsInChildren[0].GetSize());
                    }
                }
                DrawTexture[] componentsInChildren2 = item.GetComponentsInChildren <DrawTexture>();
                for (int j = 0; j < componentsInChildren2.Length; j++)
                {
                    if (componentsInChildren2[j].data != null)
                    {
                        long num = (long)componentsInChildren2[j].data;
                        if (num > 0L)
                        {
                            string guildPortraitURL = NrTSingleton <NkCharManager> .Instance.GetGuildPortraitURL(num);

                            WebFileCache.RequestImageWebFile(guildPortraitURL, new WebFileCache.ReqTextureCallback(this.ReqWebImageCallback), componentsInChildren2[j]);
                        }
                    }
                }
            }
        }
    }
Ejemplo n.º 2
0
    private void SetGuildMark()
    {
        for (int i = 0; i < this.m_nlbDeclareWarList.Count; i++)
        {
            UIListItemContainer uIListItemContainer  = this.m_nlbDeclareWarList.GetItem(i) as UIListItemContainer;
            DrawTexture[]       componentsInChildren = uIListItemContainer.GetComponentsInChildren <DrawTexture>();
            for (int j = 0; j < componentsInChildren.Length; j++)
            {
                DeclareWarGuildMarkData declareWarGuildMarkData = (DeclareWarGuildMarkData)componentsInChildren[j].data;
                if (declareWarGuildMarkData.i64GuildID != 0L)
                {
                    string guildPortraitURL = NrTSingleton <NkCharManager> .Instance.GetGuildPortraitURL(declareWarGuildMarkData.i64GuildID);

                    WebFileCache.RequestImageWebFile(guildPortraitURL, new WebFileCache.ReqTextureCallback(this.ReqWebImageCallback), componentsInChildren[j]);
                }
            }
        }
    }