@rpg-engine/long-bow 0.4.99 → 0.5.0

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.4.99",
3
+ "version": "0.5.0",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.js",
6
6
  "typings": "dist/index.d.ts",
@@ -1,4 +1,4 @@
1
- import { ICharacterPartyShared } from '@rpg-engine/shared';
1
+ import { ICharacterPartyShared, isMobileOrTablet } from '@rpg-engine/shared';
2
2
  import React from 'react';
3
3
  import styled from 'styled-components';
4
4
  import { uiColors } from '../../../constants/uiColors';
@@ -21,6 +21,8 @@ export const PartyManager: React.FC<IPartyManagerProps> = ({
21
21
  onRemovePlayer,
22
22
  onChangeLeader,
23
23
  }) => {
24
+ const invitationActionText = isMobileOrTablet() ? 'Tap' : 'Right click';
25
+
24
26
  return (
25
27
  <DraggableContainer
26
28
  type={RPGUIContainerTypes.Framed}
@@ -63,16 +65,22 @@ export const PartyManager: React.FC<IPartyManagerProps> = ({
63
65
  </>
64
66
  ) : (
65
67
  <>
66
- <NotinParty>
67
- You are not in party. <br />
68
- Please create a new party
69
- </NotinParty>
68
+ <NotInParty>
69
+ <p>You're not in a party.</p>
70
+ <p>
71
+ Tip: <YellowText>{invitationActionText}</YellowText> on a player
72
+ to invite them.
73
+ </p>
74
+ </NotInParty>
70
75
  </>
71
76
  )}
72
77
  </RowsWrapper>
73
78
  </DraggableContainer>
74
79
  );
75
80
  };
81
+ const YellowText = styled.span`
82
+ color: ${uiColors.yellow} !important;
83
+ `;
76
84
 
77
85
  const Wrapper = styled.div`
78
86
  display: flex;
@@ -89,7 +97,7 @@ const Title = styled.h1`
89
97
  color: ${uiColors.yellow} !important;
90
98
  `;
91
99
 
92
- const NotinParty = styled.h1`
100
+ const NotInParty = styled.h1`
93
101
  font-size: 0.6rem;
94
102
  margin: auto;
95
103
  `;