This commit is contained in:
parent
868012a516
commit
d568a5c26a
21
game/game.js
21
game/game.js
|
@ -12475,12 +12475,13 @@
|
|||
if(this.hp==0){
|
||||
hp.lastChild.classList.add('lost');
|
||||
}
|
||||
hp.classList.add('text');
|
||||
hp.classList.remove('long');
|
||||
hp.classList.add('textstyle');
|
||||
// hp.classList.remove('long');
|
||||
}
|
||||
else{
|
||||
hp.innerHTML='';
|
||||
hp.classList.remove('text');
|
||||
hp.classList.remove('textstyle');
|
||||
while(this.maxHp>hp.childNodes.length){
|
||||
ui.create.div(hp);
|
||||
}
|
||||
|
@ -12488,11 +12489,15 @@
|
|||
hp.removeChild(hp.lastChild);
|
||||
}
|
||||
for(var i=0;i<this.maxHp;i++){
|
||||
var index=i;
|
||||
if(get.is.newLayout()){
|
||||
index=this.maxHp-i-1;
|
||||
}
|
||||
if(i<this.hp){
|
||||
hp.childNodes[this.maxHp-i-1].classList.remove('lost');
|
||||
hp.childNodes[index].classList.remove('lost');
|
||||
}
|
||||
else{
|
||||
hp.childNodes[this.maxHp-i-1].classList.add('lost');
|
||||
hp.childNodes[index].classList.add('lost');
|
||||
}
|
||||
}
|
||||
// if(this.maxHp==9){
|
||||
|
@ -34248,19 +34253,15 @@
|
|||
}
|
||||
node.node.name.innerHTML=get.slimName(item);
|
||||
if(lib.config.buttoncharacter_style=='default'){
|
||||
node.node.hp.dataset.condition='high';
|
||||
node.node.name.dataset.nature=get.groupnature(infoitem[1]);
|
||||
node.classList.add('newstyle');
|
||||
ui.create.div(node.node.hp);
|
||||
var textnode=ui.create.div('.text',get.numStr(infoitem[2]),node.node.hp);
|
||||
if(infoitem[2]<=3){
|
||||
textnode.dataset.nature='watermx';
|
||||
}
|
||||
else if(infoitem[2]<=6){
|
||||
textnode.dataset.nature='soilmx';
|
||||
node.node.hp.dataset.condition='mid';
|
||||
}
|
||||
else{
|
||||
textnode.dataset.nature='firemx';
|
||||
node.node.hp.dataset.condition='high';
|
||||
}
|
||||
}
|
||||
else{
|
||||
|
|
|
@ -1616,6 +1616,7 @@ div:not(.handcards)>.card>.info>span,
|
|||
width: auto;
|
||||
height: auto;
|
||||
transform: none !important;
|
||||
text-shadow: black 0 0 2px, black 0 0 3px;
|
||||
}
|
||||
/*--------确认--------*/
|
||||
#control {
|
||||
|
@ -2095,6 +2096,9 @@ div:not(.handcards)>.card>.info>span,
|
|||
.hp.text {
|
||||
top: 18px;
|
||||
}
|
||||
.hp.textstyle{
|
||||
font-family: 'xinwei'
|
||||
}
|
||||
.hp>div {
|
||||
width: 8px;
|
||||
height: 8px;
|
||||
|
@ -2154,13 +2158,16 @@ div:not(.handcards)>.card>.info>span,
|
|||
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
|
||||
}
|
||||
.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
|
||||
}
|
||||
.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
|
||||
}
|
||||
|
||||
|
|
|
@ -42,3 +42,7 @@
|
|||
#arena.oldlayout .player .hp:not(.text):not(.actcount):not(.treasure)>.lost{
|
||||
transform: scale(1.6);
|
||||
}
|
||||
|
||||
.button.newstyle>.hp>.text{
|
||||
margin-left: 5px;
|
||||
}
|
||||
|
|
|
@ -46,3 +46,7 @@
|
|||
#arena.oldlayout .player .hp:not(.text):not(.actcount):not(.treasure)>.lost{
|
||||
transform: scale(1.6);
|
||||
}
|
||||
|
||||
.button.newstyle>.hp>.text{
|
||||
margin-left: 5px;
|
||||
}
|
||||
|
|
|
@ -46,3 +46,7 @@
|
|||
#arena.oldlayout .player .hp:not(.text):not(.actcount):not(.treasure)>.lost{
|
||||
transform: scale(1.6);
|
||||
}
|
||||
|
||||
.button.newstyle>.hp>.text{
|
||||
margin-left: 5px;
|
||||
}
|
||||
|
|
|
@ -43,3 +43,7 @@
|
|||
#arena.oldlayout .player .hp:not(.text):not(.actcount):not(.treasure)>.lost{
|
||||
transform: scale(1.6);
|
||||
}
|
||||
|
||||
.button.newstyle>.hp>.text{
|
||||
margin-left: 5px;
|
||||
}
|
||||
|
|
|
@ -48,3 +48,7 @@
|
|||
#arena.oldlayout .player .hp:not(.text):not(.actcount):not(.treasure)>.lost{
|
||||
transform: scale(1.6);
|
||||
}
|
||||
|
||||
.button.newstyle>.hp>.text{
|
||||
margin-left: 5px;
|
||||
}
|
||||
|
|
|
@ -46,3 +46,7 @@
|
|||
#arena.oldlayout .player .hp:not(.text):not(.actcount):not(.treasure)>.lost{
|
||||
transform: scale(1.6);
|
||||
}
|
||||
|
||||
.button.newstyle>.hp>.text{
|
||||
margin-left: 5px;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue