Ejemplo n.º 1
0
    /// <summary>
    /// 奖励领取回调
    /// </summary>
    /// <param name="result"></param>
    private void OnReceiveBack(bool result)
    {
        receiveButton.disableButton(result);
        reciveCommonButton.disableButton(result);
        buttonMore.disableButton(result);
        PrizeSample[] prizess = data.prizes;
        for (int i = 0; i < prizess.Length; i++)
        {
            if (prizess[i].type == PrizeType.PRIZE_MERIT)
            {
                (fwin as ArenaIntegralAwardWindow).inccc += StringKit.toInt(prizess[i].num) * num;
                //UserManager.Instance.self.merit += StringKit.toInt(prizess[i].num);
            }
        }
        receiveButton.textLabel.text      = LanguageConfigManager.Instance.getLanguage("recharge02");
        reciveCommonButton.textLabel.text = LanguageConfigManager.Instance.getLanguage("recharge02");
        buttonMore.textLabel.text         = LanguageConfigManager.Instance.getLanguage("recharge02");
        int count = ArenaAwardManager.Instance.integralAwardInfos.IndexOf(ArenaAwardManager.Instance.getArenaAwardInfo(data));

        ArenaAwardManager.Instance.integralAwardInfos[count].received = result;
        description.text = LanguageConfigManager.Instance.getLanguage("GuildLuckyNvShen_18") + data.condition + (ArenaAwardManager.Instance.getArenaAwardInfo(data).received ?"(0/1)":"(1/1)");
        if (result)
        {
            TextTipWindow.Show(LanguageConfigManager.Instance.getLanguage("Arena30"));
        }
        else
        {
            MessageWindow.ShowAlert(LanguageConfigManager.Instance.getLanguage(result ? "Arena30" : "Arena31"));
        }
        content.init();
        MaskWindow.UnlockUI();
    }
Ejemplo n.º 2
0
 /// <summary>
 /// 初始化UI
 /// </summary>
 public void initUI( )
 {
     content.init();
     myIntegral           = ArenaManager.instance.finalMyIntergal;
     myIntergalLabel.text = myIntegral.ToString();
     MaskWindow.UnlockUI();
 }