Skip to content

Commit

Permalink
修复一些卡片属性显示Bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Mapaler committed Oct 1, 2024
1 parent 451f914 commit 5cf3c22
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 13 deletions.
2 changes: 1 addition & 1 deletion script.js
Original file line number Diff line number Diff line change
Expand Up @@ -4600,7 +4600,7 @@ function initialize() {
[...s_AttrForm.querySelectorAll(".attr-selecter-list .attr-list")].forEach(list=>list.querySelector("li.display-none").classList.remove(className_displayNone));
}
editBox.changeMonId(monstersID.value);
const spoof = confirm("你可以上传你的自定义图片以制作卡片头像。\nYou can upload your custom image to make a card avatar.\n\n是否启用恶搞功能?\n所有角色全部随机设定四种属性。\nEnable Spoof function ?\nAll Cards set 4 random attrs. ");
const spoof = confirm("你可以上传你的自定义图片以制作卡片头像。\nYou can upload your custom image to make a card avatar.\n\n是否启用😈恶搞功能?\n所有角色全部随机设定四种属性。\nEnable 😈Spoof function ?\nAll Cards set 4 random attrs. ");
if (spoof) {
Cards.forEach(card=>{
if (!card.enabled) return;
Expand Down
17 changes: 10 additions & 7 deletions style-monsterimages.css
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,12 @@
.monster .attrs .attr:nth-of-type(4){ /*四属性*/
--attr-y-index: 3;
}
.monster .attrs .attr[data-attr='-1'] {
.monster .attrs .attr[data-attr='-1'],
.monster .attrs .attr:where(
[data-attr='any'],
[data-attr='6'],
):nth-of-type(n+2)
{
background: none; /*无*/
display: none;
}
Expand All @@ -76,14 +81,12 @@
.monster .attrs .attr[data-attr='5'] { /*心*/
--attr-x-index: 5;
}

.monster .attrs .attr:nth-of-type(1)[data-attr='6'] { /*无主属性*/
background-image: url(images/CARDFRAMEW.png);
background-position: calc(var(--x-pos-start) * -1) calc(var(--y-pos-start) * -1);
.monster .attrs .attr[data-attr='6'] { /*无主属性*/
--attr-x-index: 6;
}
.monster .attrs .attr:nth-of-type(1)[data-attr='any'] {
.monster .attrs .attr[data-attr='any'] {
--attr-x-index: 0;
background-image: url(images/card-frame-any.png);
background-position: calc(var(--x-pos-start) * -1) calc(var(--y-pos-start) * -1);
}
/*
.monster .attrs .attr[data-attr='any'] {
Expand Down
9 changes: 4 additions & 5 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -633,11 +633,6 @@ body.block-width-7 .formation-box{
background-color: rgba(230,230,230,0.5);
border: 3px grey dashed;
}
.edit-box .monster.null{
background-color: #653;
border: none;
box-shadow: inset black 0 0 7px;
}
.monster.delay{
background-color: yellow;
box-shadow: inset orange 0 0 7px;
Expand Down Expand Up @@ -2578,6 +2573,10 @@ input[disabled]+.awoken-icon:active,
border: none;
cursor: pointer;
}
.edit-box .monsterinfo-box .monster-head .monster.null{
background-color: #653;
box-shadow: inset black 0 0 7px;
}
.row-awoken-sawoken .awoken-ul,
.row-awoken-sawoken .current-super-awoken
{
Expand Down

0 comments on commit 5cf3c22

Please sign in to comment.