@rpg-engine/long-bow 0.1.67 → 0.1.70
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/components/DraggableContainer.d.ts +2 -2
- package/dist/components/Item/Inventory/ItemContainer.d.ts +3 -3
- package/dist/components/Item/SpriteFromAtlas.d.ts +2 -0
- package/dist/components/Multitab/Tab.d.ts +9 -0
- package/dist/components/Multitab/TabBody.d.ts +7 -0
- package/dist/components/Multitab/TabsContainer.d.ts +17 -0
- package/dist/components/SimpleProgressBar.d.ts +3 -4
- package/dist/components/SkillProgressBar.d.ts +6 -4
- package/dist/components/SkillsContainer.d.ts +7 -0
- package/dist/constants/uiColors.d.ts +7 -0
- package/dist/long-bow.cjs.development.js +4011 -498
- 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 +4012 -499
- package/dist/long-bow.esm.js.map +1 -1
- package/dist/mocks/skills.mocks.d.ts +115 -0
- package/package.json +3 -3
- package/src/components/DraggableContainer.tsx +11 -9
- package/src/components/I_Book.png +0 -0
- package/src/components/Item/Inventory/ItemContainer.tsx +14 -6
- package/src/components/Item/SpriteFromAtlas.tsx +10 -0
- package/src/components/Multitab/Tab.tsx +57 -0
- package/src/components/Multitab/TabBody.tsx +13 -0
- package/src/components/Multitab/TabsContainer.tsx +97 -0
- package/src/components/SimpleProgressBar.tsx +14 -10
- package/src/components/SkillProgressBar.tsx +74 -20
- package/src/components/SkillsContainer.tsx +235 -0
- package/src/constants/uiColors.ts +7 -0
- package/src/mocks/atlas/items/items.json +3920 -460
- package/src/mocks/atlas/items/items.png +0 -0
- package/src/mocks/skills.mocks.ts +116 -0
|
@@ -7,10 +7,10 @@ export interface IDraggableContainerProps {
|
|
|
7
7
|
height?: string;
|
|
8
8
|
className?: string;
|
|
9
9
|
type?: RPGUIContainerTypes;
|
|
10
|
-
title
|
|
10
|
+
title?: string;
|
|
11
11
|
imgSrc?: string;
|
|
12
12
|
imgWidth?: string;
|
|
13
|
-
onCloseButton
|
|
13
|
+
onCloseButton?: () => void;
|
|
14
14
|
cancelDrag?: string;
|
|
15
15
|
onPositionChange?: (position: IPosition) => void;
|
|
16
16
|
}
|
|
@@ -2,9 +2,9 @@ import { IItem, IItemContainer } from '@rpg-engine/shared';
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
export interface IItemContainerProps {
|
|
4
4
|
itemContainer: IItemContainer;
|
|
5
|
-
onClose
|
|
6
|
-
onMouseOver
|
|
7
|
-
onActionSelected
|
|
5
|
+
onClose?: () => void;
|
|
6
|
+
onMouseOver?: (e: any, slotIndex: number, item: IItem | null) => void;
|
|
7
|
+
onActionSelected?: (payload: any) => void;
|
|
8
8
|
initialPosition?: {
|
|
9
9
|
x: number;
|
|
10
10
|
y: number;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface ITab {
|
|
3
|
+
label: string;
|
|
4
|
+
id: string;
|
|
5
|
+
}
|
|
6
|
+
export declare enum MultitabType {
|
|
7
|
+
Brown = "brown",
|
|
8
|
+
Gray = "gray"
|
|
9
|
+
}
|
|
10
|
+
export interface ITabsContainer {
|
|
11
|
+
children: React.ReactNode;
|
|
12
|
+
onCloseButton?: () => void;
|
|
13
|
+
tabs: ITab[];
|
|
14
|
+
type: MultitabType;
|
|
15
|
+
}
|
|
16
|
+
export declare const TabsContainer: React.FC<ITabsContainer>;
|
|
17
|
+
export {};
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
interface
|
|
2
|
+
export interface ISimpleProgressBarProps {
|
|
3
3
|
value: number;
|
|
4
|
-
height?: string;
|
|
5
4
|
bgColor?: string;
|
|
5
|
+
margin?: number;
|
|
6
6
|
}
|
|
7
|
-
export declare const SimpleProgressBar: React.FC<
|
|
8
|
-
export {};
|
|
7
|
+
export declare const SimpleProgressBar: React.FC<ISimpleProgressBarProps>;
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
export interface ISkillProgressBarProps {
|
|
3
|
-
|
|
4
|
-
height: string;
|
|
3
|
+
skillName: string;
|
|
5
4
|
bgColor: string;
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
level: number;
|
|
6
|
+
skillPoints: number;
|
|
7
|
+
skillPointsToNextLevel?: number;
|
|
8
|
+
texturePath: string;
|
|
9
|
+
showSkillPoints?: boolean;
|
|
8
10
|
}
|
|
9
11
|
export declare const SkillProgressBar: React.FC<ISkillProgressBarProps>;
|