コード例 #1
0
 public void updateUI(string uid, string server, string guildName, float curBoll, float MaxBoll)
 {
     this.uid       = uid;
     this.server    = server;
     this.guildName = guildName;
     this.selfCurbo = curBoll;
     this.selfMaxBo = MaxBoll;
     setTitle(Language("GuildArea_56", guildName + "." + server));
     inspireSample   = GuildFightSampleManager.Instance().getSampleBySid <GuildBuffSample> (GuildFightSampleManager.INSPIRE_SID);
     wishSample      = GuildFightSampleManager.Instance().getSampleBySid <GuildBuffSample> (GuildFightSampleManager.WISH_SID);
     challengeSample = GuildFightSampleManager.Instance().getSampleBySid <GuildFightChallengeSample> (GuildFightSampleManager.CHALLENGE_SID);
     if (uid == GuildManagerment.Instance.getGuild().uid)
     {
         type = SELF;
     }
     else
     {
         type = OTHER;
         bloodCtrl.updateValue(selfCurbo, selfMaxBo);
     }
     getAreaInfo(uid, server);
 }
コード例 #2
0
 public void initializeInfo(GuildArea _data)
 {
     this.data = _data;
     if (this.data == null)
     {
         buttonWish.disableButton(true);
         buttonWish.textLabel.effectColor = new Color(0.22f, 0.22f, 0.22f);
         buttonInspire.disableButton(true);
         buttonInspire.textLabel.effectColor = new Color(0.22f, 0.22f, 0.22f);
     }
     else
     {
         buttonWish.disableButton(false);
         buttonInspire.disableButton(false);
     }
     inspireSample       = GuildFightSampleManager.Instance().getSampleBySid <GuildBuffSample>(GuildFightSampleManager.INSPIRE_SID);
     wishSample          = GuildFightSampleManager.Instance().getSampleBySid <GuildBuffSample>(GuildFightSampleManager.WISH_SID);
     inspireXiaohao.text = LanguageConfigManager.Instance.getLanguage("GuildArea_97", inspireSample.getExpends().ToString());
     inspireJiangli.text = inspireSample.getRewardDesString();
     inspireXiaoguo.text = LanguageConfigManager.Instance.getLanguage("GuildArea_99") + "+" + ((data == null ? 0 : data.inspireNum) * inspireSample.getEffect()[0]) + "%" + "[3A9663]+" + inspireSample.getEffect()[0] + "%[-]";
     wishXiaohao.text    = LanguageConfigManager.Instance.getLanguage("GuildArea_97", wishSample.getExpends().ToString());
     wishJiangli.text    = inspireSample.getRewardDesString();
     wishXiaoguo.text    = LanguageConfigManager.Instance.getLanguage("GuildArea_98") + "+" + ((data == null ? 0 : data.wishNum) * wishSample.getEffect()[0]) + "%" + "[3A9663]+" + wishSample.getEffect()[0] + "%[-]";
 }