Inventory add seed rarity level

This commit is contained in:
Bill 2021-07-17 13:11:25 -04:00
parent 1f5f09cb0a
commit 9000756ae5
2 changed files with 8 additions and 3 deletions

View File

@ -1,4 +1,4 @@
.limited-edition-info-container { .stuffdata-extra-container {
position: absolute; position: absolute;
top: 5px; top: 5px;
right: 15px; right: 15px;

View File

@ -4,6 +4,7 @@ import { GetRoomEngine, GetSessionDataManager } from '../../../../api';
import { SendMessageHook } from '../../../../hooks/messages'; import { SendMessageHook } from '../../../../hooks/messages';
import { LocalizeText } from '../../../../utils/LocalizeText'; import { LocalizeText } from '../../../../utils/LocalizeText';
import { LimitedEditionCompactPlateView } from '../../../shared/limited-edition/compact-plate/LimitedEditionCompactPlateView'; import { LimitedEditionCompactPlateView } from '../../../shared/limited-edition/compact-plate/LimitedEditionCompactPlateView';
import { RarityLevelView } from '../../../shared/rarity-level/RarityLevelView';
import { RoomPreviewerView } from '../../../shared/room-previewer/RoomPreviewerView'; import { RoomPreviewerView } from '../../../shared/room-previewer/RoomPreviewerView';
import { FurniCategory } from '../../common/FurniCategory'; import { FurniCategory } from '../../common/FurniCategory';
import { attemptItemPlacement } from '../../common/FurnitureUtilities'; import { attemptItemPlacement } from '../../common/FurnitureUtilities';
@ -123,10 +124,14 @@ export const InventoryFurnitureView: FC<InventoryFurnitureViewProps> = props =>
</div> </div>
<div className="position-relative d-flex flex-column col-5 justify-space-between"> <div className="position-relative d-flex flex-column col-5 justify-space-between">
<RoomPreviewerView roomPreviewer={ roomPreviewer } height={ 140 } /> <RoomPreviewerView roomPreviewer={ roomPreviewer } height={ 140 } />
{ groupItem &&groupItem.stuffData.isUnique && { groupItem && groupItem.stuffData.isUnique &&
<div className="position-absolute limited-edition-info-container"> <div className="stuffdata-extra-container">
<LimitedEditionCompactPlateView uniqueNumber={ groupItem.stuffData.uniqueNumber } uniqueSeries={ groupItem.stuffData.uniqueSeries } /> <LimitedEditionCompactPlateView uniqueNumber={ groupItem.stuffData.uniqueNumber } uniqueSeries={ groupItem.stuffData.uniqueSeries } />
</div> } </div> }
{ (groupItem && groupItem.stuffData.rarityLevel > -1) &&
<div className="stuffdata-extra-container">
<RarityLevelView level={ groupItem.stuffData.rarityLevel } />
</div> }
{ groupItem && { groupItem &&
<div className="d-flex flex-column flex-grow-1"> <div className="d-flex flex-column flex-grow-1">
<p className="flex-grow-1 fs-6 text-black my-2">{ groupItem.name }</p> <p className="flex-grow-1 fs-6 text-black my-2">{ groupItem.name }</p>