Esempio n. 1
0
        /// <summary>
        /// 初始化
        /// </summary>
        /// <param name="dayX">初始化的累计奖励提示是第几天的(1-28)</param>
        /// <param name="today">今天是第几天</param>
        public void Init(int dayX, int today, int awardId, int count)
        {
            int _dayOffset = dayX - today;

            m_Cell.InitByID(awardId, count);
            m_Cell.SetHightLight(dayX == today);

            m_Cell.SetCheckClaim(_dayOffset < 0);
            m_Cell.SetItemGray(_dayOffset < 0);

            m_Cell.SetText(string.Format(GameUtils.getString("sign_content3"), dayX), null, null);
        }