/// <summary> /// 添加虚影 /// </summary> /// <returns></returns> public InteractionShadow AddShadow() { if (interactionShadow == null) { interactionShadow = new InteractionShadow(); } return(interactionShadow); }
/// <summary> /// 添加虚影 /// </summary> /// <returns></returns> public InteractionShadow AddShadow() { if (interactionShadow == null) { interactionShadow = new InteractionShadow(); interactionShadow.Init(transform); } return(interactionShadow); }
private static void AddInteractionElement(XmlDocument xmlDoc, InteractionShadow shadow) { XmlElement stateElement = CreateElement(xmlDoc.DocumentElement, xmlStrings.Interaction); stateElement.SetAttribute(xmlStrings.StateId, shadow.GetStateId()); AddEnteringFrom(shadow, stateElement); AddPromptTypes(shadow.GetPromptTypes(), stateElement); AddCommandTransitions(shadow, shadow.GetCommandTransitions(), stateElement); AddConfirmationList(shadow.GetConfirmationPrompts(), stateElement); AddMaxHandling(shadow, shadow.GetMaxHandling(), stateElement); AddSpecialSettings(shadow.GetSpecialSettings(), stateElement); AddDeveloperNotes(shadow.GetDeveloperNotes(), stateElement); }
/// <summary> /// 移除虚影 /// </summary> public void RemoveShadow() { interactionShadow = null; }
public DialogResult ShowDialog(InteractionShadow shadow) { this.shadow = shadow; return(ShowDialog()); }
/// <summary> /// 移除虚影 /// </summary> public void RemoveShadow() { interactionShadow?.OnDestory(); interactionShadow = null; }
// Creates a shadow from a shape. Should only be called from PathMaker // event handlers when things are loaded, added, etc. public static Shadow MakeShapeShadow(Shape shape) { ShapeTypes shapeType = Common.GetShapeType(shape); Shadow shadow = null; switch (shapeType) { case ShapeTypes.CallSubDialog: shadow = new CallSubDialogShadow(shape); break; case ShapeTypes.ChangeLog: shadow = new ChangeLogShadow(shape); break; case ShapeTypes.AppDesc: shadow = new AppDescShadow(shape); break; case ShapeTypes.PrefixList: shadow = new PrefixListShadow(shape); break; case ShapeTypes.Comment: shadow = new IgnoredShadow(shape); break; case ShapeTypes.Connector: shadow = new ConnectorShadow(shape); break; case ShapeTypes.Data: shadow = new DataShadow(shape); break; case ShapeTypes.Decision: shadow = new DecisionShadow(shape); break; case ShapeTypes.DocTitle: shadow = new DocTitleShadow(shape); break; case ShapeTypes.HangUp: shadow = new HangUpShadow(shape); break; case ShapeTypes.Interaction: shadow = new InteractionShadow(shape); break; case ShapeTypes.None: break; case ShapeTypes.OffPageRef: shadow = new OffPageRefShadow(shape); break; case ShapeTypes.OnPageRefIn: shadow = new OnPageRefInShadow(shape); break; case ShapeTypes.OnPageRefOut: shadow = new OnPageRefOutShadow(shape); break; case ShapeTypes.Page: break; case ShapeTypes.Placeholder: shadow = new IgnoredShadow(shape); break; case ShapeTypes.Play: shadow = new PlayShadow(shape); break; case ShapeTypes.Return: shadow = new ReturnShadow(shape); break; case ShapeTypes.Start: shadow = new StartShadow(shape); break; case ShapeTypes.SubDialog: shadow = new SubDialogShadow(shape); break; case ShapeTypes.Transfer: shadow = new TransferShadow(shape); break; } return(shadow); }