private void On_Guild_Guild_Select(CUIEvent uiEvent) { int selectedIndex = uiEvent.m_srcWidget.GetComponent <CUIListScript>().GetSelectedIndex(); GuildInfo guildInfoByIndex = this.m_Model.GetGuildInfoByIndex(selectedIndex); if (guildInfoByIndex != null) { CUIHttpImageScript component = this.m_form.GetWidget(34).GetComponent <CUIHttpImageScript>(); component.SetImageUrl(CGuildHelper.GetHeadUrl(guildInfoByIndex.chairman.stBriefInfo.szHeadUrl)); MonoSingleton <NobeSys> .GetInstance().SetNobeIcon(this.m_form.GetWidget(41).GetComponent <Image>(), CGuildHelper.GetNobeLevel(guildInfoByIndex.chairman.stBriefInfo.uulUid, guildInfoByIndex.chairman.stBriefInfo.stVip.level), false); MonoSingleton <NobeSys> .GetInstance().SetHeadIconBk(this.m_form.GetWidget(40).GetComponent <Image>(), CGuildHelper.GetNobeHeadIconId(guildInfoByIndex.chairman.stBriefInfo.uulUid, guildInfoByIndex.chairman.stBriefInfo.stVip.headIconId)); this.m_form.GetWidget(10).GetComponent <Text>().text = guildInfoByIndex.briefInfo.sBulletin; this.m_form.GetWidget(11).GetComponent <Text>().text = guildInfoByIndex.chairman.stBriefInfo.sName; this.m_form.GetWidget(39).GetComponent <Text>().text = Singleton <CTextManager> .GetInstance().GetText("Common_Level_Format", new string[] { guildInfoByIndex.chairman.stBriefInfo.dwLevel.ToString() }); Image component2 = this.m_form.GetWidget(46).GetComponent <Image>(); Text component3 = this.m_form.GetWidget(47).GetComponent <Text>(); Text component4 = this.m_form.GetWidget(48).GetComponent <Text>(); component2.SetSprite(CGuildHelper.GetGradeIconPathByRankpointScore(guildInfoByIndex.RankInfo.totalRankPoint), this.m_form, true, false, false, false); component3.text = CGuildHelper.GetGradeName(guildInfoByIndex.RankInfo.totalRankPoint); component4.text = Singleton <CTextManager> .GetInstance().GetText("Guild_Profit_Desc", new string[] { CGuildHelper.GetCoinProfitPercentage((int)guildInfoByIndex.briefInfo.bLevel).ToString() }); } }