示例#1
0
    private void DisplayCardDetail()
    {
        Int32 num = (Int32)this.count[this.currentCardId];

        if (num > 0)
        {
            this.cardInfoContentGameObject.SetActive(true);
            this.ShowCardDetailHudAmount(num);
            this.cardIdLabel.text = "No" + (this.currentCardId + 1).ToString("0#");
            FF9UIDataTool.DisplayCard(this.GetCardInfo(this.currentCardId, this.currentCardOffset), this.cardDetailHudList[0], false);
            this.cardNameLabel.text = FF9TextTool.CardName(this.currentCardId);
            if (num > 1)
            {
                this.cardNumberGameObject.SetActive(true);
                this.currentCardNumberLabel.text = (this.currentCardOffset + 1).ToString();
                this.totalCardNumberLabel.text   = num.ToString();
                for (Int32 i = 1; i < Math.Min(num, 5); i++)
                {
                    FF9UIDataTool.DisplayCard(this.GetCardInfo(this.currentCardId, 0), this.cardDetailHudList[i], true);
                }
            }
            else
            {
                this.cardNumberGameObject.SetActive(false);
            }
        }
        else
        {
            this.cardInfoContentGameObject.SetActive(false);
        }
    }
示例#2
0
文件: CardUI.cs 项目: ArtReeX/memoria
    private void DisplayCardDetail()
    {
        Int32 num = (Int32)this.count[this.currentCardId];

        if (num > 0)
        {
            this.cardInfoContentGameObject.SetActive(true);
            this.ShowCardDetailHudNumber(num);
            FF9UIDataTool.DisplayCard(QuadMistDatabase.MiniGame_GetCardInfoPtr(this.currentCardId, this.offset[this.currentCardId]), this.cardDetailHudList[0], false);
            this.cardNameLabel.text = FF9TextTool.CardName(this.currentCardId);
            if (num > 1)
            {
                this.cardNumberGameObject.SetActive(true);
                this.currentCardNumberLabel.text = (this.offset[this.currentCardId] + 1).ToString();
                this.totalCardNumberLabel.text   = num.ToString();
                for (Int32 i = 1; i < Math.Min(num, 5); i++)
                {
                    FF9UIDataTool.DisplayCard(QuadMistDatabase.MiniGame_GetCardInfoPtr(this.currentCardId, 0), this.cardDetailHudList[i], true);
                }
            }
            else
            {
                this.cardNumberGameObject.SetActive(false);
            }
        }
        else
        {
            this.cardInfoContentGameObject.SetActive(false);
        }
    }