This commit is contained in:
parent
2233a5d413
commit
d4e0ee756d
10
game/game.js
10
game/game.js
|
@ -18671,12 +18671,13 @@
|
||||||
if(avatar&&lib.character[this.name]&&this.node&&this.node.avatar){
|
if(avatar&&lib.character[this.name]&&this.node&&this.node.avatar){
|
||||||
node.classList.add('fullscreenavatar');
|
node.classList.add('fullscreenavatar');
|
||||||
ui.create.div('',ui.create.div(node));
|
ui.create.div('',ui.create.div(node));
|
||||||
// if(this.node.name){
|
// ui.create.div('',str.split('').join('<br>'),ui.create.div('.text.textbg',node));
|
||||||
// ui.create.div('.name',node).appendChild(this.node.name.cloneNode(true));
|
ui.create.div('',str.split('').join('<br>'),ui.create.div('.text',node));
|
||||||
// }
|
|
||||||
ui.create.div('',str.split('').join('<br>'),ui.create.div(node));
|
|
||||||
node.firstChild.firstChild.style.backgroundImage=this.node.avatar.style.backgroundImage;
|
node.firstChild.firstChild.style.backgroundImage=this.node.avatar.style.backgroundImage;
|
||||||
node.dataset.nature=nature||'unknown';
|
node.dataset.nature=nature||'unknown';
|
||||||
|
setTimeout(function(){
|
||||||
|
node.classList.add('flashtext');
|
||||||
|
},200);
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
node.innerHTML=str;
|
node.innerHTML=str;
|
||||||
|
@ -18700,6 +18701,7 @@
|
||||||
}
|
}
|
||||||
setTimeout(function(){
|
setTimeout(function(){
|
||||||
node.delete();
|
node.delete();
|
||||||
|
node.style.transform='scale(1.5)'
|
||||||
},avatar?1300:1000);
|
},avatar?1300:1000);
|
||||||
},
|
},
|
||||||
$damagepop:function(num,nature,font){
|
$damagepop:function(num,nature,font){
|
||||||
|
|
|
@ -2049,10 +2049,10 @@ div:not(.handcards)>.card>.info>span,
|
||||||
#window>.damage.fullscreenavatar[data-nature='fire']>div:first-child>div{
|
#window>.damage.fullscreenavatar[data-nature='fire']>div:first-child>div{
|
||||||
box-shadow: rgba(0, 0, 0, 0.2) 0 0 0 1px, rgba(0, 0, 0,0.5) 0 0 20px, rgba(0, 0, 0,0.3) 0 0 40px, rgba(232, 53, 53, 1) 0 0 80px;
|
box-shadow: rgba(0, 0, 0, 0.2) 0 0 0 1px, rgba(0, 0, 0,0.5) 0 0 20px, rgba(0, 0, 0,0.3) 0 0 40px, rgba(232, 53, 53, 1) 0 0 80px;
|
||||||
}
|
}
|
||||||
#window>.damage.fullscreenavatar>div:last-child{
|
#window>.damage.fullscreenavatar>.text{
|
||||||
display: table;
|
display: table;
|
||||||
}
|
}
|
||||||
#window>.damage.fullscreenavatar>div:last-child>div{
|
#window>.damage.fullscreenavatar>.text>div{
|
||||||
display: block;
|
display: block;
|
||||||
position: relative;
|
position: relative;
|
||||||
width: auto;
|
width: auto;
|
||||||
|
@ -2064,6 +2064,23 @@ div:not(.handcards)>.card>.info>span,
|
||||||
position: absolute;
|
position: absolute;
|
||||||
left: auto;
|
left: auto;
|
||||||
right: 165px;
|
right: 165px;
|
||||||
|
transform: scale(2.5);
|
||||||
|
opacity: 0;
|
||||||
|
}
|
||||||
|
#window>.damage.fullscreenavatar>.textbg{
|
||||||
|
transition: all 0s;
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
#window>.damage.fullscreenavatar.flashtext>.textbg{
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
/*#window>.damage.fullscreenavatar.flashtext>.text:not(.textbg)>div{
|
||||||
|
transform: scale(2);
|
||||||
|
opacity: 0;
|
||||||
|
}*/
|
||||||
|
#window>.damage.fullscreenavatar.flashtext>.text>div{
|
||||||
|
transform: none;
|
||||||
|
opacity: 1;
|
||||||
}
|
}
|
||||||
#window>.damage.fullscreenavatar>.name>div{
|
#window>.damage.fullscreenavatar>.name>div{
|
||||||
display: block;
|
display: block;
|
||||||
|
@ -2075,6 +2092,9 @@ div:not(.handcards)>.card>.info>span,
|
||||||
left: 20px;
|
left: 20px;
|
||||||
font-size: 40px;
|
font-size: 40px;
|
||||||
}
|
}
|
||||||
|
#window>.damage.fullscreenavatar.removing{
|
||||||
|
transition: all 0.3s;
|
||||||
|
}
|
||||||
.player>.damage,
|
.player>.damage,
|
||||||
#window>.damage {
|
#window>.damage {
|
||||||
font-family: 'huangcao','xinwei';
|
font-family: 'huangcao','xinwei';
|
||||||
|
|
Loading…
Reference in New Issue