Browse Source

修订一些外观

tags/v8.0
枫谷剑仙 7 years ago
parent
commit
8196ccc014
2 changed files with 23 additions and 45 deletions
  1. +13
    -21
      script.js
  2. +10
    -24
      style.css

+ 13
- 21
script.js View File

@@ -1,10 +1,18 @@
var ms = null;
var language = null;
var memberTeamObj = function(){
return {id:0,level:0,awoken:0,plus:[0,0,0],latent:[]}; //sawoken作为可选项目,默认不在内
this.id = 0;
this.level = 0;
this.awoken = 0;
this.plus = [0,0,0];
this.latent = [];
//sawoken作为可选项目,默认不在内
}
var memberAssistObj = function(){
return {id:0,level:0,awoken:0,plus:[0,0,0]};
this.id = 0;
this.level = 0;
this.awoken = 0;
this.plus = [0,0,0];
}
window.onload = function()
{
@@ -361,13 +369,6 @@ function initialize()
languageJS.type = "text/javascript";
languageJS.src = "languages/"+language.i18n+".js";
}
//计算用了多少潜觉格子
function usedHole(latent)
{
return latent.reduce(function(previous,current){
return previous + (current>= 12?2:1);
},0);
}
//改变一个怪物头像
function changeid(mon,monDom,latentDom)
{
@@ -503,7 +504,7 @@ function changeid(mon,monDom,latentDom)
}
}
}
//点击怪物头像,出现编辑
//点击怪物头像,出现编辑
function editMon(AorB,isAssist,tempIdx)
{
//数据
@@ -568,7 +569,7 @@ function editMon(AorB,isAssist,tempIdx)
editBox.querySelector(".edit-box-title").classList.add("edit-box-title-assist");
}
}
//编辑窗,修改怪物ID
function editBoxChangeMonId(id)
{
var md = ms[id]; //怪物固定数据
@@ -737,7 +738,7 @@ function refreshAwokenCount(team){
}else if (ai == 21) //SB
{
setCount(ai,awokenCountInTeam(team,ai,solo)+awokenCountInTeam(team,56,solo)*2);
}else if (ai == 52 || ai == 53 || ai == 56) //大手指,大SB
}else if (ai == 52 || ai == 53 || ai == 56) //大防封、大手指,大SB
{
continue;
}else
@@ -745,13 +746,4 @@ function refreshAwokenCount(team){
setCount(ai,awokenCountInTeam(team,ai,solo));
}
}
/*
setCount(21,awokenCountInTeam(team,21)+awokenCountInTeam(team,56)*2); //SB+大SB
setCount(28,awokenCountInTeam(team,28)); //SX
setCount(11,awokenCountInTeam(team,11)); //防暗
setCount(12,awokenCountInTeam(team,12)); //防废
setCount(13,awokenCountInTeam(team,13)); //防毒
setCount(54,awokenCountInTeam(team,54)); //防云
setCount(55,awokenCountInTeam(team,55)); //防封条
*/
}

+ 10
- 24
style.css View File

@@ -283,35 +283,21 @@ ul{
}

/*队伍的潜觉*/
.formation-box .latents{
.formation-latents {
height: 44px;
}
.formation-latents .latents{
width: 108px;
/*float:left;*/
margin-bottom: -19px;
margin-bottom: -20px;
display: inline-block;
}
.formation-box .latent-ul{
.formation-latents .latent-ul{
font-size: 0;
width: 152px;
transform: translate(-22px,-10px) scale(0.71);
transform: translate(-22px,-10px) scale(0.68);
}

.a-awoken-icon-1 li{
background-image: url(images/sha.png);
background-size: 50px 21px;
width: 50px;
height: 21px;
margin-right: 4px;
}
.a-awoken-icon-2 li{
background-image: url(images/fangzuo.png);
background-size: 21px 21px;
width: 21px;
height: 21px;
margin-left: 6px;
}
.a-awoken-icon-ul li{
float:left;
}
/*队长的边框*/
.formation-A-box .formation-team .team-leader .monster, .formation-B-box .formation-team .team-leader .monster{
border-radius: 10px;
@@ -461,10 +447,10 @@ ul{
height: 32px;
}
.awoken-ul li{
margin-left: 5px;
margin-right: 5px;
}
.awoken-ul li:first-of-type{
margin-left: 0;
.awoken-ul li:last-of-type{
margin-right: 0;
}
.edit-box .awoken-ul .awoken-icon{
cursor: pointer;


Loading…
Cancel
Save