添加unseen_show和unseen2_show,为隐匿武将添加图片显示
This commit is contained in:
parent
39b9875ca2
commit
3ebbcca196
Binary file not shown.
After Width: | Height: | Size: 27 KiB |
|
@ -2869,7 +2869,20 @@ div:not(.handcards)>.card>.info>span,
|
|||
#arena:not(.observe) .unseen2_v>.avatar2,
|
||||
#arena:not(.observe) .unseen_v>.name:not(.name2):not(.name_seat),
|
||||
#arena:not(.observe) .unseen2_v>.name2 {
|
||||
opacity: 0.2 !important
|
||||
opacity: 0.2 !important;
|
||||
}
|
||||
|
||||
.player>.unseen_show>.avatar,
|
||||
.player>.unseen2_show_v>.avatar2 {
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
#arena:not(.observe) .player:not([data-position='0']).unseen_show>.avatar,
|
||||
#arena:not(.observe) .player:not([data-position='0']).unseen2_show>.avatar2 {
|
||||
opacity: 1 !important;
|
||||
background-image:url('../../image/character/hidden_image.jpg') !important;
|
||||
background-position-x: 50% !important;
|
||||
background-size: cover !important;
|
||||
}
|
||||
|
||||
.player>.name_seat {
|
||||
|
|
|
@ -1651,6 +1651,7 @@ export class Player extends HTMLDivElement {
|
|||
this.sex = lib.character[this.name][0];
|
||||
if (this.group == 'unknown') this.group = lib.character[this.name][1];
|
||||
this.classList.remove('unseen');
|
||||
this.classList.remove('unseen_show');
|
||||
break;
|
||||
case 1:
|
||||
if (log !== false) game.log(this, '展示了副将', '#b' + this.name2);
|
||||
|
@ -1658,6 +1659,7 @@ export class Player extends HTMLDivElement {
|
|||
if (this.sex == 'unknown') this.sex = lib.character[this.name2][0];
|
||||
if (this.name.startsWith('unknown')) this.name = this.name2;
|
||||
this.classList.remove('unseen2');
|
||||
this.classList.remove('unseen2_show');
|
||||
break;
|
||||
case 2:
|
||||
if (log !== false) {
|
||||
|
@ -1671,6 +1673,8 @@ export class Player extends HTMLDivElement {
|
|||
if (this.group == 'unknown') this.group = lib.character[this.name][1];
|
||||
this.classList.remove('unseen');
|
||||
this.classList.remove('unseen2');
|
||||
this.classList.remove('unseen_show');
|
||||
this.classList.remove('unseen2_show');
|
||||
break;
|
||||
}
|
||||
if (!this.isUnseen(2)) {
|
||||
|
@ -2283,6 +2287,7 @@ export class Player extends HTMLDivElement {
|
|||
this.node.name.classList.add('long');
|
||||
}
|
||||
if (info[4].includes('hiddenSkill') && !this.noclick) {
|
||||
if (!_status.video && get.mode() != 'guozhan') this.classList.add('unseen_show');
|
||||
this.classList.add(_status.video ? 'unseen_v' : 'unseen');
|
||||
if (!this.node.name_seat && !_status.video) {
|
||||
this.node.name_seat = ui.create.div('.name.name_seat', get.verticalStr(get.translation(this.name)), this);
|
||||
|
@ -2304,6 +2309,7 @@ export class Player extends HTMLDivElement {
|
|||
|
||||
this.node.count.classList.add('p2');
|
||||
if (info2[4].includes('hiddenSkill') && !this.noclick) {
|
||||
if (!_status.video && get.mode() != 'guozhan') this.classList.add('unseen2_show');
|
||||
this.classList.add(_status.video ? 'unseen2_v' : 'unseen2');
|
||||
}
|
||||
this.node.name2.innerHTML = get.slimName(character2);
|
||||
|
|
Loading…
Reference in New Issue