上传UI信息和替换,修正战斗页面的UI处理

This commit is contained in:
YiHan0621
2025-09-26 14:32:52 +08:00
parent 25cf205770
commit eba34c083a
29 changed files with 615 additions and 672 deletions

View File

@@ -45,14 +45,14 @@ namespace TcgEngine.Client
return;
CardbackData cb = CardbackData.Get(player.cardback);
string targetDeckPath = cb != null && !string.IsNullOrEmpty(cb.deck_path) ? cb.deck_path : "Cardbacks/deck_silver.png";
string targetDeckPath = cb != null && !string.IsNullOrEmpty(cb.deck_path) ? cb.deck_path : "Cardbacks/Load_card_group.png";
if (deck_render != null && (deck_render.sprite == null || prev_deck_path != targetDeckPath))
{
Sprite sprite = SpriteLoader.Get()?.LoadSprite(targetDeckPath);
if (sprite != null)
{
deck_render.sprite = sprite;
deck_render.gameObject.transform.localScale = Vector3.one * 0.5f;
deck_render.gameObject.transform.localScale = Vector3.one;
prev_deck_path = targetDeckPath;
}
else