keyword + animation
This commit is contained in:
@@ -59,7 +59,6 @@ namespace Continentis.MainGame.Card
|
||||
|
||||
List<string> allKeywords = new List<string>();
|
||||
allKeywords.AddRange(cardLogic.contentSubmodule.keywords);
|
||||
allKeywords.AddRange(cardLogic.contentSubmodule.hintKeywords);
|
||||
keywordList.Enable(allKeywords);
|
||||
}
|
||||
|
||||
@@ -99,10 +98,11 @@ namespace Continentis.MainGame.Card
|
||||
|
||||
if (string.IsNullOrEmpty(collectionName)) collectionName = "Basic";
|
||||
CardViewCollection collection = MainGameManager.Instance.basePrefabs.cardViewCollections[collectionName];
|
||||
List<string> elementTags = cardLogic.GetElementTags();
|
||||
string firstElementTag = elementTags.Count > 0 ? elementTags[0] : "Default";
|
||||
if (!collection.cardViews.ContainsKey(firstElementTag)) firstElementTag = "Default";
|
||||
cardBackground.sprite = collection.cardViews[firstElementTag].background;
|
||||
|
||||
List<string> layoutTags = cardLogic.cardData.cardLayoutTags; //TODO:后续可扩展为动态布局标签
|
||||
string firstLayoutTag = layoutTags.Count > 0 ? layoutTags[0] : "Default";
|
||||
if (!collection.cardViews.ContainsKey(firstLayoutTag)) firstLayoutTag = "Default";
|
||||
cardBackground.sprite = collection.cardViews[firstLayoutTag].background;
|
||||
|
||||
cardTypeText.text = cardLogic.contentSubmodule.cardType.ToString();
|
||||
|
||||
|
||||
@@ -248,7 +248,7 @@ namespace Continentis.MainGame.Card
|
||||
return;
|
||||
}
|
||||
|
||||
if (!cardLogic.HasTag("TargetSelf"))
|
||||
if (!cardLogic.HasKeyword("TargetSelf"))
|
||||
{
|
||||
if (!validTargets.Contains(hoveringCharacter))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user