增加额外的队员类型显示开关;进化类技能显示原文;

This commit is contained in:
枫谷剑仙 2023-08-21 14:31:59 +08:00
parent b8f3c14758
commit 0f3c034ce2
11 changed files with 52 additions and 26 deletions

View File

@ -255,6 +255,9 @@ label[for="show-member-skill-cd"]::after{
label[for="show-member-ability"]::after{
content:"⚔Member's Ability";
}
label[for="show-member-types"]::after{
content:"Member's Types";
}
label[for="show-member-awoken"]::after{
content:"👁Member's Awoken";
}

View File

@ -252,6 +252,9 @@ label[for="show-member-skill-cd"]::after{
label[for="show-member-ability"]::after{
content:"⚔️メンバーの能力";
}
label[for="show-member-types"]::after{
content:"メンバーのタイプ";
}
label[for="show-member-awoken"]::after{
content:"👁️メンバーの覚醒";
}

View File

@ -247,8 +247,11 @@ label[for="show-member-skill-cd"]::after{
label[for="show-member-ability"]::after{
content:"⚔️회원의 능력";
}
label[for="show-member-types"]::after{
content:"멤버의 타입";
}
label[for="show-member-awoken"]::after{
content:"👁️회원이 깨어났다";
content:"👁️멤버의 유형";
}
label[for="show-team-total-info"]::after{
content:"팀의 HP 정보";

View File

@ -254,6 +254,9 @@ label[for="show-member-skill-cd"]::after{
label[for="show-member-ability"]::after{
content:"⚔️隊員能力值";
}
label[for="show-member-types"]::after{
content:"隊員類型";
}
label[for="show-member-awoken"]::after{
content:"👁️隊員覺醒";
}

View File

@ -253,6 +253,9 @@ label[for="show-member-skill-cd"]::after{
label[for="show-member-ability"]::after{
content:"⚔️队员能力值";
}
label[for="show-member-types"]::after{
content:"队员类型";
}
label[for="show-member-awoken"]::after{
content:"👁️队员觉醒";
}

View File

@ -74,11 +74,13 @@ const teamsCount = 2;
<input type="checkbox" class="switch-ipt" id="show-card-rarity"><label class="switch-lbl" for="show-card-rarity"><circle></circle></label>
<input type="checkbox" class="switch-ipt" id="show-member-skill-cd"><label class="switch-lbl" for="show-member-skill-cd"><circle></circle></label>
<input type="checkbox" class="switch-ipt" id="show-member-ability"><label class="switch-lbl" for="show-member-ability"><circle></circle></label>
<input type="checkbox" class="switch-ipt" id="show-member-types"><label class="switch-lbl" for="show-member-types"><circle></circle></label>
<input type="checkbox" class="switch-ipt" id="show-member-awoken"><label class="switch-lbl" for="show-member-awoken"><circle></circle></label>
<input type="checkbox" class="switch-ipt" id="show-team-total-info"><label class="switch-lbl" for="show-team-total-info"><circle></circle></label>
<input type="checkbox" class="switch-ipt" id="show-team-attrtype-count"><label class="switch-lbl" for="show-team-attrtype-count"><circle></circle></label>
<input type="checkbox" class="switch-ipt" id="show-team-awoken-effect"><label class="switch-lbl" for="show-team-awoken-effect"><circle></circle></label>
<input type="checkbox" class="switch-ipt" id="show-team-awoken-count"><label class="switch-lbl" for="show-team-awoken-count"><circle></circle></label>
<input type="checkbox" class="switch-ipt" id="show-rich-text-tools"><label class="switch-lbl" for="show-rich-text-tools"><circle></circle></label>
</details>
<div class="status"></div>
<div>

View File

@ -1720,29 +1720,6 @@ const skillObjectParsers = {
},
};
function renderSkillTitle(skillId, { showTurns } = {}) {
const skill = Skills[skillId];
const div = document.createElement("summary");
div.className = "evolved-skill-title";
const name = div.appendChild(document.createElement("span"));
name.className = "skill-name";
name.textContent = skill.name;
name.setAttribute("data-skillid", skillId);
//name.onclick = fastShowSkill;
if (showTurns) {
const cd = div.appendChild(document.createElement("span"));
cd.className = "skill-cd";
cd.textContent = skill.initialCooldown - skill.maxLevel + 1;
if (skill.maxLevel > 1) {
const level = div.appendChild(document.createElement("span"));
level.className = "skill-level-label";
level.textContent = skill.maxLevel;
}
}
return div;
}
function renderSkillEntry(skills)
{
//按住Ctrl点击技能在控制台输出技能的对象
@ -1888,6 +1865,32 @@ function createSkillIcon(iconType, className){
function renderSkill(skill, option = {})
{
function renderSkillTitle(skillId, { showTurns } = {}) {
const skill = Skills[skillId];
const div = document.createElement("summary");
div.className = "evolved-skill-title";
const name = div.appendChild(document.createElement("span"));
name.className = "skill-name";
name.textContent = skill.name;
name.setAttribute("data-skillid", skillId);
//name.onclick = fastShowSkill;
if (showTurns) {
const cd = div.appendChild(document.createElement("span"));
cd.className = "skill-cd";
cd.textContent = skill.initialCooldown - skill.maxLevel + 1;
if (skill.maxLevel > 1) {
const level = div.appendChild(document.createElement("span"));
level.className = "skill-level-label";
level.textContent = skill.maxLevel;
}
}
const originalSkill = document.createElement("div");
originalSkill.className = "skill-datail-original";
originalSkill.append(parseSkillDescription(skill));
return [div, originalSkill].nodeJoin();
}
const frg = document.createDocumentFragment();
if (typeof localTranslating == "undefined") return frg;
const tsp = localTranslating.skill_parse;

View File

@ -4468,7 +4468,7 @@ function initialize() {
//合并技能开关
const mergeSill = document.getElementById("merge-skill");
mergeSill.checked = localStorage_getBoolean(cfgPrefix + mergeSill.id);
mergeSill.checked = localStorage_getBoolean(cfgPrefix + mergeSill.id, true);
mergeSill.onchange = function(event){
if (event) localStorage.setItem(cfgPrefix + this.id, Number(this.checked));
merge_skill = this.checked;

View File

@ -56,6 +56,7 @@ const teamsCount = 1;
<input type="checkbox" class="switch-ipt" id="show-card-rarity"><label class="switch-lbl" for="show-card-rarity"><circle></circle></label>
<input type="checkbox" class="switch-ipt" id="show-member-skill-cd"><label class="switch-lbl" for="show-member-skill-cd"><circle></circle></label>
<input type="checkbox" class="switch-ipt" id="show-member-ability"><label class="switch-lbl" for="show-member-ability"><circle></circle></label>
<input type="checkbox" class="switch-ipt" id="show-member-types"><label class="switch-lbl" for="show-member-types"><circle></circle></label>
<input type="checkbox" class="switch-ipt" id="show-member-awoken"><label class="switch-lbl" for="show-member-awoken"><circle></circle></label>
<input type="checkbox" class="switch-ipt" id="show-team-total-info"><label class="switch-lbl" for="show-team-total-info"><circle></circle></label>
<input type="checkbox" class="switch-ipt" id="show-team-attrtype-count"><label class="switch-lbl" for="show-team-attrtype-count"><circle></circle></label>

View File

@ -722,7 +722,8 @@ body:not(.show-card-id) .monster .id, /*卡片id*/
body:not(.show-card-rarity) .monster .rarity, /*卡片稀有度*/
body:not(.show-member-skill-cd) .monster .skill-cd.max-skill, /*队员CD*/
body:not(.show-member-ability) .team-ability, /*队员三维*/
body:not(.show-member-awoken) :where(.team-assist-awoken , .team-member-awoken, .team-member-types), /*武器觉醒、队员觉醒、队员类型*/
body:not(.show-member-types) .team-member-types, /*武器觉醒、队员觉醒、队员类型*/
body:not(.show-member-awoken) :where(.team-assist-awoken , .team-member-awoken), /*武器觉醒、队员觉醒、队员类型*/
body:not(.show-team-awoken-count) .team-awoken, /*队伍觉醒统计*/
body:not(.show-team-attrtype-count) .tIf-addition-info, /*稀有度、属性与类型计数*/
body:not(.show-team-awoken-effect) .team-awoken-effect, /*队伍觉醒效果统计*/
@ -2737,6 +2738,8 @@ body:not(.solo) .awoken-icon[data-awoken-icon="64"]::after
.skill-datail-original
{
border-bottom: #9C743E solid 2px;
font-family: var(--game-font-family);
font-weight: normal;
}
.skill-datail-parsed .detail-search::before{
content: "🔍";

View File

@ -67,11 +67,13 @@ const teamsCount = 3;
<input type="checkbox" class="switch-ipt" id="show-card-rarity"><label class="switch-lbl" for="show-card-rarity"><circle></circle></label>
<input type="checkbox" class="switch-ipt" id="show-member-skill-cd"><label class="switch-lbl" for="show-member-skill-cd"><circle></circle></label>
<input type="checkbox" class="switch-ipt" id="show-member-ability"><label class="switch-lbl" for="show-member-ability"><circle></circle></label>
<input type="checkbox" class="switch-ipt" id="show-member-types"><label class="switch-lbl" for="show-member-types"><circle></circle></label>
<input type="checkbox" class="switch-ipt" id="show-member-awoken"><label class="switch-lbl" for="show-member-awoken"><circle></circle></label>
<input type="checkbox" class="switch-ipt" id="show-team-total-info"><label class="switch-lbl" for="show-team-total-info"><circle></circle></label>
<input type="checkbox" class="switch-ipt" id="show-team-attrtype-count"><label class="switch-lbl" for="show-team-attrtype-count"><circle></circle></label>
<input type="checkbox" class="switch-ipt" id="show-team-awoken-effect"><label class="switch-lbl" for="show-team-awoken-effect"><circle></circle></label>
<input type="checkbox" class="switch-ipt" id="show-team-awoken-count"><label class="switch-lbl" for="show-team-awoken-count"><circle></circle></label>
<input type="checkbox" class="switch-ipt" id="show-rich-text-tools"><label class="switch-lbl" for="show-rich-text-tools"><circle></circle></label>
</details>
<div class="status"></div>
<div>