From a2f6fb6ac08a702c0688552b0d3e4cc42742c79d Mon Sep 17 00:00:00 2001 From: Cmdr McDonald Date: Wed, 16 Nov 2016 20:49:22 +0000 Subject: [PATCH] Added help tooltip for modifications --- src/app/components/ModificationsMenu.jsx | 2 ++ src/app/i18n/en.js | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/app/components/ModificationsMenu.jsx b/src/app/components/ModificationsMenu.jsx index bdf633d3..b0a7386b 100644 --- a/src/app/components/ModificationsMenu.jsx +++ b/src/app/components/ModificationsMenu.jsx @@ -50,11 +50,13 @@ export default class ModificationsMenu extends TranslatedComponent { * @return {React.Component} List */ render() { + let { language, tooltip, termtip } = this.context; return (
e.stopPropagation() } onContextMenu={stopCtxPropagation} + onMouseOver={termtip.bind(null, 'HELP_MODIFICATIONS_MENU')} onMouseOut={tooltip.bind(null, null)} > {this.state.list}
diff --git a/src/app/i18n/en.js b/src/app/i18n/en.js index cc70e86c..45a7078b 100644 --- a/src/app/i18n/en.js +++ b/src/app/i18n/en.js @@ -29,6 +29,8 @@ export const terms = { PHRASE_UNLADEN: 'Ship mass excluding fuel and cargo', PHRASE_UPDATE_RDY: 'Update Available! Click to refresh', + HELP_MODIFICATIONS_MENU: 'Double-click on a number to enter a new value, or drag along the bar for small changes', + // Other languages fallback to these values // Only Translate to other languages if the name is different in-game am: 'Auto Field-Maintenance Unit',