@rpg-engine/long-bow 0.2.94 → 0.2.96

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rpg-engine/long-bow",
3
- "version": "0.2.94",
3
+ "version": "0.2.96",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.js",
6
6
  "typings": "dist/index.d.ts",
@@ -83,7 +83,7 @@
83
83
  },
84
84
  "dependencies": {
85
85
  "@rollup/plugin-image": "^2.1.1",
86
- "@rpg-engine/shared": "^0.6.40",
86
+ "@rpg-engine/shared": "^0.6.49",
87
87
  "dayjs": "^1.11.2",
88
88
  "fs-extra": "^10.1.0",
89
89
  "is-mobile": "^3.1.1",
@@ -24,15 +24,12 @@ export const CharacterSelection: React.FC<ICharacterSelectionProps> = ({
24
24
  availableCharacters,
25
25
  onChange,
26
26
  }) => {
27
- const randomSort = () => 0.5 - Math.random();
28
- const propertySelectValues = availableCharacters
29
- .sort(randomSort)
30
- .map(item => {
31
- return {
32
- id: item.textureKey,
33
- name: item.name,
34
- };
35
- });
27
+ const propertySelectValues = availableCharacters.map(item => {
28
+ return {
29
+ id: item.textureKey,
30
+ name: item.name,
31
+ };
32
+ });
36
33
 
37
34
  const [selectedValue, setSelectedValue] = useState<IPropertiesProps>();
38
35
  const [selectedSpriteKey, setSelectedSpriteKey] = useState('');
@@ -41,8 +38,6 @@ export const CharacterSelection: React.FC<ICharacterSelectionProps> = ({
41
38
  const textureKey = selectedValue ? selectedValue.id : '';
42
39
  const spriteKey = textureKey ? textureKey + '/down/standing/0.png' : '';
43
40
 
44
- console.log(selectedValue);
45
-
46
41
  if (spriteKey === selectedSpriteKey) {
47
42
  return;
48
43
  }
@@ -123,7 +123,7 @@ const CloseButton = styled.div`
123
123
  right: 0px;
124
124
  color: white;
125
125
  z-index: 22;
126
- font-size: 0.8rem;
126
+ font-size: 1.1rem;
127
127
  `;
128
128
 
129
129
  const TitleContainer = styled.div`
@@ -67,7 +67,6 @@ export const SkillsContainer: React.FC<ISkillContainerProps> = ({
67
67
  for (const [key, value] of Object.entries(skillCategory.values)) {
68
68
  //@ts-ignore
69
69
  const skillDetails = (skill[key] as unknown) as ISkillDetails;
70
-
71
70
 
72
71
  output.push(
73
72
  <SkillProgressBar
@@ -164,5 +163,5 @@ const CloseButton = styled.div`
164
163
  right: 2px;
165
164
  color: white;
166
165
  z-index: 22;
167
- font-size: 0.7rem;
166
+ font-size: 1.1rem;
168
167
  `;
@@ -16,10 +16,10 @@ export function useOutsideClick(ref: any, id: string) {
16
16
  }
17
17
  }
18
18
  // Bind the event listener
19
- document.addEventListener('mousedown', handleClickOutside);
19
+ document.addEventListener('pointerdown', handleClickOutside);
20
20
  return () => {
21
21
  // Unbind the event listener on clean up
22
- document.removeEventListener('mousedown', handleClickOutside);
22
+ document.removeEventListener('pointerdown', handleClickOutside);
23
23
  };
24
24
  }, [ref]);
25
25
  }