Exemple #1
0
        override public void SetData(MTTPageData data)
        {
            base.SetData(data);
            var dt = data as AwardListGoData;

            RankText.text  = dt.Rank.ToString();
            AwardText.text = dt.Award;
        }
Exemple #2
0
        override public void SetData(MTTPageData data)
        {
            base.SetData(data);
            var dt = data as TableListGoData;

            NumText.text         = dt.Num == 0? "决赛桌": dt.Num.ToString();
            GamersCountText.text = dt.gamersCount.ToString();
            MinMaxText.text      = dt.Min + "/" + dt.Max;
        }
Exemple #3
0
        override public void SetData(MTTPageData data)
        {
            base.SetData(data);
            var dt = data as BBLevelListGoData;

            LevelText.text = dt.Level.ToString();
            int SB = dt.BB / 2;

            SBBBText.text = SetNumber(SB) + "/" + SetNumber(dt.BB);
            AnteText.text = dt.Ante.ToString();

            if (dt.Level - 1 == GameData.Shared.BlindLv)
            {
                SBBBText.color = AnteText.color = new Color(24 / 255, 1, 1);
            }
            else
            {
                SBBBText.color = AnteText.color = new Color(1, 1, 1, 0.4f);
            }
        }
Exemple #4
0
            protected override void UpdateViewsHolder(MTTCellView newOrRecycled)
            {
                MTTPageData model = _Params.rowData[newOrRecycled.itemIndex];

                newOrRecycled.SetData(model);
            }
Exemple #5
0
 public virtual void SetData(MTTPageData data)
 {
     _data          = data;
     _Image.enabled = data.needbg;
 }