Outline craft recipes green when ready and red when level-locked.
Makes station recipe grids show at a glance which crafts can start now.
@@ -356,6 +356,13 @@ export function initCrafting ({
356
356
if (selected)
357
357
{ cell.classList.add("selected"); }
358
358
359
const skill = stationSkillLevel();
360
const minLevel = recipe.minSkillLevel | 0 || 1;
361
if ((skill | 0) < minLevel)
362
{ cell.classList.add("level-locked"); }
363
else if (canStartCraft(getInventorySlots?.() ?? [], recipe, skill, { dyeSlotIndex }))
364
{ cell.classList.add("craftable"); }
365
359
366
const img = document.createElement("img");
360
367
img.alt = def?.displayName ?? "Item";
361
368
applyItemIcon(img, stack, itemAssetPathForStack(stack));
@@ -356,6 +356,13 @@ export function initCrafting ({356
if (selected)356
if (selected)357
{ cell.classList.add("selected"); }357
{ cell.classList.add("selected"); }358
358
359
const skill = stationSkillLevel();360
const minLevel = recipe.minSkillLevel | 0 || 1;361
if ((skill | 0) < minLevel)362
{ cell.classList.add("level-locked"); }363
else if (canStartCraft(getInventorySlots?.() ?? [], recipe, skill, { dyeSlotIndex }))364
{ cell.classList.add("craftable"); }365
359
const img = document.createElement("img");366
const img = document.createElement("img");360
img.alt = def?.displayName ?? "Item";367
img.alt = def?.displayName ?? "Item";361
applyItemIcon(img, stack, itemAssetPathForStack(stack));368
applyItemIcon(img, stack, itemAssetPathForStack(stack));@@ -1187,7 +1187,19 @@ button.friend-account-name:hover {
1187
1187
cursor: pointer;
1188
1188
}
1189
1189
1190
1191
.craft-recipe-cell.craftable {
1192
border-color: #3f9d62;
1193
box-shadow: inset 0 0 0 1px rgba(63, 157, 98, 0.85);
1194
}
1195
1196
.craft-recipe-cell.level-locked {
1197
border-color: #b04343;
1198
box-shadow: inset 0 0 0 1px rgba(176, 67, 67, 0.85);
1199
}
1200
1190
1201
.craft-recipe-cell.selected {
1202
1191
1203
outline: 2px solid #d4c48a;
1192
1204
}
1193
1205
@@ -1187,7 +1187,19 @@ button.friend-account-name:hover {1187
cursor: pointer;1187
cursor: pointer;1188
}1188
}1189
1189
1190
1191
.craft-recipe-cell.craftable {1192
border-color: #3f9d62;1193
box-shadow: inset 0 0 0 1px rgba(63, 157, 98, 0.85);1194
}1195
1196
.craft-recipe-cell.level-locked {1197
border-color: #b04343;1198
box-shadow: inset 0 0 0 1px rgba(176, 67, 67, 0.85);1199
}1200
1190
.craft-recipe-cell.selected {1201
.craft-recipe-cell.selected {1202
1191
outline: 2px solid #d4c48a;1203
outline: 2px solid #d4c48a;1192
}1204
}1193
1205