mirror of
https://github.com/EDCD/coriolis.git
synced 2025-12-09 14:45:35 +00:00
Added help tooltip for modifications
This commit is contained in:
@@ -50,11 +50,13 @@ export default class ModificationsMenu extends TranslatedComponent {
|
|||||||
* @return {React.Component} List
|
* @return {React.Component} List
|
||||||
*/
|
*/
|
||||||
render() {
|
render() {
|
||||||
|
let { language, tooltip, termtip } = this.context;
|
||||||
return (
|
return (
|
||||||
<div
|
<div
|
||||||
className={cn('select', this.props.className)}
|
className={cn('select', this.props.className)}
|
||||||
onClick={(e) => e.stopPropagation() }
|
onClick={(e) => e.stopPropagation() }
|
||||||
onContextMenu={stopCtxPropagation}
|
onContextMenu={stopCtxPropagation}
|
||||||
|
onMouseOver={termtip.bind(null, 'HELP_MODIFICATIONS_MENU')} onMouseOut={tooltip.bind(null, null)}
|
||||||
>
|
>
|
||||||
{this.state.list}
|
{this.state.list}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -29,6 +29,8 @@ export const terms = {
|
|||||||
PHRASE_UNLADEN: 'Ship mass excluding fuel and cargo',
|
PHRASE_UNLADEN: 'Ship mass excluding fuel and cargo',
|
||||||
PHRASE_UPDATE_RDY: 'Update Available! Click to refresh',
|
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
|
// Other languages fallback to these values
|
||||||
// Only Translate to other languages if the name is different in-game
|
// Only Translate to other languages if the name is different in-game
|
||||||
am: 'Auto Field-Maintenance Unit',
|
am: 'Auto Field-Maintenance Unit',
|
||||||
|
|||||||
Reference in New Issue
Block a user