修复一些卡片属性显示Bug
This commit is contained in:
parent
451f914158
commit
5cf3c22701
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
@ -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'] {
|
||||
|
|
|
@ -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;
|
||||
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue