diff --git a/client/src/components/construct.jsx b/client/src/components/construct.jsx index 334ba19e..3c2df336 100644 --- a/client/src/components/construct.jsx +++ b/client/src/components/construct.jsx @@ -29,12 +29,13 @@ class ConstructAvatar extends Component { } render() { - const { construct } = this.props; + const { construct, mouseOver } = this.props; return (
diff --git a/client/src/components/info.component.jsx b/client/src/components/info.component.jsx index 2574e50a..1d78d2ed 100644 --- a/client/src/components/info.component.jsx +++ b/client/src/components/info.component.jsx @@ -40,7 +40,29 @@ class InfoComponent extends preact.Component { if (tutorialStageInfo) return tutorialStageInfo; } if (!info) return false; + if (info.includes('constructName')) { + return ( +
+

{info.replace('constructName ', '')}

+

This is the name of your construct.
+ Names are randomly generated and are purely cosmetic.
+ You can change change your construct name in the reshape tab outside of games. +

+
+ ); + } + if (info.includes('constructAvatar')) { + return ( +
+

{info.replace('constructAvatar ', '')}

+

This is your construct avatar.
+ Avatars are randomly generated and are purely cosmetic.
+ You can change your construct avatar in the reshape tab outside of games. +

+
+ ); + } const fullInfo = itemInfo.items.find(i => i.item === info) || INFO[info]; if (!fullInfo) return false; const isSkill = fullInfo.skill; diff --git a/client/src/components/instance.constructs.jsx b/client/src/components/instance.constructs.jsx index f3367a2a..1e010061 100644 --- a/client/src/components/instance.constructs.jsx +++ b/client/src/components/instance.constructs.jsx @@ -221,11 +221,11 @@ function Construct(props) { }); const classes = `instance-construct ${mobileVisible ? 'visible' : ''}`; - + const avatarMouseOver = e => hoverInfo(e, `constructAvatar ${construct.name}`); return ( -
- -

{construct.name}

+
+ +

hoverInfo(e, `constructName ${construct.name}`)}>{construct.name}

hoverInfo(e, 'constructSkills')} > {skills}