Browse Source

修复一些卡片属性显示Bug

master
枫谷剑仙 1 year ago
parent
commit
5cf3c22701
3 changed files with 15 additions and 13 deletions
  1. +1
    -1
      script.js
  2. +10
    -7
      style-monsterimages.css
  3. +4
    -5
      style.css

+ 1
- 1
script.js View File

@@ -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;


+ 10
- 7
style-monsterimages.css View File

@@ -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'] {


+ 4
- 5
style.css View File

@@ -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…
Cancel
Save