diff --git a/assets/binder_sheet.png b/assets/binder_sheet.png new file mode 100644 index 0000000..648a463 Binary files /dev/null and b/assets/binder_sheet.png differ diff --git a/assets/card_binder.png b/assets/card_binder.png new file mode 100644 index 0000000..4b98954 Binary files /dev/null and b/assets/card_binder.png differ diff --git a/deploy.sh b/deploy.sh index f772c7f..5e95a55 100755 --- a/deploy.sh +++ b/deploy.sh @@ -44,7 +44,7 @@ mkdir -p "$MOD_DIR" mkdir -p "$MOD_DIR/CardSets" # Copy mod files -echo "[3/4] Copying mod files..." +echo "[3/5] Copying mod files..." cp "bin/$BUILD_CONFIG/netstandard2.1/$MOD_NAME.dll" "$MOD_DIR/" cp "info.ini" "$MOD_DIR/" @@ -53,8 +53,16 @@ if [[ -f "preview.png" ]]; then cp "preview.png" "$MOD_DIR/" fi +# Copy assets (storage item icons, etc.) +echo "[4/5] Copying assets..." +if [[ -d "assets" ]]; then + mkdir -p "$MOD_DIR/assets" + cp -r assets/* "$MOD_DIR/assets/" + echo " Copied assets folder" +fi + # Copy card sets -echo "[4/4] Copying card sets..." +echo "[5/5] Copying card sets..." if [[ -d "CardSets" ]]; then for set_dir in CardSets/*/; do set_name=$(basename "$set_dir") diff --git a/preview.png b/preview.png new file mode 100644 index 0000000..c160559 Binary files /dev/null and b/preview.png differ diff --git a/src/ModBehaviour.cs b/src/ModBehaviour.cs index 76999fc..56df501 100644 --- a/src/ModBehaviour.cs +++ b/src/ModBehaviour.cs @@ -339,6 +339,25 @@ namespace TradingCardMod return; } + // Load custom icons for storage items + string assetsPath = Path.Combine(_modPath, "assets"); + Sprite? binderSheetIcon = null; + Sprite? cardBinderIcon = null; + + string binderSheetIconPath = Path.Combine(assetsPath, "binder_sheet.png"); + if (File.Exists(binderSheetIconPath)) + { + binderSheetIcon = LoadSpriteFromFile(binderSheetIconPath, BINDER_SHEET_ITEM_ID); + Debug.Log($"[TradingCardMod] Loaded binder sheet icon from {binderSheetIconPath}"); + } + + string cardBinderIconPath = Path.Combine(assetsPath, "card_binder.png"); + if (File.Exists(cardBinderIconPath)) + { + cardBinderIcon = LoadSpriteFromFile(cardBinderIconPath, CARD_BINDER_ITEM_ID); + Debug.Log($"[TradingCardMod] Loaded card binder icon from {cardBinderIconPath}"); + } + // Create Binder Sheet (9 slots, stores cards only) _binderItem = StorageHelper.CreateCardStorage( BINDER_SHEET_ITEM_ID, @@ -347,7 +366,8 @@ namespace TradingCardMod 9, 0.1f, // weight 7500, // value - new List { _tradingCardTag } // Only trading cards allowed + new List { _tradingCardTag }, // Only trading cards allowed + binderSheetIcon ); // Add BinderSheet and CardBinderContent tags to the binder sheet item itself @@ -368,7 +388,8 @@ namespace TradingCardMod 12, 1.5f, // weight 12500, // value - new List { _cardBinderContentTag } // Only CardBinderContent tag required + new List { _cardBinderContentTag }, // Only CardBinderContent tag required + cardBinderIcon ); }