From dee7b37d5a089842a38f74ccdceed231e2d8c1fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9E=AB=E8=B0=B7=E5=89=91=E4=BB=99?= Date: Mon, 27 Jan 2020 14:30:51 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=A5=BD=E5=85=B6=E5=AE=83?= =?UTF-8?q?=E8=AF=AD=E8=A8=80=E7=9A=84=E7=89=88=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- languages/en.css | 43 +++++-- languages/en.js | 8 +- languages/ja.css | 69 +++++++---- languages/ja.js | 8 +- languages/ko.css | 69 +++++++---- languages/ko.js | 8 +- languages/zh-CN.css | 274 +------------------------------------------- languages/zh-CN.js | 2 +- languages/zh-TW.css | 52 ++++++--- languages/zh-TW.js | 8 +- languages/zh.css | 45 +++++--- languages/zh.js | 2 +- script.js | 8 +- style.css | 56 ++++----- 14 files changed, 242 insertions(+), 410 deletions(-) diff --git a/languages/en.css b/languages/en.css index ca28443d..ddc28bad 100644 --- a/languages/en.css +++ b/languages/en.css @@ -18,16 +18,27 @@ .monster .id::before{ content: "No."; } -.formation-A-bigbox::after{ +.team-1 .team-box-name::after, +.team-1 .team-box-name::before +{ content: "Team\A A"; } -.formation-B-bigbox::before{ +.team-2 .team-box-name::after, +.team-2 .team-box-name::before +{ content: "Team\A B"; } -.formation-A-box .formation-assist .member::after{ +.team-3 .team-box-name::after, +.team-3 .team-box-name::before +{ + content: "Team\A C"; +} +.team-box .team-assist .member::after +{ content: "▼Assist"; } -.formation-B-box .formation-assist .member::before{ +.team-box .team-assist .member::before +{ content: "▲Assist"; } .abilitys .hp::before{ @@ -125,8 +136,11 @@ .edit-box .button-box .button-done.cant-assist::after{ content: "Can't be Assist"; } -.awoken-total-box::before{ - content: "Awoken Total:"; +.team-awoken::before{ + content: "Team Awoken:"; +} +.formation-awoken::before{ + content: "Total Awoken:"; } .type-name-4::after{ content: "Dragon"; @@ -176,6 +190,9 @@ .control-box .btn-multi-link::before{ content: "🧑‍🤝‍🧑Jump To 2-Player Mode"; } +.control-box .btn-triple-link::before{ + content: "👪Jump To 3-Player Mode"; +} .control-box .btn-clear-data::before{ content: "🗑️Clear data"; } @@ -194,11 +211,17 @@ .control-box .btn-show-mon-skill-cd::before{ content: "❄️Show full skill's cooldown"; } -.team-info .tIf-total-hp::before{ - content: "Total HP(Team Awoken & Badge): "; +.team-total-info .tIf-total-hp::before{ + content: "Team HP(Team Awoken & Badge): "; +} +.team-total-info .tIf-total-rcv::before{ + content: "Team RCV(Team Awoken & Badge): "; +} +.formation-total-info .tIf-total-hp::before{ + content: "Total HP(Team Awoken): "; } -.team-info .tIf-total-rcv::before{ - content: "Total RCV(Team Awoken & Badge): "; +.formation-total-info .tIf-total-rcv::before{ + content: "Total RCV(Team Awoken): "; } .setting-box .row-mon-id .open-search::before{ diff --git a/languages/en.js b/languages/en.js index 5816f457..40ef1cf8 100644 --- a/languages/en.js +++ b/languages/en.js @@ -1,5 +1,3 @@ -document.title = solo?'P&D Solo Formation Maker':'P&D Multi Formation Maker'; -var txtTitle = document.querySelector(".title-box .title"); -var txtDetail = document.querySelector(".detail-box .detail"); -txtTitle.placeholder = "Input Formation Title"; -txtDetail.placeholder = "Input Detail"; \ No newline at end of file +document.title = `P&D ${teamsCount}P Formation Maker`; +document.body.querySelector(".formation-box .title-box .title").placeholder = "Input Formation Title"; +document.body.querySelector(".formation-box .detail-box .detail").placeholder = "Input Detail"; \ No newline at end of file diff --git a/languages/ja.css b/languages/ja.css index 2eed09a4..e778c93c 100644 --- a/languages/ja.css +++ b/languages/ja.css @@ -17,18 +17,38 @@ .monster .id::before{ content: "No."; } -.formation-A-bigbox::after{ +.team-1 .team-box-name::after, +.team-1 .team-box-name::before +{ content: "チーム\A A"; } -.formation-B-bigbox::before{ +.team-2 .team-box-name::after, +.team-2 .team-box-name::before +{ content: "チーム\A B"; } -.formation-A-box .formation-assist .member::after{ +.team-3 .team-box-name::after, +.team-3 .team-box-name::before +{ + content: "チーム\A C"; +} +.team-box .team-assist .member::after +{ content: "▼継承"; } -.formation-B-box .formation-assist .member::before{ +.team-box .team-assist .member::before +{ content: "▲継承"; } +.abilitys .hp::before{ + content: "HP:"; +} +.abilitys .atk::before{ + content: "攻撃:"; +} +.abilitys .rcv::before{ + content: "回復:"; +} .edit-box .edit-box-title::before{ content: "変更メンバー"; } @@ -45,10 +65,10 @@ content: "コスト:"; } .monsterinfo-box .monster-collabId::before{ - content: "シリーズ ID:"; + content: "シリーズ ID:"; } .monsterinfo-box .monster-altName::before{ - content: "シリーズの名前:"; + content: "シリーズの名前:"; } .edit-box .setting-box .row-mon-level::before{ content: "▼モンスターレベル"; @@ -59,15 +79,6 @@ .m-level-btn-max::before{ content: "最大Lv."; } -.abilitys .hp::before{ - content: "HP:"; -} -.abilitys .atk::before{ - content: "攻撃:"; -} -.abilitys .rcv::before{ - content: "回復:"; -} .edit-box .setting-box .row-mon-awoken::before{ content: "▼モンスター覚醒"; } @@ -118,8 +129,11 @@ .edit-box .button-box .button-done.cant-assist::after{ content: "継承できない"; } -.awoken-total-box::before{ - content: "覚醒合計:"; +.team-awoken::before{ + content: "チーム覚醒:"; +} +.formation-awoken::before{ + content: "総覚醒:"; } .type-name-4::after{ content: "ドラゴン"; @@ -161,7 +175,7 @@ content: "特別保護"; } .control-box .datasource-label::before{ - content: "データ ソース:"; + content: "データ ソース:"; } .control-box .btn-solo-link::before{ content: "🧑ソロゲームに移動"; @@ -169,6 +183,9 @@ .control-box .btn-multi-link::before{ content: "🧑‍🤝‍🧑2人協力のゲームに移動"; } +.control-box .btn-triple-link::before{ + content: "👪3人協力のゲームに移動"; +} .control-box .btn-clear-data::before{ content: "🗑️データの消去"; } @@ -187,11 +204,17 @@ .control-box .btn-show-mon-skill-cd::before{ content: "❄️フル スキル クールを表示"; } -.team-info .tIf-total-hp::before{ - content: "合計HP(チーム覚醒とバッジ):"; +.team-total-info .tIf-total-hp::before{ + content: "チームHP(チーム覚醒とバッジ):"; +} +.team-total-info .tIf-total-rcv::before{ + content: "チーム回復(チーム覚醒とバッジ):"; +} +.formation-total-info .tIf-total-hp::before{ + content: "総HP(チーム覚醒):"; } -.team-info .tIf-total-rcv::before{ - content: "合計回復(チーム覚醒とバッジ):"; +.formation-total-info .tIf-total-rcv::before{ + content: "総回復(チーム覚醒):"; } .setting-box .row-mon-id .open-search::before{ @@ -219,7 +242,7 @@ content: "タイプ(OR)"; } .search-box .awoken-div::before{ - content: "覚醒(AND)(しえ:数値をクリックすると数値が減少します)"; + content: "覚醒(AND)(しえ:数値をクリックすると数値が減少します)"; } .search-box .sawoken-div::before{ content: "超覚醒(OR)"; diff --git a/languages/ja.js b/languages/ja.js index b88ef48e..268039d0 100644 --- a/languages/ja.js +++ b/languages/ja.js @@ -1,5 +1,3 @@ -document.title = solo?'パズル&ドラゴンズソロチーム制作ツール':'パズル&ドラゴンズ協力周回チーム制作ツール'; -var txtTitle = document.querySelector(".title-box .title"); -var txtDetail = document.querySelector(".detail-box .detail"); -txtTitle.placeholder = "入力フォーメーションのタイトル"; -txtDetail.placeholder = "入力詳細"; \ No newline at end of file +document.title = `パズル&ドラゴンズ${teamsCount}人のチーム図作成ツール`; +document.body.querySelector(".formation-box .title-box .title").placeholder = "入力タイトル"; +document.body.querySelector(".formation-box .detail-box .detail").placeholder = "入力詳細"; \ No newline at end of file diff --git a/languages/ko.css b/languages/ko.css index c45b9bfb..55baf5b5 100644 --- a/languages/ko.css +++ b/languages/ko.css @@ -17,18 +17,38 @@ .monster .id::before{ content: "No."; } -.formation-A-bigbox::after{ +.team-1 .team-box-name::after, +.team-1 .team-box-name::before +{ content: "팀\A A"; } -.formation-B-bigbox::before{ +.team-2 .team-box-name::after, +.team-2 .team-box-name::before +{ content: "팀\A B"; } -.formation-A-box .formation-assist .member::after{ +.team-3 .team-box-name::after, +.team-3 .team-box-name::before +{ + content: "팀\A C"; +} +.team-box .team-assist .member::after +{ content: "▼돕다"; } -.formation-B-box .formation-assist .member::before{ +.team-box .team-assist .member::before +{ content: "▲돕다"; } +.abilitys .hp::before{ + content: "HP:"; +} +.abilitys .atk::before{ + content: "공격:"; +} +.abilitys .rcv::before{ + content: "회복:"; +} .edit-box .edit-box-title::before{ content: "회원 수정"; } @@ -45,10 +65,10 @@ content: "코스트:"; } .monsterinfo-box .monster-collabId::before{ - content: "시리즈 ID:"; + content: "시리즈 ID:"; } .monsterinfo-box .monster-altName::before{ - content: "시리즈 이름:"; + content: "시리즈 이름:"; } .edit-box .setting-box .row-mon-level::before{ content: "▼몬스터 레벨"; @@ -59,15 +79,6 @@ .m-level-btn-max::before{ content: "최대Lv."; } -.abilitys .hp::before{ - content: "HP:"; -} -.abilitys .atk::before{ - content: "공격:"; -} -.abilitys .rcv::before{ - content: "회복:"; -} .edit-box .setting-box .row-mon-awoken::before{ content: "▼몬스터 각성"; } @@ -118,8 +129,11 @@ .edit-box .button-box .button-done.cant-assist::after{ content: "협조 할 수 없음"; } -.awoken-total-box::before{ - content: "총 각성:"; +.team-awoken::before{ + content: "팀 각성:"; +} +.formation-awoken::before{ + content: "총 각성:"; } .type-name-4::after{ content: "드래곤"; @@ -161,7 +175,7 @@ content: "특별 보호"; } .control-box .datasource-label::before{ - content: "데이터 소스:"; + content: "데이터 소스:"; } .control-box .btn-solo-link::before{ content: "🧑싱글 플레이어 게임으로 이동"; @@ -169,6 +183,9 @@ .control-box .btn-multi-link::before{ content: "🧑‍🤝‍🧑2인 게임으로 이동"; } +.control-box .btn-triple-link::before{ + content: "👪3인 게임으로 이동"; +} .control-box .btn-clear-data::before{ content: "🗑️데이터 지우기"; } @@ -187,11 +204,17 @@ .control-box .btn-show-mon-skill-cd::before{ content: "❄️전체 스킬 쿨을 표시"; } -.team-info .tIf-total-hp::before{ - content: "총 HP(팀의 각 성과 배지):"; +.team-total-info .tIf-total-hp::before{ + content: "팀 HP(팀 각성 및 배지):"; +} +.team-total-info .tIf-total-rcv::before{ + content: "팀 회복(팀 각성 및 배지):"; +} +.formation-total-info .tIf-total-hp::before{ + content: "총 HP(팀 각성):"; } -.team-info .tIf-total-rcv::before{ - content: "총 회복(팀의 각 성과 배지):"; +.formation-total-info .tIf-total-rcv::before{ + content: "총 회복(팀 각성):"; } .setting-box .row-mon-id .open-search::before{ @@ -219,7 +242,7 @@ content: "형식(OR)"; } .search-box .awoken-div::before{ - content: "각성(AND)(번째:숫자를 누르면 숫자가 낮아집니다)"; + content: "각성(AND)(번째:숫자를 누르면 숫자가 낮아집니다)"; } .search-box .sawoken-div::before{ content: "슈퍼 각성(OR)"; diff --git a/languages/ko.js b/languages/ko.js index 8b2d06e6..07abeaa8 100644 --- a/languages/ko.js +++ b/languages/ko.js @@ -1,5 +1,3 @@ -document.title = solo?'퍼즐앤드래곤 솔로 팀 제작 도구':'퍼즐앤드래곤 멀티 팀 제작 도구'; -var txtTitle = document.querySelector(".title-box .title"); -var txtDetail = document.querySelector(".detail-box .detail"); -txtTitle.placeholder = "편대 칭호 입력"; -txtDetail.placeholder = "입력 내용"; \ No newline at end of file +document.title = `퍼즐앤드래곤 ${teamsCount} 명의 팀 다이어그램 작성 도구`; +document.body.querySelector(".formation-box .title-box .title").placeholder = "입력 제목"; +document.body.querySelector(".formation-box .detail-box .detail").placeholder = "입력 내용"; \ No newline at end of file diff --git a/languages/zh-CN.css b/languages/zh-CN.css index be6bd2bf..e8c1bf1f 100644 --- a/languages/zh-CN.css +++ b/languages/zh-CN.css @@ -1,280 +1,8 @@ @charset "utf-8"; -.status.loading-mon-info .text::before{ - content: "正在加载怪物数据,请稍候。"; -} -.status.loading-skill-info .text::before{ - content: "正在加载技能数据,请稍候。"; -} -.help-link::before{ - content: "帮助和提示"; -} -.delay .monster::before{ - content: "应 对\A威 吓"; -} -.monster .level.max::before{ - content: "Lv.最大"; -} -.monster .level::before{ - content: "Lv."; -} -.monster .id::before{ - content: "No."; -} -.team-bigbox:nth-of-type(1) .team-box-name::after, -.team-bigbox:nth-of-type(1) .team-box-name::before -{ - content: "队伍\A A"; -} -.team-bigbox:nth-of-type(2) .team-box-name::after, -.team-bigbox:nth-of-type(2) .team-box-name::before -{ - content: "队伍\A B"; -} -.team-bigbox:nth-of-type(3) .team-box-name::after, -.team-bigbox:nth-of-type(3) .team-box-name::before -{ - content: "队伍\A C"; -} -.team-box .team-assist .member::after -{ - content: "▼辅助"; -} -.team-box .team-assist .member::before -{ - content: "▲辅助"; -} -.abilitys .hp::before{ - content: "HP:"; -} -.abilitys .atk::before{ - content: "攻击:"; -} -.abilitys .rcv::before{ - content: "回复:"; -} -.edit-box .edit-box-title::before{ - content: "修改队员"; -} -.edit-box .edit-box-title.edit-box-title-assist::before{ - content: "修改辅助"; -} -.edit-box .setting-box .row-mon-id::before{ - content: "▼怪物ID"; -} -.monsterinfo-box .monster-id::before{ - content: "No."; -} -.monsterinfo-box .monster-cost::before{ - content: "消耗:"; -} -.monsterinfo-box .monster-collabId::before{ - content: "系列ID:"; -} -.monsterinfo-box .monster-altName::before{ - content: "系列名称:"; -} -.edit-box .setting-box .row-mon-level::before{ - content: "▼怪物等级"; -} -.m-level-btn-min::before{ - content: "Lv."; -} -.m-level-btn-max::before{ - content: "最高Lv."; -} -.edit-box .setting-box .row-mon-awoken::before{ - content: "▼怪物觉醒"; -} -.edit-box .setting-box .row-mon-super-awoken::before{ - content: "▼超觉醒"; -} -.edit-box .setting-box .row-mon-plus::before{ - content: "▼怪物加值"; -} -.m-plus-hp-li::before{ - content: "HP"; -} -.m-plus-atk-li::before{ - content: "攻击"; -} -.m-plus-rcv-li::before{ - content: "回复"; -} -.edit-box .setting-box .row-mon-latent::before{ - content: "▼潜在觉醒"; -} - -.skill-box .skill-cd::before{ - content: "回合:"; -} -.skill-box .skill-level-label::before{ - content: "Lv."; -} -.row-mon-skill .skill-title::before{ - content: "主動技能"; -} -.row-mon-leader-skill .skill-title::before{ - content: "隊長技能"; -} - -.edit-box .button-box .button-null::after{ - content: "留空格子"; -} -.edit-box .button-box .button-delay::after{ - content: "应对威吓"; -} -.edit-box .button-box .button-cancel::after{ - content: "取消修改"; -} -.edit-box .button-box .button-done::after{ - content: "确认修改"; -} -.edit-box .button-box .button-done.cant-assist::after{ - content: "不能辅助"; -} -.formation-awoken::before{ - content: "阵型觉醒总计:"; -} -.team-awoken::before{ - content: "队伍觉醒总计:"; -} -.type-name-4::after{ - content: "龍"; -} -.type-name-5::after{ - content: "神"; -} -.type-name-7::after{ - content: "惡魔"; -} -.type-name-8::after{ - content: "机械"; -} -.type-name-1::after{ - content: "平衡"; -} -.type-name-6::after{ - content: "攻撃"; -} -.type-name-2::after{ - content: "体力"; -} -.type-name-3::after{ - content: "回復"; -} -.type-name-0::after{ - content: "進化用"; -} -.type-name-12::after{ - content: "能力覺醒用"; -} -.type-name-14::after{ - content: "強化合成用"; -} -.type-name-15::after{ - content: "販賣用"; -} -.type-name-9::after{ - content: "特別保護"; -} -.control-box .languages-label::before{ - content: "语言:"; -} -.control-box .datasource-label::before{ - content: "数据来源:"; -} -.control-box .btn-solo-link::before{ - content: "🧑转到单人游戏"; -} -.control-box .btn-multi-link::before{ - content: "🧑‍🤝‍🧑转到2人车队"; -} -.control-box .btn-triple-link::before{ - content: "👪转到3人协力"; -} -.control-box .btn-clear-data::before{ - content: "🗑️清除数据"; -} -.control-box .btn-swap-AB-team::before{ - content: "🔄交换AB队"; -} -.control-box .btn-show-mon-id::before{ - content: "⬜隐藏怪物ID"; -} -.not-show-mon-id .control-box .btn-show-mon-id::before{ - content: "🆔显示怪物ID"; -} -.show-mon-skill-cd .control-box .btn-show-mon-skill-cd::before{ - content: "⬜隐藏已满技能冷却"; -} -.control-box .btn-show-mon-skill-cd::before{ - content: "❄️显示已满技能冷却"; -} -.team-total-info .tIf-total-hp::before{ - content: "队伍HP(队伍觉醒和徽章):"; -} -.team-total-info .tIf-total-rcv::before{ - content: "队伍回复(队伍觉醒和徽章):"; -} -.formation-total-info .tIf-total-hp::before{ - content: "总HP(队伍觉醒和徽章):"; -} -.formation-total-info .tIf-total-rcv::before{ - content: "总回复(队伍觉醒和徽章):"; -} - -.setting-box .row-mon-id .open-search::before{ - content: "简易搜索"; -} -.search-box::before{ - content: "▼搜索怪物"; -} -.search-box .attrs .attr-list-1::before{ - content: "属性 1"; -} -.search-box .attrs .attr-list-2::before{ - content: "属性 2"; -} -.search-box .attrs .fix-main-color-label::after{ - content: "限制属性 1 为主属性,属性 2 为副属性"; -} -.attrs .attr-all::before{ - content: "不限"; -} -.attrs .attr-none::before{ - content: "无"; -} -.search-box .types-div::before{ - content: "类型(OR)"; -} -.search-box .awoken-div::before{ - content: "觉醒(AND)(提示:点击数字可减少数值)"; -} -.search-box .sawoken-div::before{ - content: "超觉醒(OR)"; -} -.control-div .search-start::before{ - content: "🔍开始搜索"; -} -.control-div .search-clear::before{ - content: "清空搜索"; -} -.control-div .search-close::before{ - content: "关闭搜索"; -} +@import "zh.css"; .edit-box .monsterinfo-box .monster-name, .edit-box .skill-box .skill-datail { font-family: "Microsoft Yahei","Source Han Sans",Arial, Helvetica, sans-serif; font-weight: bold; -} -/*Some icons, style different from the Japanese version*/ -.awoken-46, -.awoken-47 -{ - background-position-x: -64px; -} -.badge-0 -{ - background-position-x: -72px; } \ No newline at end of file diff --git a/languages/zh-CN.js b/languages/zh-CN.js index 64e18165..94189e1a 100644 --- a/languages/zh-CN.js +++ b/languages/zh-CN.js @@ -1,4 +1,4 @@ -document.title = solo?'智龙迷城单人队伍图制作工具':'智龙迷城协力队伍图制作工具'; +document.title = `智龙迷城${teamsCount}人队伍图制作工具`; //查找原先完整技能 function findFullSkill(subSkill){ diff --git a/languages/zh-TW.css b/languages/zh-TW.css index 959a11e7..2e83fd0e 100644 --- a/languages/zh-TW.css +++ b/languages/zh-TW.css @@ -20,16 +20,27 @@ .monster .id::before{ content: "No."; } -.formation-A-bigbox::after{ +.team-1 .team-box-name::after, +.team-1 .team-box-name::before +{ content: "隊伍\A A"; } -.formation-B-bigbox::before{ +.team-2 .team-box-name::after, +.team-2 .team-box-name::before +{ content: "隊伍\A B"; } -.formation-A-box .formation-assist .member::after{ +.team-3 .team-box-name::after, +.team-3 .team-box-name::before +{ + content: "隊伍\A C"; +} +.team-box .team-assist .member::after +{ content: "▼輔助"; } -.formation-B-box .formation-assist .member::before{ +.team-box .team-assist .member::before +{ content: "▲輔助"; } .abilitys .hp::before{ @@ -121,8 +132,11 @@ .edit-box .button-box .button-done.cant-assist::after{ content: "不能輔助"; } -.awoken-total-box::before{ - content: "覺醒總計:"; +.team-awoken::before{ + content: "隊伍覺醒總計:"; +} +.formation-awoken::before{ + content: "陣型覺醒總計:"; } .type-name-4::after{ content: "龍"; @@ -170,10 +184,13 @@ content: "數據來源:"; } .control-box .btn-solo-link::before{ - content: "🧑轉到單人遊戲"; + content: "🧑轉到單人遊戲"; } .control-box .btn-multi-link::before{ - content: "🧑‍🤝‍🧑轉到2人車隊"; + content: "🧑‍🤝‍🧑轉到2人車隊"; +} +.control-box .btn-triple-link::before{ + content: "👪轉到2人協力"; } .control-box .btn-clear-data::before{ content: "🗑️清除數據"; @@ -182,10 +199,10 @@ content: "🔄交換AB隊"; } .control-box .btn-show-mon-id::before{ - content: "⬜隱藏怪物ID"; + content: "⬜隱藏怪物ID"; } .not-show-mon-id .control-box .btn-show-mon-id::before{ - content: "🆔顯示怪物ID"; + content: "🆔顯示怪物ID"; } .show-mon-skill-cd .control-box .btn-show-mon-skill-cd::before{ content: "⬜隱藏已滿技能冷卻"; @@ -193,11 +210,17 @@ .control-box .btn-show-mon-skill-cd::before{ content: "❄️顯示已滿技能冷卻"; } -.team-info .tIf-total-hp::before{ - content: "總HP(隊伍覺醒和徽章):"; +.team-total-info .tIf-total-hp::before{ + content: "隊伍HP(隊伍覺醒和徽章):"; +} +.team-total-info .tIf-total-rcv::before{ + content: "隊伍回復(隊伍覺醒和徽章):"; } -.team-info .tIf-total-rcv::before{ - content: "總回復(隊伍覺醒和徽章):"; +.formation-total-info .tIf-total-hp::before{ + content: "總HP(隊伍覺醒):"; +} +.formation-total-info .tIf-total-rcv::before{ + content: "總回復(隊伍覺醒):"; } .setting-box .row-mon-id .open-search::before{ @@ -239,7 +262,6 @@ .control-div .search-close::before{ content: "關閉搜索"; } - /*Some icons, style different from the Japanese version*/ .awoken-46, .awoken-47 diff --git a/languages/zh-TW.js b/languages/zh-TW.js index cdc163f9..19a12bd8 100644 --- a/languages/zh-TW.js +++ b/languages/zh-TW.js @@ -1,5 +1,3 @@ -document.title = solo?'龍族拼圖單人隊伍圖製作工具':'龍族拼圖協力隊伍圖製作工具'; -var txtTitle = document.querySelector(".title-box .title"); -var txtDetail = document.querySelector(".detail-box .detail"); -txtTitle.placeholder = "輸入隊伍標題"; -txtDetail.placeholder = "輸入說明"; \ No newline at end of file +document.title = `龍族拼圖${teamsCount}人隊伍圖製作工具`; +document.body.querySelector(".formation-box .title-box .title").placeholder = "輸入隊伍標題"; +document.body.querySelector(".formation-box .detail-box .detail").placeholder = "輸入說明"; \ No newline at end of file diff --git a/languages/zh.css b/languages/zh.css index 20bb58ab..9145ce9e 100644 --- a/languages/zh.css +++ b/languages/zh.css @@ -20,16 +20,27 @@ .monster .id::before{ content: "No."; } -.formation-A-bigbox::after{ +.team-1 .team-box-name::after, +.team-1 .team-box-name::before +{ content: "队伍\A A"; } -.formation-B-bigbox::before{ +.team-2 .team-box-name::after, +.team-2 .team-box-name::before +{ content: "队伍\A B"; } -.formation-A-box .formation-assist .member::after{ +.team-3 .team-box-name::after, +.team-3 .team-box-name::before +{ + content: "队伍\A C"; +} +.team-box .team-assist .member::after +{ content: "▼辅助"; } -.formation-B-box .formation-assist .member::before{ +.team-box .team-assist .member::before +{ content: "▲辅助"; } .abilitys .hp::before{ @@ -121,8 +132,11 @@ .edit-box .button-box .button-done.cant-assist::after{ content: "不能辅助"; } -.awoken-total-box::before{ - content: "觉醒总计:"; +.team-awoken::before{ + content: "队伍觉醒总计:"; +} +.formation-awoken::before{ + content: "阵型觉醒总计:"; } .type-name-4::after{ content: "龍"; @@ -175,6 +189,9 @@ .control-box .btn-multi-link::before{ content: "🧑‍🤝‍🧑转到2人车队"; } +.control-box .btn-triple-link::before{ + content: "👪转到3人协力"; +} .control-box .btn-clear-data::before{ content: "🗑️清除数据"; } @@ -193,10 +210,16 @@ .control-box .btn-show-mon-skill-cd::before{ content: "❄️显示已满技能冷却"; } -.team-info .tIf-total-hp::before{ +.team-total-info .tIf-total-hp::before{ + content: "队伍HP(队伍觉醒和徽章):"; +} +.team-total-info .tIf-total-rcv::before{ + content: "队伍回复(队伍觉醒和徽章):"; +} +.formation-total-info .tIf-total-hp::before{ content: "总HP(队伍觉醒和徽章):"; } -.team-info .tIf-total-rcv::before{ +.formation-total-info .tIf-total-rcv::before{ content: "总回复(队伍觉醒和徽章):"; } @@ -239,12 +262,6 @@ .control-div .search-close::before{ content: "关闭搜索"; } -.edit-box .monsterinfo-box .monster-name, -.edit-box .skill-box .skill-datail -{ - font-family: "Microsoft Yahei","Source Han Sans",Arial, Helvetica, sans-serif; - font-weight: bold; -} /*Some icons, style different from the Japanese version*/ .awoken-46, .awoken-47 diff --git a/languages/zh.js b/languages/zh.js index 1da3348d..ead6caba 100644 --- a/languages/zh.js +++ b/languages/zh.js @@ -1 +1 @@ -document.title = solo?'智龙迷城单人队伍图制作工具':'智龙迷城协力队伍图制作工具'; \ No newline at end of file +document.title = `智龙迷城${teamsCount}人队伍图制作工具`; \ No newline at end of file diff --git a/script.js b/script.js index 49a5dcf8..dce712b7 100644 --- a/script.js +++ b/script.js @@ -21,7 +21,7 @@ var interchangeSvg; //储存划线的SVG var interchangePath; //储存划线的线 var controlBox; //储存整个controlBox var formationBox; //储存整个formationBox -var teamBigBoxs; //储存全部teamBigBox +var teamBigBoxs = []; //储存全部teamBigBox var allMembers = []; //储存所有成员,包含辅助 var editBox; //储存整个editBox var showSearch; //整个程序都可以用的显示搜索函数 @@ -495,7 +495,11 @@ function initialize() this.style.height=this.scrollHeight+"px"; }; - teamBigBoxs = Array.prototype.slice.call(formationBox.querySelectorAll(".team-bigbox")); + for (let ti=0,ti_len=formationBox.querySelectorAll(".team-bigbox").length;ti{ const teamBox = teamBigBox.querySelector(".team-box"); diff --git a/style.css b/style.css index bb201cfe..93ff258b 100644 --- a/style.css +++ b/style.css @@ -310,24 +310,24 @@ ul{ display: inline-block; } /*队伍的背景色*/ -.team-bigbox:nth-of-type(1) .team-members, -.team-bigbox:nth-of-type(1) .team-latents, -.team-bigbox:nth-of-type(1) .team-box-name::before, -.team-bigbox:nth-of-type(1) .team-box-name::after +.team-1 .team-members, +.team-1 .team-latents, +.team-1 .team-box-name::before, +.team-1 .team-box-name::after { background-color: var(--team-1-bgcolor); } -.team-bigbox:nth-of-type(2) .team-members, -.team-bigbox:nth-of-type(2) .team-latents, -.team-bigbox:nth-of-type(2) .team-box-name::before, -.team-bigbox:nth-of-type(2) .team-box-name::after +.team-2 .team-members, +.team-2 .team-latents, +.team-2 .team-box-name::before, +.team-2 .team-box-name::after { background-color: var(--team-2-bgcolor); } -.team-bigbox:nth-of-type(3) .team-members, -.team-bigbox:nth-of-type(3) .team-latents, -.team-bigbox:nth-of-type(3) .team-box-name::before, -.team-bigbox:nth-of-type(3) .team-box-name::after +.team-3 .team-members, +.team-3 .team-latents, +.team-3 .team-box-name::before, +.team-3 .team-box-name::after { background-color: var(--team-3-bgcolor); } @@ -346,7 +346,7 @@ ul{ font-size: 30px; font-weight: bold; text-align: center; - line-height: 50px; + line-height: 54px; white-space: pre-wrap; display: none; width: var(--head-block-width); @@ -363,25 +363,25 @@ ul{ { vertical-align:top; } -.team-bigbox:nth-of-type(1) .team-box-name::after, -.team-bigbox:nth-of-type(1) .team-box-name::before, -.team-bigbox:nth-of-type(1) .team-assist .member::after, -.team-bigbox:nth-of-type(1) .team-assist .member::before +.team-1 .team-box-name::after, +.team-1 .team-box-name::before, +.team-1 .team-assist .member::after, +.team-1 .team-assist .member::before { color: var(--team-1-color); } -.team-bigbox:nth-of-type(2) .team-box-name::after, -.team-bigbox:nth-of-type(2) .team-box-name::before, -.team-bigbox:nth-of-type(2) .team-assist .member::after, -.team-bigbox:nth-of-type(2) .team-assist .member::before +.team-2 .team-box-name::after, +.team-2 .team-box-name::before, +.team-2 .team-assist .member::after, +.team-2 .team-assist .member::before { color: var(--team-2-color); /*vertical-align:top;*/ } -.team-bigbox:nth-of-type(3) .team-box-name::after, -.team-bigbox:nth-of-type(3) .team-box-name::before, -.team-bigbox:nth-of-type(3) .team-assist .member::after, -.team-bigbox:nth-of-type(3) .team-assist .member::before +.team-3 .team-box-name::after, +.team-3 .team-box-name::before, +.team-3 .team-assist .member::after, +.team-3 .team-assist .member::before { color: var(--team-3-color); } @@ -482,13 +482,13 @@ ul{ box-sizing: initial; margin: 0; } -.team-bigbox:nth-of-type(1) .team-members .team-leader .monster{ +.team-1 .team-members .team-leader .monster{ border-color: var(--team-1-color); } -.team-bigbox:nth-of-type(2) .team-members .team-leader .monster{ +.team-2 .team-members .team-leader .monster{ border-color: var(--team-2-color); } -.team-bigbox:nth-of-type(3) .team-members .team-leader .monster{ +.team-3 .team-members .team-leader .monster{ border-color: var(--team-3-color); }