WIP
This commit is contained in:
parent
61604355c1
commit
23e6da2808
@ -39,24 +39,40 @@
|
|||||||
</div>
|
</div>
|
||||||
<!-- <img class="MD2HeroCard " src="{{imgUrl('Heros/'+className+'.jpg')}}" (click)="toggleFlip()"> -->
|
<!-- <img class="MD2HeroCard " src="{{imgUrl('Heros/'+className+'.jpg')}}" (click)="toggleFlip()"> -->
|
||||||
|
|
||||||
<div class="d-none d-sm-block">
|
<!-- Action Buttons (Desktop/Landscape) -->
|
||||||
<div *ngIf="hero.uiActivating&&hero.remainActions>0">
|
<div class="hero-actions d-none d-sm-block">
|
||||||
<button nbButton hero class="mr-2" status="info" (click)="moveAction()"
|
<div class="action-buttons-group" *ngIf="hero.uiActivating && hero.remainActions > 0">
|
||||||
*ngIf="!showMoveAction">Move</button>
|
<button nbButton hero class="action-btn" status="info" (click)="moveAction()"
|
||||||
<button nbButton hero class="mr-2" status="info" (click)="moveActionEnd()"
|
*ngIf="!showMoveAction">
|
||||||
*ngIf="showMoveAction">Move
|
<nb-icon icon="arrow-forward-outline" class="mr-1"></nb-icon>
|
||||||
End</button>
|
Move
|
||||||
<button nbButton hero class="mr-2" status="danger" (click)="action('attackAction')"
|
</button>
|
||||||
*ngIf="!showMoveAction&&allowAttack">Attack!</button>
|
<button nbButton hero class="action-btn" status="info" (click)="moveActionEnd()"
|
||||||
<button nbButton hero class="mr-2" status="info" (click)="action('tradeAction')"
|
*ngIf="showMoveAction">
|
||||||
*ngIf="!showMoveAction">Trade</button>
|
<nb-icon icon="checkmark-outline" class="mr-1"></nb-icon>
|
||||||
<button nbButton hero status="success" (click)="action('recoveryAction')"
|
End Move
|
||||||
*ngIf="!showMoveAction">Recovery</button>
|
</button>
|
||||||
|
<button nbButton hero class="action-btn" status="danger"
|
||||||
|
(click)="action('attackAction')" *ngIf="!showMoveAction && allowAttack">
|
||||||
|
<nb-icon icon="flash-outline" class="mr-1"></nb-icon>
|
||||||
|
Attack!
|
||||||
|
</button>
|
||||||
|
<button nbButton hero class="action-btn" status="info" (click)="action('tradeAction')"
|
||||||
|
*ngIf="!showMoveAction">
|
||||||
|
<nb-icon icon="swap-outline" class="mr-1"></nb-icon>
|
||||||
|
Trade
|
||||||
|
</button>
|
||||||
|
<button nbButton hero class="action-btn" status="success"
|
||||||
|
(click)="action('recoveryAction')" *ngIf="!showMoveAction">
|
||||||
|
<nb-icon icon="heart-outline" class="mr-1"></nb-icon>
|
||||||
|
Recovery
|
||||||
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
<button nbButton hero fullWidth status="info" class="start-activation-btn"
|
||||||
|
*ngIf="allowStartAction" (click)="startActivation()">
|
||||||
<button nbButton hero fullWidth status="info" *ngIf="allowStartAction"
|
<nb-icon icon="play-circle-outline" class="mr-2"></nb-icon>
|
||||||
(click)="startActivation()">Start Activation</button>
|
Start Activation
|
||||||
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="tp-box__side tp-box__back">
|
<div class="tp-box__side tp-box__back">
|
||||||
|
|||||||
@ -255,6 +255,76 @@
|
|||||||
.shadow-skill-content {
|
.shadow-skill-content {
|
||||||
color: #6c757d;
|
color: #6c757d;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Action Buttons Section
|
||||||
|
.hero-actions {
|
||||||
|
padding: 0.75rem;
|
||||||
|
border-top: 2px solid #e9ecef;
|
||||||
|
margin-top: auto;
|
||||||
|
|
||||||
|
@media (max-height: 450px) and (orientation: landscape) {
|
||||||
|
padding: 0.5rem;
|
||||||
|
border-top-width: 1px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.action-buttons-group {
|
||||||
|
display: flex;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
gap: 0.5rem;
|
||||||
|
margin-bottom: 0.75rem;
|
||||||
|
|
||||||
|
@media (max-height: 450px) and (orientation: landscape) {
|
||||||
|
gap: 0.25rem;
|
||||||
|
margin-bottom: 0.5rem;
|
||||||
|
flex-wrap: nowrap;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.action-btn {
|
||||||
|
flex: 1;
|
||||||
|
min-width: 100px;
|
||||||
|
min-height: 40px;
|
||||||
|
border-radius: 8px;
|
||||||
|
font-weight: 600;
|
||||||
|
font-size: 0.875rem;
|
||||||
|
transition: all 0.3s;
|
||||||
|
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
transform: translateY(-2px);
|
||||||
|
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (max-height: 450px) and (orientation: landscape) {
|
||||||
|
min-width: 70px;
|
||||||
|
min-height: 36px;
|
||||||
|
font-size: 0.75rem;
|
||||||
|
padding: 0.35rem 0.5rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.start-activation-btn {
|
||||||
|
border-radius: 8px;
|
||||||
|
font-weight: 600;
|
||||||
|
padding: 0.75rem;
|
||||||
|
min-height: 44px;
|
||||||
|
font-size: 0.95rem;
|
||||||
|
transition: all 0.3s;
|
||||||
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
transform: translateY(-2px);
|
||||||
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (max-height: 450px) and (orientation: landscape) {
|
||||||
|
padding: 0.5rem;
|
||||||
|
min-height: 36px;
|
||||||
|
font-size: 0.8rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.tp-box__front {
|
.tp-box__front {
|
||||||
-webkit-transform: rotateY(0deg);
|
-webkit-transform: rotateY(0deg);
|
||||||
-ms-transform: rotateY(0deg);
|
-ms-transform: rotateY(0deg);
|
||||||
|
|||||||
@ -5,12 +5,12 @@
|
|||||||
<md2-icon icon="defense" size="lg"></md2-icon>
|
<md2-icon icon="defense" size="lg"></md2-icon>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-8">
|
<div class="col-md-8">
|
||||||
<div *ngIf="mob.defenseInfo.blue" class="g-height-45">
|
<div *ngIf="mob.defenseInfo?.blue" class="g-height-45">
|
||||||
<span class="MD2Icon Blue dice g-font-size-50">
|
<span class="MD2Icon Blue dice g-font-size-50">
|
||||||
<span class="MD2text diceAmount">x{{mob.defenseInfo.blue}}</span>
|
<span class="MD2text diceAmount">x{{mob.defenseInfo.blue}}</span>
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<div *ngIf="mob.defenseInfo.black" class="g-height-45 mt-1">
|
<div *ngIf="mob.defenseInfo?.black" class="g-height-45 mt-1">
|
||||||
<span class="MD2Icon Black dice g-font-size-50">
|
<span class="MD2Icon Black dice g-font-size-50">
|
||||||
<span class="MD2text diceAmount">x{{mob.defenseInfo.black}}</span>
|
<span class="MD2text diceAmount">x{{mob.defenseInfo.black}}</span>
|
||||||
</span>
|
</span>
|
||||||
|
|||||||
@ -38,6 +38,9 @@ export class MobDefInfoComponent implements OnInit {
|
|||||||
this.display = false;
|
this.display = false;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
if (!this.mob.defenseInfo || this.mob.defenseInfo.blue == 0 && this.mob.defenseInfo.black == 0) {
|
||||||
|
this.display = false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user