1、新增使用宠物进化的宠物搜索;2、去除简单搜索按钮
This commit is contained in:
parent
768a9fbe12
commit
dcab4e0fde
|
@ -308,9 +308,6 @@
|
|||
content: "Dark Attribute Enemy";
|
||||
}
|
||||
|
||||
.setting-box .row-mon-id .open-search::before{
|
||||
content: "Simple Search";
|
||||
}
|
||||
.search-box::before{
|
||||
content: "Search Cards";
|
||||
}
|
||||
|
@ -415,6 +412,10 @@
|
|||
{
|
||||
content: "⛓️Evo Search";
|
||||
}
|
||||
.search-evolution-by-this::after
|
||||
{
|
||||
content: "Cards that need this card as evolutionary material";
|
||||
}
|
||||
.real-time-change-card-label::after
|
||||
{
|
||||
content: "Real-Time change card";
|
||||
|
|
|
@ -300,9 +300,6 @@
|
|||
content: "暗属性の敵";
|
||||
}
|
||||
|
||||
.setting-box .row-mon-id .open-search::before{
|
||||
content: "簡単な検索";
|
||||
}
|
||||
.search-box::before{
|
||||
content: "モンスターの検索";
|
||||
}
|
||||
|
@ -407,6 +404,10 @@
|
|||
{
|
||||
content: "⛓️進化サーチ";
|
||||
}
|
||||
.search-evolution-by-this::after
|
||||
{
|
||||
content: "このカードを進化的な素材として必要とするカード";
|
||||
}
|
||||
.real-time-change-card-label::after
|
||||
{
|
||||
content: "カードを即座に更新します";
|
||||
|
|
|
@ -297,9 +297,6 @@
|
|||
content: "숨겨진 속성의 적";
|
||||
}
|
||||
|
||||
.setting-box .row-mon-id .open-search::before{
|
||||
content: "간단한 검색";
|
||||
}
|
||||
.search-box::before{
|
||||
content: "몬스터 검색";
|
||||
}
|
||||
|
@ -404,6 +401,10 @@
|
|||
{
|
||||
content: "⛓️진화 계통";
|
||||
}
|
||||
.search-evolution-by-this::after
|
||||
{
|
||||
content: "진화 자료로이 카드를 필요로하는 카드";
|
||||
}
|
||||
.real-time-change-card-label::after
|
||||
{
|
||||
content: "카드를 즉시 업데이트합니다";
|
||||
|
|
|
@ -303,9 +303,6 @@
|
|||
content: "暗屬性敵人";
|
||||
}
|
||||
|
||||
.setting-box .row-mon-id .open-search::before{
|
||||
content: "簡易搜索";
|
||||
}
|
||||
.search-box::before{
|
||||
content: "搜索怪物";
|
||||
}
|
||||
|
@ -410,6 +407,10 @@
|
|||
{
|
||||
content: "⛓️進化鏈";
|
||||
}
|
||||
.search-evolution-by-this::after
|
||||
{
|
||||
content: "需要此寵物作為進化素材的寵物";
|
||||
}
|
||||
.real-time-change-card-label::after
|
||||
{
|
||||
content: "即時更新卡片";
|
||||
|
|
|
@ -303,9 +303,6 @@
|
|||
content: "暗属性敵人";
|
||||
}
|
||||
|
||||
.setting-box .row-mon-id .open-search::before{
|
||||
content: "简易搜索";
|
||||
}
|
||||
.search-box::before{
|
||||
content: "搜索怪物";
|
||||
}
|
||||
|
@ -410,6 +407,10 @@
|
|||
{
|
||||
content: "⛓️进化链";
|
||||
}
|
||||
.search-evolution-by-this::after
|
||||
{
|
||||
content: "需要此宠物作为进化素材的宠物";
|
||||
}
|
||||
.real-time-change-card-label::after
|
||||
{
|
||||
content: "即时更新卡片";
|
||||
|
|
|
@ -916,7 +916,7 @@ var formation = new Formation(teamsCount,5);
|
|||
<div class="setting-row row-mon-id">
|
||||
<input type="checkbox" class="config-checkbox-ipt" name="real-time-change-card" id="real-time-change-card"><label class="config-checkbox-lbl real-time-change-card-label" for="real-time-change-card"><div class="config-checkbox-lbl-cicle"></div></label>
|
||||
<button class="open-evolutionary-tree"></button>
|
||||
<button class="open-search"></button><!--搜索怪物按钮-->
|
||||
<button class="search-evolution-by-this"><icon class="type-icon" data-type-icon="0"></icon></button>
|
||||
<input type="search" class="m-id" list="monsters-name-list"/><button class="search-by-string"></button>
|
||||
<datalist id="monsters-name-list"></datalist>
|
||||
<ul class="evo-card-list"></ul>
|
||||
|
|
19
script.js
19
script.js
|
@ -2127,13 +2127,8 @@ function initialize() {
|
|||
evolutionaryTreeMask_Close.onclick = function(){evolutionaryTreeMask.hide();};
|
||||
const openEvolutionaryTree = settingBox.querySelector(".row-mon-id .open-evolutionary-tree");
|
||||
openEvolutionaryTree.onclick = function() {evolutionaryTreeMask.show(editBox.mid)};
|
||||
|
||||
const searchOpen = settingBox.querySelector(".row-mon-id .open-search");
|
||||
searchOpen.onclick = function() {
|
||||
s_includeSuperAwoken.onchange();
|
||||
s_canAssist.onchange();
|
||||
searchBox.classList.toggle(className_displayNone);
|
||||
};
|
||||
const searchEvolutionByThis = settingBox.querySelector(".row-mon-id .search-evolution-by-this");
|
||||
searchEvolutionByThis.onclick = function() {showSearch(Cards.filter(card=>card.evoMaterials.includes(editBox.mid)))};
|
||||
|
||||
const s_attr1s = Array.from(searchBox.querySelectorAll(".attrs-div .attr-list-1 .attr-radio"));
|
||||
const s_attr2s = Array.from(searchBox.querySelectorAll(".attrs-div .attr-list-2 .attr-radio"));
|
||||
|
@ -2566,6 +2561,8 @@ function initialize() {
|
|||
|
||||
//字符串搜索
|
||||
btnSearchByString.onclick = function() {
|
||||
s_includeSuperAwoken.onchange();
|
||||
s_canAssist.onchange();
|
||||
showSearch(searchByString(monstersID.value));
|
||||
};
|
||||
//觉醒
|
||||
|
@ -3349,6 +3346,14 @@ function editBoxChangeMonId(id) {
|
|||
{
|
||||
openEvolutionaryTree.classList.add(className_displayNone); //隐藏进化树按钮
|
||||
}
|
||||
const searchEvolutionByThis = settingBox.querySelector(".row-mon-id .search-evolution-by-this");
|
||||
if (card.types.includes(0))
|
||||
{
|
||||
searchEvolutionByThis.classList.remove(className_displayNone);
|
||||
}else
|
||||
{
|
||||
searchEvolutionByThis.classList.add(className_displayNone);
|
||||
}
|
||||
|
||||
const mType = monInfoBox.querySelectorAll(".monster-type li");
|
||||
for (let ti = 0; ti < mType.length; ti++) {
|
||||
|
|
|
@ -788,7 +788,7 @@ var formation = new Formation(teamsCount,6);
|
|||
<div class="setting-row row-mon-id">
|
||||
<input type="checkbox" class="config-checkbox-ipt" name="real-time-change-card" id="real-time-change-card"><label class="config-checkbox-lbl real-time-change-card-label" for="real-time-change-card"><div class="config-checkbox-lbl-cicle"></div></label>
|
||||
<button class="open-evolutionary-tree"></button>
|
||||
<button class="open-search"></button><!--搜索怪物按钮-->
|
||||
<button class="search-evolution-by-this"><icon class="type-icon" data-type-icon="0"></icon></button>
|
||||
<input type="search" class="m-id" list="monsters-name-list"/><button class="search-by-string"></button>
|
||||
<datalist id="monsters-name-list"></datalist>
|
||||
<ul class="evo-card-list"></ul>
|
||||
|
|
|
@ -1804,6 +1804,7 @@ icon.inflicts::after
|
|||
border: 1px solid white;
|
||||
border-radius: 5px;
|
||||
background: grey;
|
||||
width: 100%;
|
||||
}
|
||||
.search-box .search-list-length
|
||||
{
|
||||
|
@ -2678,6 +2679,11 @@ table .orb-icon
|
|||
{
|
||||
content: "⛓️进化链";
|
||||
}*/
|
||||
.search-evolution-by-this icon
|
||||
{
|
||||
transform: scale(50%);
|
||||
margin: -8px;
|
||||
}
|
||||
|
||||
.mask
|
||||
{
|
||||
|
|
|
@ -1669,7 +1669,7 @@ var formation = new Formation(teamsCount,6);
|
|||
<div class="setting-row row-mon-id">
|
||||
<input type="checkbox" class="config-checkbox-ipt" name="real-time-change-card" id="real-time-change-card"><label class="config-checkbox-lbl real-time-change-card-label" for="real-time-change-card"><div class="config-checkbox-lbl-cicle"></div></label>
|
||||
<button class="open-evolutionary-tree"></button>
|
||||
<button class="open-search"></button><!--搜索怪物按钮-->
|
||||
<button class="search-evolution-by-this"><icon class="type-icon" data-type-icon="0"></icon></button>
|
||||
<input type="search" class="m-id" list="monsters-name-list"/><button class="search-by-string"></button>
|
||||
<datalist id="monsters-name-list"></datalist>
|
||||
<ul class="evo-card-list"></ul>
|
||||
|
|
Loading…
Reference in New Issue