@@ -4,6 +4,8 @@ import LooksOneOutlinedIcon from '@mui/icons-material/LooksOneOutlined';
44import DirectionsOutlinedIcon from '@mui/icons-material/DirectionsOutlined' ;
55import OutlinedFlagIcon from '@mui/icons-material/OutlinedFlag' ;
66import PolylineOutlinedIcon from '@mui/icons-material/PolylineOutlined' ;
7+ import { KeyMap } from './Params' ;
8+ import Tooltip from '@mui/material/Tooltip' ;
79
810interface DisplaySectionProps {
911 showAgentId : boolean ;
@@ -34,45 +36,55 @@ function DisplaySection({
3436 < Stack spacing = { 1 } >
3537 < Box sx = { { fontSize : '0.75rem' , fontWeight : 600 , textTransform : 'uppercase' , color : 'text.secondary' , letterSpacing : 1 } } > Display</ Box >
3638 < Stack spacing = { 0.5 } >
37- < Stack direction = "row" alignItems = "center" sx = { { cursor : 'pointer' } } onClick = { ( ) => onShowAgentIdChange ( ! showAgentId ) } >
38- < Checkbox size = "small" checked = { showAgentId } onChange = { ( e ) => onShowAgentIdChange ( e . target . checked ) } sx = { { py : 0.5 } } />
39- < Box sx = { { display : 'flex' , alignItems : 'center' , gap : 0.75 , fontSize : '0.875rem' } } >
40- < SmartToyOutlinedIcon fontSize = "small" sx = { { color : 'text.secondary' } } />
41- Agent IDs
42- </ Box >
43- </ Stack >
39+ < Tooltip title = { KeyMap . SHOW_AGENT_ID_KEY } placement = 'right' arrow >
40+ < Stack direction = "row" alignItems = "center" sx = { { cursor : 'pointer' , width : 'fit-content' } } onClick = { ( ) => onShowAgentIdChange ( ! showAgentId ) } >
41+ < Checkbox size = "small" checked = { showAgentId } onChange = { ( e ) => onShowAgentIdChange ( e . target . checked ) } sx = { { py : 0.5 } } />
42+ < Box sx = { { display : 'flex' , alignItems : 'center' , gap : 0.75 , fontSize : '0.875rem' } } >
43+ < SmartToyOutlinedIcon fontSize = "small" sx = { { color : 'text.secondary' } } />
44+ Agent IDs
45+ </ Box >
46+ </ Stack >
47+ </ Tooltip >
4448
45- < Stack direction = "row" alignItems = "center" sx = { { cursor : 'pointer' } } onClick = { ( ) => setShowCellId ( ! showCellId ) } >
46- < Checkbox size = "small" checked = { showCellId } onChange = { ( e ) => setShowCellId ( e . target . checked ) } sx = { { py : 0.5 } } />
47- < Box sx = { { display : 'flex' , alignItems : 'center' , gap : 0.75 , fontSize : '0.875rem' } } >
48- < LooksOneOutlinedIcon fontSize = "small" sx = { { color : 'text.secondary' } } />
49- Cell IDs
50- </ Box >
51- </ Stack >
49+ < Tooltip title = { KeyMap . SHOW_CELL_ID_KEY } placement = 'right' arrow >
50+ < Stack direction = "row" alignItems = "center" sx = { { cursor : 'pointer' , width : 'fit-content' } } onClick = { ( ) => setShowCellId ( ! showCellId ) } >
51+ < Checkbox size = "small" checked = { showCellId } onChange = { ( e ) => setShowCellId ( e . target . checked ) } sx = { { py : 0.5 } } />
52+ < Box sx = { { display : 'flex' , alignItems : 'center' , gap : 0.75 , fontSize : '0.875rem' } } >
53+ < LooksOneOutlinedIcon fontSize = "small" sx = { { color : 'text.secondary' } } />
54+ Cell IDs
55+ </ Box >
56+ </ Stack >
57+ </ Tooltip >
5258
53- < Stack direction = "row" alignItems = "center" sx = { { cursor : 'pointer' } } onClick = { ( ) => onTracePathsChange ( ! tracePaths ) } >
54- < Checkbox size = "small" checked = { tracePaths } onChange = { ( e ) => onTracePathsChange ( e . target . checked ) } sx = { { py : 0.5 } } />
55- < Box sx = { { display : 'flex' , alignItems : 'center' , gap : 0.75 , fontSize : '0.875rem' } } >
56- < DirectionsOutlinedIcon fontSize = "small" sx = { { color : 'text.secondary' } } />
57- Paths
58- </ Box >
59- </ Stack >
59+ < Tooltip title = { KeyMap . TRACE_PATHS_KEY } placement = 'right' arrow >
60+ < Stack direction = "row" alignItems = "center" sx = { { cursor : 'pointer' , width : 'fit-content' } } onClick = { ( ) => onTracePathsChange ( ! tracePaths ) } >
61+ < Checkbox size = "small" checked = { tracePaths } onChange = { ( e ) => onTracePathsChange ( e . target . checked ) } sx = { { py : 0.5 } } />
62+ < Box sx = { { display : 'flex' , alignItems : 'center' , gap : 0.75 , fontSize : '0.875rem' } } >
63+ < DirectionsOutlinedIcon fontSize = "small" sx = { { color : 'text.secondary' } } />
64+ Paths
65+ </ Box >
66+ </ Stack >
67+ </ Tooltip >
6068
61- < Stack direction = "row" alignItems = "center" sx = { { cursor : 'pointer' } } onClick = { ( ) => setShowGoals ( ! showGoals ) } >
62- < Checkbox size = "small" checked = { showGoals } onChange = { ( e ) => setShowGoals ( e . target . checked ) } sx = { { py : 0.5 } } />
63- < Box sx = { { display : 'flex' , alignItems : 'center' , gap : 0.75 , fontSize : '0.875rem' } } >
64- < OutlinedFlagIcon fontSize = "small" sx = { { color : 'text.secondary' } } />
65- Goals
66- </ Box >
67- </ Stack >
69+ < Tooltip title = { KeyMap . SHOW_GOALS_KEY } placement = 'right' arrow >
70+ < Stack direction = "row" alignItems = "center" sx = { { cursor : 'pointer' , width : 'fit-content' } } onClick = { ( ) => setShowGoals ( ! showGoals ) } >
71+ < Checkbox size = "small" checked = { showGoals } onChange = { ( e ) => setShowGoals ( e . target . checked ) } sx = { { py : 0.5 } } />
72+ < Box sx = { { display : 'flex' , alignItems : 'center' , gap : 0.75 , fontSize : '0.875rem' } } >
73+ < OutlinedFlagIcon fontSize = "small" sx = { { color : 'text.secondary' } } />
74+ Goals
75+ </ Box >
76+ </ Stack >
77+ </ Tooltip >
6878
69- < Stack direction = "row" alignItems = "center" sx = { { cursor : 'pointer' } } onClick = { ( ) => setShowGoalVectors ( ! showGoalVectors ) } >
70- < Checkbox size = "small" checked = { showGoalVectors } onChange = { ( e ) => setShowGoalVectors ( e . target . checked ) } sx = { { py : 0.5 } } />
71- < Box sx = { { display : 'flex' , alignItems : 'center' , gap : 0.75 , fontSize : '0.875rem' } } >
72- < PolylineOutlinedIcon fontSize = "small" sx = { { color : 'text.secondary' } } />
73- Vectors
74- </ Box >
75- </ Stack >
79+ < Tooltip title = { KeyMap . SHOW_GOAL_VECTORS_KEY } placement = 'right' arrow >
80+ < Stack direction = "row" alignItems = "center" sx = { { cursor : 'pointer' , width : 'fit-content' } } onClick = { ( ) => setShowGoalVectors ( ! showGoalVectors ) } >
81+ < Checkbox size = "small" checked = { showGoalVectors } onChange = { ( e ) => setShowGoalVectors ( e . target . checked ) } sx = { { py : 0.5 } } />
82+ < Box sx = { { display : 'flex' , alignItems : 'center' , gap : 0.75 , fontSize : '0.875rem' } } >
83+ < PolylineOutlinedIcon fontSize = "small" sx = { { color : 'text.secondary' } } />
84+ Vectors
85+ </ Box >
86+ </ Stack >
87+ </ Tooltip >
7688 </ Stack >
7789 </ Stack >
7890 ) ;
0 commit comments