コード例 #1
0
ファイル: GuildMemberWnd.cs プロジェクト: atom-chen/tianyu
 void SelectMember(GuildMemberData data, bool select)
 {
     if (select)
     {
         if (data.memberID == GameCenter.mainPlayerMng.MainPlayerInfo.ServerInstanceID)
         {
             return;                                                                                     //不能操作自己
         }
         if (btnParent != null)
         {
             btnParent.SetActive(true);
         }
         if (GameCenter.guildMng.MyGuildInfo != null)
         {
             GuildMemPosition myPos = GameCenter.guildMng.MyGuildInfo.MyPosition;
             if (btnUpPosition != null)
             {
                 btnUpPosition.isEnabled = (myPos == GuildMemPosition.CHAIRMAN && data.memberPosition != GuildMemPosition.VICECHAIRMAN);
             }
             if (btnDownPosition != null)
             {
                 btnDownPosition.isEnabled = (myPos == GuildMemPosition.CHAIRMAN && data.memberPosition != GuildMemPosition.MEMBER);
             }
             if (btnFourceOut != null)
             {
                 btnFourceOut.isEnabled = (myPos != GuildMemPosition.MEMBER);
             }
             if (btnGiveLeader != null)
             {
                 btnGiveLeader.isEnabled = (myPos == GuildMemPosition.CHAIRMAN);
             }
         }
         curSelectMember = data;
     }
 }
コード例 #2
0
 /// <summary>
 /// 公会成员
 /// </summary>
 /// <param name="info"></param>
 public GuildMemberData(guild_member_info info)
 {
     memberID       = (int)info.uid;
     memberLv       = (int)info.lev;
     memberName     = info.name;
     memberPosition = (GuildMemPosition)info.position;
     donate         = (int)info.tribute;
     allDonate      = info.all_tribute;
     recentTime     = info.last_login_time;
     fightValue     = info.fight_score;
 }