Example #1
0
        private void SetGuildListItem(CUIListElementScript listElementScript, GuildInfo info)
        {
            Transform  transform  = listElementScript.transform;
            Image      component  = transform.Find("imgIcon").GetComponent <Image>();
            Text       component2 = transform.Find("txtName").GetComponent <Text>();
            Text       component3 = transform.Find("txtMemCnt").GetComponent <Text>();
            GameObject gameObject = transform.Find("imgApplied").gameObject;
            Text       component4 = transform.Find("txtChairmanName").GetComponent <Text>();
            Text       component5 = transform.Find("txtSeasonRankpoint").GetComponent <Text>();
            Text       component6 = transform.Find("txtJoinLimit").GetComponent <Text>();
            string     prefabPath = CUIUtility.s_Sprite_Dynamic_GuildHead_Dir + info.briefInfo.dwHeadId;

            component.SetSprite(prefabPath, this.m_form, true, false, false, false);
            component2.text = info.briefInfo.sName;
            component3.text = info.briefInfo.bMemberNum + "/" + CGuildHelper.GetMaxGuildMemberCountByLevel((int)info.briefInfo.bLevel);
            component4.text = info.chairman.stBriefInfo.sName;
            component5.text = info.chairman.RankInfo.totalRankPoint.ToString();
            component6.text = CGuildHelper.GetGuildJoinLimitText((int)info.briefInfo.LevelLimit, (int)info.briefInfo.GradeLimit, info.briefInfo.dwSettingMask);
            stGuildBriefInfo stBriefInfo = this.m_Model.GetAppliedGuildInfoByUid(info.briefInfo.uulUid).stBriefInfo;

            if (stBriefInfo.uulUid != 0uL)
            {
                gameObject.CustomSetActive(true);
            }
            else
            {
                gameObject.CustomSetActive(false);
            }
        }
 public static bool IsGuildMemberFull()
 {
     return(CGuildHelper.GetGuildMemberCount() >= CGuildHelper.GetMaxGuildMemberCountByLevel(CGuildHelper.GetGuildLevel()));
 }