@rpg-engine/long-bow 0.8.32 → 0.8.33
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/long-bow.cjs.development.js +66 -50
- package/dist/long-bow.cjs.development.js.map +1 -1
- package/dist/long-bow.cjs.production.min.js +1 -1
- package/dist/long-bow.cjs.production.min.js.map +1 -1
- package/dist/long-bow.esm.js +66 -50
- package/dist/long-bow.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/InformationCenter/sections/bestiary/InformationCenterBestiarySection.tsx +18 -9
- package/src/components/InformationCenter/sections/items/InformationCenterItemsSection.tsx +15 -6
- package/src/components/InformationCenter/shared/BaseInformationDetails.tsx +3 -7
package/package.json
CHANGED
package/src/components/InformationCenter/sections/bestiary/InformationCenterBestiarySection.tsx
CHANGED
|
@@ -10,6 +10,7 @@ import { IOptionsProps } from '../../../Dropdown';
|
|
|
10
10
|
import { PaginatedContent } from '../../../shared/PaginatedContent/PaginatedContent';
|
|
11
11
|
import { Portal } from '../../../shared/Portal/Portal';
|
|
12
12
|
import { InformationCenterCell } from '../../InformationCenterCell';
|
|
13
|
+
import { BaseInformationDetails } from '../../shared/BaseInformationDetails';
|
|
13
14
|
import { formatItemType } from '../items/InformationCenterItemsSection';
|
|
14
15
|
import { BestiaryAdvancedFilters } from './BestiaryAdvancedFilters';
|
|
15
16
|
import { InformationCenterNPCDetails } from './InformationCenterNPCDetails';
|
|
@@ -222,16 +223,24 @@ export const InformationCenterBestiarySection = ({
|
|
|
222
223
|
)}
|
|
223
224
|
{selectedMonster && (
|
|
224
225
|
<Portal>
|
|
225
|
-
<
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
iconAtlasJSON={iconsAtlasJSON}
|
|
231
|
-
entitiesAtlasJSON={entitiesAtlasJSON}
|
|
232
|
-
entitiesAtlasIMG={entitiesAtlasIMG}
|
|
226
|
+
<BaseInformationDetails
|
|
227
|
+
name={selectedMonster.name}
|
|
228
|
+
spriteKey={selectedMonster.key}
|
|
229
|
+
atlasJSON={entitiesAtlasJSON}
|
|
230
|
+
atlasIMG={entitiesAtlasIMG}
|
|
233
231
|
onBack={() => setSelectedMonster(null)}
|
|
234
|
-
|
|
232
|
+
>
|
|
233
|
+
<InformationCenterNPCDetails
|
|
234
|
+
npc={selectedMonster}
|
|
235
|
+
itemsAtlasJSON={itemsAtlasJSON}
|
|
236
|
+
itemsAtlasIMG={itemsAtlasIMG}
|
|
237
|
+
iconAtlasIMG={iconsAtlasIMG}
|
|
238
|
+
iconAtlasJSON={iconsAtlasJSON}
|
|
239
|
+
entitiesAtlasJSON={entitiesAtlasJSON}
|
|
240
|
+
entitiesAtlasIMG={entitiesAtlasIMG}
|
|
241
|
+
onBack={() => setSelectedMonster(null)}
|
|
242
|
+
/>
|
|
243
|
+
</BaseInformationDetails>
|
|
235
244
|
</Portal>
|
|
236
245
|
)}
|
|
237
246
|
</>
|
|
@@ -9,6 +9,7 @@ import { useTooltipPosition } from '../../../../hooks/useTooltipPosition';
|
|
|
9
9
|
import { PaginatedContent } from '../../../shared/PaginatedContent/PaginatedContent';
|
|
10
10
|
import { Portal } from '../../../shared/Portal/Portal';
|
|
11
11
|
import { InformationCenterCell } from '../../InformationCenterCell';
|
|
12
|
+
import { BaseInformationDetails } from '../../shared/BaseInformationDetails';
|
|
12
13
|
import { InformationCenterItemDetails } from './InformationCenterItemDetails';
|
|
13
14
|
import { InformationCenterItemTooltip } from './InformationCenterItemTooltip';
|
|
14
15
|
import { ItemsAdvancedFilters } from './ItemsAdvancedFilters';
|
|
@@ -170,13 +171,21 @@ export const InformationCenterItemsSection: React.FC<IItemsSectionProps> = ({
|
|
|
170
171
|
)}
|
|
171
172
|
{selectedItem && (
|
|
172
173
|
<Portal>
|
|
173
|
-
<
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
174
|
+
<BaseInformationDetails
|
|
175
|
+
name={selectedItem.name}
|
|
176
|
+
spriteKey={selectedItem.texturePath}
|
|
177
|
+
atlasJSON={itemsAtlasJSON}
|
|
178
|
+
atlasIMG={itemsAtlasIMG}
|
|
178
179
|
onBack={() => setSelectedItem(null)}
|
|
179
|
-
|
|
180
|
+
>
|
|
181
|
+
<InformationCenterItemDetails
|
|
182
|
+
item={selectedItem}
|
|
183
|
+
itemsAtlasJSON={itemsAtlasJSON}
|
|
184
|
+
itemsAtlasIMG={itemsAtlasIMG}
|
|
185
|
+
droppedBy={getDroppedByNPCs(selectedItem.key, bestiaryItems)}
|
|
186
|
+
onBack={() => setSelectedItem(null)}
|
|
187
|
+
/>
|
|
188
|
+
</BaseInformationDetails>
|
|
180
189
|
</Portal>
|
|
181
190
|
)}
|
|
182
191
|
</>
|
|
@@ -64,7 +64,7 @@ const Overlay = styled.div`
|
|
|
64
64
|
`;
|
|
65
65
|
|
|
66
66
|
const Modal = styled.div`
|
|
67
|
-
position:
|
|
67
|
+
position: relative;
|
|
68
68
|
background-color: rgba(0, 0, 0, 0.95);
|
|
69
69
|
border-radius: 4px;
|
|
70
70
|
padding: 12px;
|
|
@@ -74,17 +74,13 @@ const Modal = styled.div`
|
|
|
74
74
|
border: 1px solid ${uiColors.darkGray};
|
|
75
75
|
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
|
|
76
76
|
width: 90%;
|
|
77
|
-
height:
|
|
78
|
-
top: 5%;
|
|
79
|
-
left: 5%;
|
|
77
|
+
height: 90vh;
|
|
80
78
|
max-width: 800px;
|
|
81
|
-
|
|
79
|
+
max-height: 800px;
|
|
82
80
|
|
|
83
81
|
@media (max-width: 768px) {
|
|
84
82
|
width: 100%;
|
|
85
83
|
height: 100%;
|
|
86
|
-
top: 0;
|
|
87
|
-
left: 0;
|
|
88
84
|
border-radius: 0;
|
|
89
85
|
padding: 8px;
|
|
90
86
|
}
|