New card UI, new visual config, new card definitions, new working editor window for authoring!

This commit is contained in:
Michal Pikulski
2025-11-05 23:50:15 +01:00
parent 0dc3f3e803
commit 50c0a12391
65 changed files with 2784 additions and 12389 deletions

View File

@@ -16,6 +16,13 @@ namespace AppleHills.Data.CardSystem
[Header("Basic Info")]
public string Name;
[Tooltip("Use a custom file name instead of the card name")]
public bool UseCustomFileName = false;
[Tooltip("Custom file name (only used if UseCustomFileName is true)")]
public string CustomFileName = "";
[TextArea(3, 5)]
public string Description;
public CardRarity Rarity;
@@ -34,29 +41,6 @@ namespace AppleHills.Data.CardSystem
{
return new CardData(this);
}
/// <summary>
/// Gets the background color for this card based on its zone
/// </summary>
public Color GetBackgroundColor()
{
// Colors based on zone
switch (Zone)
{
case CardZone.AppleHills:
return new Color(0.8f, 0.9f, 0.8f); // Light green
case CardZone.Quarry:
return new Color(0.85f, 0.8f, 0.7f); // Sandy brown
case CardZone.Forest:
return new Color(0.6f, 0.8f, 0.6f); // Forest green
case CardZone.Mountain:
return new Color(0.7f, 0.7f, 0.9f); // Bluish
case CardZone.Beach:
return new Color(0.9f, 0.85f, 0.7f); // Sandy yellow
default:
return Color.white;
}
}
public override bool Equals(object obj)
{