|
|
@ -3,6 +3,7 @@ import * as React from 'react';
|
|
|
|
import { CoolDownTime } from '../../../Common/CoolDownTime';
|
|
|
|
import { CoolDownTime } from '../../../Common/CoolDownTime';
|
|
|
|
import { commandMachine } from '../../../Editor/CommandMachine';
|
|
|
|
import { commandMachine } from '../../../Editor/CommandMachine';
|
|
|
|
import { ICON_CDN } from '../../IconEnum';
|
|
|
|
import { ICON_CDN } from '../../IconEnum';
|
|
|
|
|
|
|
|
import { CommandList } from '../CommandPanel/CommandList';
|
|
|
|
import { ICommandIconInfo } from '../TopToolBar/TopToolBarInterface';
|
|
|
|
import { ICommandIconInfo } from '../TopToolBar/TopToolBarInterface';
|
|
|
|
import './PropertiesPanel.less';
|
|
|
|
import './PropertiesPanel.less';
|
|
|
|
|
|
|
|
|
|
|
@ -59,8 +60,9 @@ export class ToolBar extends React.Component<ToolBarProps, {}>
|
|
|
|
{
|
|
|
|
{
|
|
|
|
iconList.map((cmd) =>
|
|
|
|
iconList.map((cmd) =>
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
let title = CommandList.find((c) => c.command === cmd.command)?.chName;
|
|
|
|
return (
|
|
|
|
return (
|
|
|
|
<li key={cmd.command} title={cmd.command} style={liStyle}
|
|
|
|
<li key={cmd.command} title={(title ?? cmd.title) + "\n" + cmd.command} style={liStyle}
|
|
|
|
onClick={() =>
|
|
|
|
onClick={() =>
|
|
|
|
{
|
|
|
|
{
|
|
|
|
commandMachine.ExecCommand(cmd.command);
|
|
|
|
commandMachine.ExecCommand(cmd.command);
|
|
|
|