|
|
|
@ -66,9 +66,9 @@ const MaterialActionOptions = [
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
const ActionModeOptions = [
|
|
|
|
|
{ label: "圆弧模式", value: TempalteActionRadiusType.Radius },
|
|
|
|
|
{ label: "凸度模式", value: TempalteActionRadiusType.Bulge },
|
|
|
|
|
{ label: "高度模式", value: TempalteActionRadiusType.Height },
|
|
|
|
|
{ label: "半径", value: TempalteActionRadiusType.Radius },
|
|
|
|
|
{ label: "凸度", value: TempalteActionRadiusType.Bulge },
|
|
|
|
|
{ label: "高度", value: TempalteActionRadiusType.Height },
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
@ -147,21 +147,6 @@ export class TempalteActionDialog extends React.Component<ITempalteActionDialogP
|
|
|
|
|
/>
|
|
|
|
|
</Label>
|
|
|
|
|
}
|
|
|
|
|
{
|
|
|
|
|
this.actionType === EEditorActionType.AddRadius &&
|
|
|
|
|
<Label className={Classes.INLINE}>
|
|
|
|
|
<div className='spanText'><span> 动作模式:</span></div>
|
|
|
|
|
<HTMLSelect
|
|
|
|
|
large={true}
|
|
|
|
|
options={ActionModeOptions}
|
|
|
|
|
value={this.actionModeType}
|
|
|
|
|
onChange={(e) =>
|
|
|
|
|
{
|
|
|
|
|
this.actionModeType = parseInt(e.currentTarget.options[e.target.selectedIndex].value);
|
|
|
|
|
}}
|
|
|
|
|
/>
|
|
|
|
|
</Label>
|
|
|
|
|
}
|
|
|
|
|
<Label className={Classes.INLINE}>
|
|
|
|
|
<div className='spanText'><span> 动作名称:</span></div>
|
|
|
|
|
<input
|
|
|
|
@ -181,6 +166,21 @@ export class TempalteActionDialog extends React.Component<ITempalteActionDialogP
|
|
|
|
|
/>
|
|
|
|
|
</Label>
|
|
|
|
|
}
|
|
|
|
|
{
|
|
|
|
|
this.actionType === EEditorActionType.AddRadius &&
|
|
|
|
|
<Label className={Classes.INLINE}>
|
|
|
|
|
<div className='spanText'><span> 值类型:</span></div>
|
|
|
|
|
<HTMLSelect
|
|
|
|
|
large={true}
|
|
|
|
|
options={ActionModeOptions}
|
|
|
|
|
value={this.actionModeType}
|
|
|
|
|
onChange={(e) =>
|
|
|
|
|
{
|
|
|
|
|
this.actionModeType = parseInt(e.currentTarget.options[e.target.selectedIndex].value);
|
|
|
|
|
}}
|
|
|
|
|
/>
|
|
|
|
|
</Label>
|
|
|
|
|
}
|
|
|
|
|
{
|
|
|
|
|
currentActionInfo.type !== TemplateParamType.Material ?
|
|
|
|
|
(!isEditor && this.actionType === EEditorActionType.Add &&
|
|
|
|
|