Ejemplo n.º 1
0
        public void Setup(IPlayerCard card)
        {
            m_cardControlCostLayer.SetActive(true);

            UIPalette.CardTypeColourScheme scheme = UIPalette.Instance.GetCardTypeColorScheme(card.Driver);
            if (card.CardType == PlayerCardType.Damage)
            {
                scheme = UIPalette.Instance.DamageCardColours;
            }
            SetColourScheme(scheme);
            m_card = card;
            if (card.CardType != PlayerCardType.None)
            {
                m_cardTypeLayer.SetActive(true);
                m_cardTypeText.text = card.CardType.ToString();
            }
            else
            {
                m_cardTypeLayer.SetActive(false);
            }

            m_cardName.text        = card.Name;
            m_cardEffects.text     = card.Description;
            m_cardControlCost.text = card.ControlCost.ToString();
            m_cardImage.sprite     = card.CardImage;
            SetFlavourText(card.FlavourText);
        }
Ejemplo n.º 2
0
 private void SetColourScheme(UIPalette.CardTypeColourScheme scheme)
 {
     m_borderGradient.SetColours(scheme.BorderGradientTop, scheme.BorderGradientBottom);
     m_titleGradient.SetColours(scheme.TitleColourTop, scheme.TitleColourBottom);
     m_baseBorder.SetColours(scheme.TitleColourBottom, scheme.TitleColourTop);
     m_titleHighlight.SetColours(scheme.TitleHighlightTop, scheme.TitleHighlightBottom);
     m_numberOwnedBG1.color  = Color.black;
     m_numberOwnedBG2.color  = Color.black;
     m_cardFlavourText.color = scheme.BorderGradientBottom;
     m_cardTypeBG.color      = scheme.BorderGradientBottom;
     m_imageGradient.SetColours(scheme.BorderGradientTop, scheme.BorderGradientBottom);
 }
Ejemplo n.º 3
0
        public void Setup(IPursuitCard card)
        {
            m_cardFlavourText.text = card.Name;
            m_cardControlCostLayer.SetActive(false);

            UIPalette.CardTypeColourScheme scheme = UIPalette.Instance.PursuitCardColours;
            SetColourScheme(scheme);
            m_card = card;

            m_cardTypeLayer.SetActive(false);

            m_cardName.color   = Color.white;
            m_cardName.text    = card.Name;
            m_cardEffects.text = card.Description;
            m_cardImage.sprite = card.CardImage;
            SetFlavourText(card.FlavourText);
        }
Ejemplo n.º 4
0
        public void Setup(IRouteCard card)
        {
            m_cardControlCostLayer.SetActive(false);
            m_flavourTextLayer.SetActive(string.IsNullOrEmpty(card.FlavourText) == false);
            UIPalette.CardTypeColourScheme scheme = UIPalette.Instance.GetCardTypeColorScheme(card.CardType);
            SetColourScheme(scheme);
            m_card = card;
            if (card.CardType != RouteCardType.None)
            {
                m_cardTypeLayer.SetActive(true);
                m_cardTypeText.text = card.CardType.ToString();
            }
            else
            {
                m_cardTypeLayer.SetActive(false);
            }

            m_cardName.text    = card.Name;
            m_cardName.color   = Color.white;
            m_cardEffects.text = card.Description;
            m_cardImage.sprite = card.CardImage;
            SetFlavourText(card.FlavourText);
        }