diff --git a/script.js b/script.js index 9c815e26..bb024563 100644 --- a/script.js +++ b/script.js @@ -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; diff --git a/style-monsterimages.css b/style-monsterimages.css index 0fde18ff..9653ceab 100644 --- a/style-monsterimages.css +++ b/style-monsterimages.css @@ -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'] { diff --git a/style.css b/style.css index 7af18e35..1d535aba 100644 --- a/style.css +++ b/style.css @@ -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 {