This commit is contained in:
libccy 2017-04-01 10:51:58 +08:00
parent 868012a516
commit d568a5c26a
8 changed files with 45 additions and 13 deletions

View File

@ -12475,12 +12475,13 @@
if(this.hp==0){ if(this.hp==0){
hp.lastChild.classList.add('lost'); hp.lastChild.classList.add('lost');
} }
hp.classList.add('text'); hp.classList.add('textstyle');
hp.classList.remove('long'); // hp.classList.remove('long');
} }
else{ else{
hp.innerHTML=''; hp.innerHTML='';
hp.classList.remove('text'); hp.classList.remove('text');
hp.classList.remove('textstyle');
while(this.maxHp>hp.childNodes.length){ while(this.maxHp>hp.childNodes.length){
ui.create.div(hp); ui.create.div(hp);
} }
@ -12488,11 +12489,15 @@
hp.removeChild(hp.lastChild); hp.removeChild(hp.lastChild);
} }
for(var i=0;i<this.maxHp;i++){ for(var i=0;i<this.maxHp;i++){
var index=i;
if(get.is.newLayout()){
index=this.maxHp-i-1;
}
if(i<this.hp){ if(i<this.hp){
hp.childNodes[this.maxHp-i-1].classList.remove('lost'); hp.childNodes[index].classList.remove('lost');
} }
else{ else{
hp.childNodes[this.maxHp-i-1].classList.add('lost'); hp.childNodes[index].classList.add('lost');
} }
} }
// if(this.maxHp==9){ // if(this.maxHp==9){
@ -34248,19 +34253,15 @@
} }
node.node.name.innerHTML=get.slimName(item); node.node.name.innerHTML=get.slimName(item);
if(lib.config.buttoncharacter_style=='default'){ if(lib.config.buttoncharacter_style=='default'){
node.node.hp.dataset.condition='high';
node.node.name.dataset.nature=get.groupnature(infoitem[1]); node.node.name.dataset.nature=get.groupnature(infoitem[1]);
node.classList.add('newstyle'); node.classList.add('newstyle');
ui.create.div(node.node.hp); ui.create.div(node.node.hp);
var textnode=ui.create.div('.text',get.numStr(infoitem[2]),node.node.hp); var textnode=ui.create.div('.text',get.numStr(infoitem[2]),node.node.hp);
if(infoitem[2]<=3){ if(infoitem[2]<=3){
textnode.dataset.nature='watermx'; node.node.hp.dataset.condition='mid';
}
else if(infoitem[2]<=6){
textnode.dataset.nature='soilmx';
} }
else{ else{
textnode.dataset.nature='firemx'; node.node.hp.dataset.condition='high';
} }
} }
else{ else{

View File

@ -1616,6 +1616,7 @@ div:not(.handcards)>.card>.info>span,
width: auto; width: auto;
height: auto; height: auto;
transform: none !important; transform: none !important;
text-shadow: black 0 0 2px, black 0 0 3px;
} }
/*--------确认--------*/ /*--------确认--------*/
#control { #control {
@ -2095,6 +2096,9 @@ div:not(.handcards)>.card>.info>span,
.hp.text { .hp.text {
top: 18px; top: 18px;
} }
.hp.textstyle{
font-family: 'xinwei'
}
.hp>div { .hp>div {
width: 8px; width: 8px;
height: 8px; height: 8px;
@ -2154,13 +2158,16 @@ div:not(.handcards)>.card>.info>span,
filter: grayscale(1); filter: grayscale(1);
-webkit-filter: grayscale(1); -webkit-filter: grayscale(1);
} }
.hp.text[data-condition="low"] { .hp.text[data-condition="low"],
.hp.textstyle[data-condition="low"] {
text-shadow: black 0 0 1px,rgba(232, 53, 53,1) 0 0 2px,rgba(232, 53, 53,1) 0 0 5px,rgba(232, 53, 53,1) 0 0 10px text-shadow: black 0 0 1px,rgba(232, 53, 53,1) 0 0 2px,rgba(232, 53, 53,1) 0 0 5px,rgba(232, 53, 53,1) 0 0 10px
} }
.hp.text[data-condition="mid"] { .hp.text[data-condition="mid"],
.hp.textstyle[data-condition="mid"] {
text-shadow: black 0 0 1px,rgba(255, 203, 0,1) 0 0 2px,rgba(255, 203, 0,1) 0 0 5px,rgba(255, 203, 0,1) 0 0 10px text-shadow: black 0 0 1px,rgba(255, 203, 0,1) 0 0 2px,rgba(255, 203, 0,1) 0 0 5px,rgba(255, 203, 0,1) 0 0 10px
} }
.hp.text[data-condition="high"] { .hp.text[data-condition="high"],
.hp.textstyle[data-condition="high"] {
text-shadow: rgba(57, 123, 4,1) 0 0 2px,rgba(57, 123, 4,1) 0 0 5px,rgba(57, 123, 4,1) 0 0 10px text-shadow: rgba(57, 123, 4,1) 0 0 2px,rgba(57, 123, 4,1) 0 0 5px,rgba(57, 123, 4,1) 0 0 10px
} }

View File

@ -42,3 +42,7 @@
#arena.oldlayout .player .hp:not(.text):not(.actcount):not(.treasure)>.lost{ #arena.oldlayout .player .hp:not(.text):not(.actcount):not(.treasure)>.lost{
transform: scale(1.6); transform: scale(1.6);
} }
.button.newstyle>.hp>.text{
margin-left: 5px;
}

View File

@ -46,3 +46,7 @@
#arena.oldlayout .player .hp:not(.text):not(.actcount):not(.treasure)>.lost{ #arena.oldlayout .player .hp:not(.text):not(.actcount):not(.treasure)>.lost{
transform: scale(1.6); transform: scale(1.6);
} }
.button.newstyle>.hp>.text{
margin-left: 5px;
}

View File

@ -46,3 +46,7 @@
#arena.oldlayout .player .hp:not(.text):not(.actcount):not(.treasure)>.lost{ #arena.oldlayout .player .hp:not(.text):not(.actcount):not(.treasure)>.lost{
transform: scale(1.6); transform: scale(1.6);
} }
.button.newstyle>.hp>.text{
margin-left: 5px;
}

View File

@ -43,3 +43,7 @@
#arena.oldlayout .player .hp:not(.text):not(.actcount):not(.treasure)>.lost{ #arena.oldlayout .player .hp:not(.text):not(.actcount):not(.treasure)>.lost{
transform: scale(1.6); transform: scale(1.6);
} }
.button.newstyle>.hp>.text{
margin-left: 5px;
}

View File

@ -48,3 +48,7 @@
#arena.oldlayout .player .hp:not(.text):not(.actcount):not(.treasure)>.lost{ #arena.oldlayout .player .hp:not(.text):not(.actcount):not(.treasure)>.lost{
transform: scale(1.6); transform: scale(1.6);
} }
.button.newstyle>.hp>.text{
margin-left: 5px;
}

View File

@ -46,3 +46,7 @@
#arena.oldlayout .player .hp:not(.text):not(.actcount):not(.treasure)>.lost{ #arena.oldlayout .player .hp:not(.text):not(.actcount):not(.treasure)>.lost{
transform: scale(1.6); transform: scale(1.6);
} }
.button.newstyle>.hp>.text{
margin-left: 5px;
}