Release Candidate 2 for v1.0.0
- Add custom icons for storage items (Card Binder, Binder Sheet) - Add mod preview image for in-game mod manager - Update deploy script to copy assets folder - Icons generated with Z-Image using vinyl toy style to match game aesthetic 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
8a45d26515
commit
aea9f81d1f
BIN
assets/binder_sheet.png
Normal file
BIN
assets/binder_sheet.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 58 KiB |
BIN
assets/card_binder.png
Normal file
BIN
assets/card_binder.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 54 KiB |
12
deploy.sh
12
deploy.sh
@ -44,7 +44,7 @@ mkdir -p "$MOD_DIR"
|
|||||||
mkdir -p "$MOD_DIR/CardSets"
|
mkdir -p "$MOD_DIR/CardSets"
|
||||||
|
|
||||||
# Copy mod files
|
# 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 "bin/$BUILD_CONFIG/netstandard2.1/$MOD_NAME.dll" "$MOD_DIR/"
|
||||||
cp "info.ini" "$MOD_DIR/"
|
cp "info.ini" "$MOD_DIR/"
|
||||||
|
|
||||||
@ -53,8 +53,16 @@ if [[ -f "preview.png" ]]; then
|
|||||||
cp "preview.png" "$MOD_DIR/"
|
cp "preview.png" "$MOD_DIR/"
|
||||||
fi
|
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
|
# Copy card sets
|
||||||
echo "[4/4] Copying card sets..."
|
echo "[5/5] Copying card sets..."
|
||||||
if [[ -d "CardSets" ]]; then
|
if [[ -d "CardSets" ]]; then
|
||||||
for set_dir in CardSets/*/; do
|
for set_dir in CardSets/*/; do
|
||||||
set_name=$(basename "$set_dir")
|
set_name=$(basename "$set_dir")
|
||||||
|
|||||||
BIN
preview.png
Normal file
BIN
preview.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.2 MiB |
@ -339,6 +339,25 @@ namespace TradingCardMod
|
|||||||
return;
|
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)
|
// Create Binder Sheet (9 slots, stores cards only)
|
||||||
_binderItem = StorageHelper.CreateCardStorage(
|
_binderItem = StorageHelper.CreateCardStorage(
|
||||||
BINDER_SHEET_ITEM_ID,
|
BINDER_SHEET_ITEM_ID,
|
||||||
@ -347,7 +366,8 @@ namespace TradingCardMod
|
|||||||
9,
|
9,
|
||||||
0.1f, // weight
|
0.1f, // weight
|
||||||
7500, // value
|
7500, // value
|
||||||
new List<Tag> { _tradingCardTag } // Only trading cards allowed
|
new List<Tag> { _tradingCardTag }, // Only trading cards allowed
|
||||||
|
binderSheetIcon
|
||||||
);
|
);
|
||||||
|
|
||||||
// Add BinderSheet and CardBinderContent tags to the binder sheet item itself
|
// Add BinderSheet and CardBinderContent tags to the binder sheet item itself
|
||||||
@ -368,7 +388,8 @@ namespace TradingCardMod
|
|||||||
12,
|
12,
|
||||||
1.5f, // weight
|
1.5f, // weight
|
||||||
12500, // value
|
12500, // value
|
||||||
new List<Tag> { _cardBinderContentTag } // Only CardBinderContent tag required
|
new List<Tag> { _cardBinderContentTag }, // Only CardBinderContent tag required
|
||||||
|
cardBinderIcon
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user