From b51f862622fa73aafb197dc16c04757704e6da95 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9E=AB=E8=B0=B7=E5=89=91=E4=BB=99?= Date: Tue, 25 Jun 2019 16:30:23 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=80=AA=E7=89=A9id=E6=98=BE?= =?UTF-8?q?=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.html | 22 +++++++++++++++- languages/en.css | 9 +++++++ languages/ja.css | 9 +++++++ languages/ko.css | 9 +++++++ languages/zh-TW.css | 9 +++++++ languages/zh.css | 9 +++++++ script.js | 5 ++++ solo.html | 14 ++++++++++- style.css | 61 +++++++++++++++++++++++++++++++++------------ 9 files changed, 129 insertions(+), 18 deletions(-) diff --git a/index.html b/index.html index 3fa39c12..caabe3c0 100644 --- a/index.html +++ b/index.html @@ -43,7 +43,7 @@ var formation = {
- +
@@ -57,6 +57,7 @@ var formation = {
297
+
  • @@ -66,6 +67,7 @@ var formation = {
    297
    +
  • @@ -75,6 +77,7 @@ var formation = {
    297
    +
  • @@ -84,6 +87,7 @@ var formation = {
    297
    +
  • @@ -93,6 +97,7 @@ var formation = {
    297
    +
  • @@ -157,6 +162,7 @@ var formation = {
    +
  • @@ -167,6 +173,7 @@ var formation = {
    +
  • @@ -177,6 +184,7 @@ var formation = {
    +
  • @@ -187,6 +195,7 @@ var formation = {
    +
  • @@ -197,6 +206,7 @@ var formation = {
    +
  • @@ -213,6 +223,7 @@ var formation = {
    +
  • @@ -223,6 +234,7 @@ var formation = {
    +
  • @@ -233,6 +245,7 @@ var formation = {
    +
  • @@ -243,6 +256,7 @@ var formation = {
    +
  • @@ -253,6 +267,7 @@ var formation = {
    +
  • @@ -316,6 +331,7 @@ var formation = {
    297
    +
  • @@ -325,6 +341,7 @@ var formation = {
    297
    +
  • @@ -334,6 +351,7 @@ var formation = {
    297
    +
  • @@ -343,6 +361,7 @@ var formation = {
    297
    +
  • @@ -352,6 +371,7 @@ var formation = {
    297
    +
  • diff --git a/languages/en.css b/languages/en.css index c97b49b4..ede1560e 100644 --- a/languages/en.css +++ b/languages/en.css @@ -15,6 +15,9 @@ .monster .level::before{ content: "Lv."; } +.monster .id::before{ + content: "No."; +} .formation-A-bigbox::after{ content: "Team\A A"; } @@ -137,4 +140,10 @@ } .control-box .multi-link::before{ content: "Jump To 2-Player Mode"; +} +.control-box .btn-show-mon-id::before{ + content: "Hide monster ID"; +} +.not-show-mon-id .control-box .btn-show-mon-id::before{ + content: "Show monster ID"; } \ No newline at end of file diff --git a/languages/ja.css b/languages/ja.css index 2edb4120..a330f8d2 100644 --- a/languages/ja.css +++ b/languages/ja.css @@ -14,6 +14,9 @@ .monster .level::before{ content: "Lv."; } +.monster .id::before{ + content: "No."; +} .formation-A-bigbox::after{ content: "チーム\A A"; } @@ -130,4 +133,10 @@ } .control-box .multi-link::before{ content: "2人協力のゲームに移動"; +} +.control-box .btn-show-mon-id::before{ + content: "隠しモンスターID"; +} +.not-show-mon-id .control-box .btn-show-mon-id::before{ + content: "モンスターIDを表示"; } \ No newline at end of file diff --git a/languages/ko.css b/languages/ko.css index 91f607fe..bd4f7098 100644 --- a/languages/ko.css +++ b/languages/ko.css @@ -14,6 +14,9 @@ .monster .level::before{ content: "Lv."; } +.monster .id::before{ + content: "No."; +} .formation-A-bigbox::after{ content: "팀\A A"; } @@ -130,4 +133,10 @@ } .control-box .multi-link::before{ content: "2인 게임으로 이동"; +} +.control-box .btn-show-mon-id::before{ + content: "숨겨진 몬스터 ID"; +} +.not-show-mon-id .control-box .btn-show-mon-id::before{ + content: "괴물 ID 표시"; } \ No newline at end of file diff --git a/languages/zh-TW.css b/languages/zh-TW.css index 4b6e2170..566ed78b 100644 --- a/languages/zh-TW.css +++ b/languages/zh-TW.css @@ -14,6 +14,9 @@ .monster .level::before{ content: "Lv."; } +.monster .id::before{ + content: "No."; +} .formation-A-bigbox::after{ content: "隊伍\A A"; } @@ -133,4 +136,10 @@ } .control-box .multi-link::before{ content: "轉到2人車隊"; +} +.control-box .btn-show-mon-id::before{ + content: "隱藏怪物ID"; +} +.not-show-mon-id .control-box .btn-show-mon-id::before{ + content: "顯示怪物ID"; } \ No newline at end of file diff --git a/languages/zh.css b/languages/zh.css index 3dec5030..98895908 100644 --- a/languages/zh.css +++ b/languages/zh.css @@ -14,6 +14,9 @@ .monster .level::before{ content: "Lv."; } +.monster .id::before{ + content: "No."; +} .formation-A-bigbox::after{ content: "队伍\A A"; } @@ -133,4 +136,10 @@ } .control-box .multi-link::before{ content: "转到2人车队"; +} +.control-box .btn-show-mon-id::before{ + content: "隐藏怪物ID"; +} +.not-show-mon-id .control-box .btn-show-mon-id::before{ + content: "显示怪物ID"; } \ No newline at end of file diff --git a/script.js b/script.js index 1ab6c577..f0104f8e 100644 --- a/script.js +++ b/script.js @@ -444,6 +444,11 @@ function changeid(mon,monDom,latentDom) sawoken.classList.add("display-none"); } } + var m_id = monDom.querySelector(".id"); + if (m_id) //如果存在超觉醒的DOM且提供了超觉醒 + { + m_id.innerHTML = mon.id; + } if (mon.plus) //如果提供了加值 { monDom.querySelector(".plus .hp").innerHTML = mon.plus[0]; diff --git a/solo.html b/solo.html index 0c75af7e..f57f1ea7 100644 --- a/solo.html +++ b/solo.html @@ -49,7 +49,7 @@ var formation = {
    - +
    @@ -63,6 +63,7 @@ var formation = {
    297
    +
  • @@ -72,6 +73,7 @@ var formation = {
    297
    +
  • @@ -81,6 +83,7 @@ var formation = {
    297
    +
  • @@ -90,6 +93,7 @@ var formation = {
    297
    +
  • @@ -99,6 +103,7 @@ var formation = {
    297
    +
  • @@ -108,6 +113,7 @@ var formation = {
    297
    +
  • @@ -182,6 +188,7 @@ var formation = {
    +
  • @@ -192,6 +199,7 @@ var formation = {
    +
  • @@ -202,6 +210,7 @@ var formation = {
    +
  • @@ -212,6 +221,7 @@ var formation = {
    +
  • @@ -222,6 +232,7 @@ var formation = {
    +
  • @@ -232,6 +243,7 @@ var formation = {
    +
  • diff --git a/style.css b/style.css index 83ebfb26..5ec9bccc 100644 --- a/style.css +++ b/style.css @@ -113,9 +113,9 @@ ul{ /*怪物-加值*/ .monster .plus{ color: yellow; - font-size: 20px; - line-height: 20px; - text-shadow: black 0 0 1px, black 2px 2px 0; + font-size: 17px; + line-height: 17px; + text-shadow: black 0 0 1px,black 0 0 2px, black 2px 2px 0; position: absolute; left:0; } @@ -154,7 +154,9 @@ ul{ width: 34px; height: 38px; position: absolute; + top: -4px; right: 0; + transform: scale(0.80) translateX(4px); } .monster .awoken-count.allowable-assist{ font-size: 0; @@ -165,34 +167,52 @@ ul{ .monster .super-awoken{ position: absolute; right:0; - top: 30px; + top: 25px; transform: scale(0.80) translateX(4px); } /*怪物-等级*/ .monster .level{ color: white; - font-size: 18px; - line-height: 27px; - height: 27px; - text-shadow: black 0 0 1px, black 2px 2px 0; + height: 17px; + text-shadow: black 0 0 2px, black 2px 2px 0; position: absolute; left: 5px; - bottom: 0; + bottom: 0px; vertical-align: top; } +.monster .level,.monster .level.max::before{ + font-size: 15px; + line-height: 17px; +} +.monster .level.max{ + font-size: 0; +} .monster .level._110{ color: lightskyblue; } /*.monster .level::before{ content: "Lv."; +}.monster .level.max::before{ + content: "Lv.最大"; }*/ -.monster .level.max{ - font-size: 0; +.monster .id{ + display: block; + color: white; + font-family: "Microsoft Yahei","Source Han Sans",Arial, Helvetica, sans-serif; + font-size: 15px; + line-height: 17px; + height: 17px; + text-shadow: black 1px 1px 0,black 1px -1px 0,black -1px 1px 0,black -1px -1px 0; + position: absolute; + left: 5px; + bottom: 15px; } -.monster .level.max::before{ - font-size: 18px; - /*content: "Lv.最大";*/ +.not-show-mon-id .monster .id{ + display: none; } +/*.monster .id::before{ + content: "No."; +}*/ /*辅助和队伍的每一只框架*/ .member, .acquisitus-awoken-icon { display: block; @@ -605,7 +625,7 @@ ul{ .awoken-total-box .awoken-ul .count::before{ content: "×"; } - +/*控制框*/ .control-box{ margin-bottom: 10px; } @@ -620,4 +640,13 @@ ul{ } .control-box .multi-link::before{ content: "Jump To 2-Player Version"; -} \ No newline at end of file +} +.control-box .btn-show-mon-id{ + margin-left: 5px; +} +/*.control-box .btn-show-mon-id::before{ + content: "隐藏怪物ID"; +} +.not-show-mon-id .control-box .btn-show-mon-id::before{ + content: "显示怪物ID"; +}*/ \ No newline at end of file