| | |
| | | MenuItem, |
| | | Button, |
| | | Box, |
| | | SpeedDial, |
| | | SpeedDialAction, |
| | | useTheme, |
| | | Fab, |
| | | } from '@mui/material'; |
| | | import { |
| | | MoreVert as MoreVertIcon, |
| | | Edit as EditIcon, |
| | | FileCopy as FileCopyIcon, |
| | | Save as SaveIcon, |
| | | Print as PrintIcon, |
| | | Share as ShareIcon, |
| | | } from '@mui/icons-material'; |
| | | import { MAP_MODE } from "./constants"; |
| | | import Player from './player'; |
| | | import * as Tool from './tool'; |
| | |
| | | } |
| | | }, [batchSprites]) |
| | | |
| | | const actions = [ |
| | | { icon: <FileCopyIcon />, name: '复制' }, |
| | | { icon: <SaveIcon />, name: '保存' }, |
| | | { icon: <PrintIcon />, name: '打印' }, |
| | | { icon: <ShareIcon />, name: '分享' }, |
| | | { icon: <EditIcon />, name: '编辑' }, |
| | | ]; |
| | | |
| | | return ( |
| | | <Box |
| | | sx={{ |
| | |
| | | height: '100%', |
| | | }} /> |
| | | </Box> |
| | | |
| | | {/* <SpeedDial |
| | | ariaLabel="SpeedDial 示例" |
| | | sx={{ position: 'absolute', bottom: 16, right: 16 }} |
| | | icon={<MoreVertIcon />} |
| | | > |
| | | {actions.map((action) => ( |
| | | <SpeedDialAction |
| | | key={action.name} |
| | | icon={action.icon} |
| | | tooltipTitle={action.name} |
| | | /> |
| | | ))} |
| | | </SpeedDial> */} |
| | | |
| | | <Box |
| | | sx={{ |