mirror of
https://github.com/billsonnn/nitro-react.git
synced 2024-11-27 08:00:51 +01:00
infostand changes
This commit is contained in:
parent
b852b9a8ad
commit
45434e4326
@ -142,19 +142,24 @@ export const InfoStandWidgetFurniView: FC<InfoStandWidgetFurniViewProps> = props
|
|||||||
<div className="">{ furniData.name }</div>
|
<div className="">{ furniData.name }</div>
|
||||||
<i className="fas fa-times cursor-pointer" onClick={ close }></i>
|
<i className="fas fa-times cursor-pointer" onClick={ close }></i>
|
||||||
</div>
|
</div>
|
||||||
|
<hr className="m-0 my-1"/>
|
||||||
<div className="w-100">
|
<div className="w-100">
|
||||||
{ furniData.stuffData.isUnique &&
|
{ furniData.stuffData.isUnique &&
|
||||||
<LimitedEditionCompactPlateView uniqueNumber={ furniData.stuffData.uniqueNumber } uniqueSeries={ furniData.stuffData.uniqueSeries } /> }
|
<LimitedEditionCompactPlateView uniqueNumber={ furniData.stuffData.uniqueNumber } uniqueSeries={ furniData.stuffData.uniqueSeries } /> }
|
||||||
{ furniData.image.src.length &&
|
{ furniData.image.src.length &&
|
||||||
<img className="d-block mx-auto" src={ furniData.image.src } alt="" /> }
|
<img className="d-block mx-auto" src={ furniData.image.src } alt="" /> }
|
||||||
</div>
|
</div>
|
||||||
<div className="d-flex flex-column mt-2">
|
<hr className="m-0 my-1"/>
|
||||||
<p className="badge badge-secondary mb-0 text-wrap">{ furniData.description }</p>
|
<div className="d-flex flex-column">
|
||||||
<p className="badge badge-secondary mt-2 mb-0 text-wrap">{ LocalizeText('furni.owner', [ 'name' ], [ furniData.ownerName ]) }</p>
|
<p className="badge badge-secondary mb-0 text-wrap">{furniData.description}</p>
|
||||||
{ isCrackable &&
|
<hr className="m-0 my-1"/>
|
||||||
<p className="badge badge-secondary mt-2 mb-0 text-wrap">{ LocalizeText('infostand.crackable_furni.hits_remaining', ['hits', 'target'], [ crackableHits.toString(), crackableTarget.toString() ]) }</p> }
|
<p className="badge badge-secondary mb-0 text-wrap">{ LocalizeText('furni.owner', [ 'name' ], [ furniData.ownerName ]) }</p>
|
||||||
|
{isCrackable && <div>
|
||||||
|
<hr className="m-0 my-1"/>
|
||||||
|
<p className="badge badge-secondary mb-0 text-wrap">{LocalizeText('infostand.crackable_furni.hits_remaining', ['hits', 'target'], [crackableHits.toString(), crackableTarget.toString()])}</p>
|
||||||
|
</div>}
|
||||||
{ (furniData.groupId > 0) &&
|
{ (furniData.groupId > 0) &&
|
||||||
<div className="badge badge-secondary mt-2 mb-0" onClick={ openFurniGroupInfo }>
|
<div className="badge badge-secondary mb-0" onClick={ openFurniGroupInfo }>
|
||||||
<BadgeImageView badgeCode={ (furniData.stuffData as StringDataType).getValue(2) } />
|
<BadgeImageView badgeCode={ (furniData.stuffData as StringDataType).getValue(2) } />
|
||||||
</div> }
|
</div> }
|
||||||
</div>
|
</div>
|
||||||
@ -168,13 +173,25 @@ export const InfoStandWidgetFurniView: FC<InfoStandWidgetFurniViewProps> = props
|
|||||||
</div>
|
</div>
|
||||||
<div className="button-container mt-2">
|
<div className="button-container mt-2">
|
||||||
{ canMove &&
|
{ canMove &&
|
||||||
<button type="button" className="btn btn-sm btn-dark" onClick={ event => processButtonAction('move') }>{ LocalizeText('infostand.button.move') }</button> }
|
<button type="button" className="btn btn-sm btn-secondary" onClick={event => processButtonAction('move')}>
|
||||||
|
<i className="fas fa-arrows-alt me-1"></i>
|
||||||
|
{LocalizeText('infostand.button.move')}
|
||||||
|
</button>}
|
||||||
{ canRotate &&
|
{ canRotate &&
|
||||||
<button type="button" className="btn btn-sm btn-dark ms-1" onClick={ event => processButtonAction('rotate') }>{ LocalizeText('infostand.button.rotate') }</button> }
|
<button type="button" className="btn btn-sm btn-secondary ms-1" onClick={event => processButtonAction('rotate')}>
|
||||||
{ (pickupMode !== PICKUP_MODE_NONE) &&
|
<i className="fas fa-sync-alt me-1"></i>
|
||||||
<button type="button" className="btn btn-sm btn-dark ms-1" onClick={ event => processButtonAction('pickup') }>{ LocalizeText((pickupMode === PICKUP_MODE_EJECT) ? 'infostand.button.eject' : 'infostand.button.pickup') }</button> }
|
{LocalizeText('infostand.button.rotate')}
|
||||||
|
</button>}
|
||||||
{ canUse &&
|
{ canUse &&
|
||||||
<button type="button" className="btn btn-sm btn-dark ms-1" onClick={ event => processButtonAction('use') }>{ LocalizeText('infostand.button.use') }</button> }
|
<button type="button" className="btn btn-sm btn-success ms-1" onClick={event => processButtonAction('use')}>
|
||||||
|
<i className="fas fa-mouse me-1"></i>
|
||||||
|
{LocalizeText('infostand.button.use')}
|
||||||
|
</button>}
|
||||||
|
{ (pickupMode !== PICKUP_MODE_NONE) &&
|
||||||
|
<button type="button" className="btn btn-sm btn-danger ms-1" onClick={event => processButtonAction('pickup')}>
|
||||||
|
<i className={"me-1 " + (pickupMode === PICKUP_MODE_EJECT ? "fas fa-eject" : "fas fa-box-open")}></i>
|
||||||
|
{LocalizeText((pickupMode === PICKUP_MODE_EJECT) ? 'infostand.button.eject' : 'infostand.button.pickup')}
|
||||||
|
</button>}
|
||||||
{/* <button *ngIf="((furniSettingsKeys.length && furniSettingsValues.length) && (furniSettingsKeys.length === furniSettingsValues.length))" className="btn btn-primary" (click)="processButtonAction('save_branding_configuration')">{{ 'save' | translate }}</button> */}
|
{/* <button *ngIf="((furniSettingsKeys.length && furniSettingsValues.length) && (furniSettingsKeys.length === furniSettingsValues.length))" className="btn btn-primary" (click)="processButtonAction('save_branding_configuration')">{{ 'save' | translate }}</button> */}
|
||||||
</div>
|
</div>
|
||||||
</>
|
</>
|
||||||
|
Loading…
Reference in New Issue
Block a user