Setup more of the card system stuff

This commit is contained in:
Michal Pikulski
2025-10-17 16:17:50 +02:00
committed by Michal Adam Pikulski
parent b1df36d48c
commit 80005e6b7d
8 changed files with 1029 additions and 1703 deletions

View File

@@ -3,7 +3,7 @@ using AppleHills.Data.CardSystem;
using Core;
using Data.CardSystem;
using Pixelplacement;
using TMPro; // Added TMP namespace
using TMPro;
using UnityEngine;
using UnityEngine.UI;
@@ -21,7 +21,7 @@ namespace AppleHills.UI.CardSystem
[SerializeField] private Button changeClothesButton;
[Header("UI Elements")]
[SerializeField] private TextMeshProUGUI boosterCountText; // Changed to TextMeshProUGUI
[SerializeField] private BoosterNotificationDot boosterNotificationDot; // Changed to BoosterNotificationDot
[SerializeField] private CanvasGroup canvasGroup;
private CardAlbumUI _cardAlbumUI;
@@ -91,10 +91,10 @@ namespace AppleHills.UI.CardSystem
int boosterCount = _cardManager.GetBoosterPackCount();
// Update booster count text
if (boosterCountText != null)
// Update booster count text using the notification dot
if (boosterNotificationDot != null)
{
boosterCountText.text = $"Boosters: {boosterCount}";
boosterNotificationDot.SetCount(boosterCount);
}
// Enable/disable open booster button based on availability