public PhotoColorInfor() { InitializeComponent(); dg = new DrawGraphic(DrawCanvas); ShowCC(); acm = new ActionMove(this, this); }
public LayerInfor() { InitializeComponent(); am = new ActionMove(this, Title); am.Enable = true; ar = new ActionResize(LayoutRoot); }
public ITEGrayscaleChartTest() { InitializeComponent(); testHelper = new ChartTestHelper(this); //photoInforTool1.setTarget(ChartPhoto); am = new ActionMove(this, Title); //photoEditToolbar.setChartControl(ChartPhoto);//设置图版和工具栏的关联 //photoEditToolbar.saveChartTestResult = WriteToHTML; //ChartPhoto.InitTest(autoTest); //ChartPhoto.InitSaveTest(WriteToHTML); ci = new CameraTestIcon(this, null, "ITEGrayscaleChart", "ITE灰阶"); ci.release = CloseWindow; CameraTestDesktop cd = CameraTestDesktop.getDesktop(); if (!cd.TaskList.Children.Contains(ci)) { cd.TaskList.Children.Add(ci); } else { ci.Active(); } dg = new DrawGraphic(canvasLatitude); }
private void Update() { if (Input.GetKeyUp(KeyCode.M)) { // Create Move GameObject go = new GameObject(string.Format("{0}_Move", _actions.Count)); ActionMove a = go.AddComponent <ActionMove>(); a.Direction = Vector3.right; a.Speed = 500.0f; a.Duration = 1.0f; Add(a); go.transform.SetParent(transform); } if (Input.GetKeyUp(KeyCode.W)) { GameObject go = new GameObject(string.Format("{0}_Wait", _actions.Count)); ActionWait w = go.AddComponent <ActionWait>(); w.Duration = 1.0f; Add(w); go.transform.SetParent(transform); } }
private void CreateOrderMove(Vector3 direction) { if (CouldAddnewOrder() == false) { // Debug.Log("不能添加动作"); return; } if (lastDir != null) { direction = (direction + lastDir).normalized; lastDir = direction; } AgentOrder order = AgentOrderFactory.Create(AgentOrder.E_OrderType.E_GOTO); order.Direction = direction; order.MoveSpeedModifier = moveSpeed; Owner.BlackBoard.OrderAdd(order); Owner.BlackBoard.DesiredDirection = direction; ActionMove actionMove = ActionFactory.Create(ActionFactory.E_Type.E_MOVE) as ActionMove; GetComponent <AnimComponent>().HandleAction(actionMove); }
//Dictionary<WriteableBitmap, XMarkChart> tl = new Dictionary<WriteableBitmap, XMarkChart>(); public XMarkTest() { InitializeComponent(); testHelper = new ChartTestHelper(this); am = new ActionMove(this, Title); //photoInforTool1.setTarget(ChartPhoto); //lPhotoList1.TargetControl = ChartPhoto; //lPhotoList1.photoOperated += new UIControl.PhotoOperation(lPhotoList1_photoModifyed); //photoEditToolbar.setChartControl(lPhotoList1);//设置图版和工具栏的关联 //photoEditToolbar.saveChartTestResult = WriteToHTML; //photoEditToolbar.setTestAll(BeginAll); //ChartPhoto.InitTest(Begin); ci = new CameraTestIcon(this, null, "XMark", "XMark测试卡"); ci.release = CloseWindow; CameraTestDesktop cd = CameraTestDesktop.getDesktop(); if (!cd.TaskList.Children.Contains(ci)) { cd.TaskList.Children.Add(ci); } else { ci.Active(); } }
public ColorSelect() { InitializeComponent(); acm = new ActionMove(this, this); cb.Color = Colors.White; RegColor.Fill = cb; }
//constructors private RRLine() { _voidFuncs = new List <ActionVoid>(); _moveFunc = null; _useFunc = null; Activated = false; }
public bool turnTime; //True - kiedy można wykonać ruch, False - wykonywanie akcji void Awake() { AM = GetComponent <ActionMove>(); W = GetComponent <Weapon>(); Debug.Assert(AM != null); Debug.Assert(W != null); }
public ShutterSpeed() { InitializeComponent(); BackTimer.Interval = TimeSpan.FromMilliseconds(1000); MainTimer.Interval = new TimeSpan(0, 0, 0, 0, 10); am = new ActionMove(this, this); }
public Noise() { InitializeComponent(); am = new ActionMove(this, this); dg = new DrawGraphic(DrawCanvas); dg1 = new DrawGraphic(lChartPhoto1.getDrawObjectCanvas()); }
public BadPixTest() { InitializeComponent(); am = new ActionMove(this, this); dg = new DrawGraphic(lChartPhotoBadPix.getDrawObjectCanvas()); //am1 = new ActionMove(ProcPhoto, ProcPhoto); //am1.Enable = false; }
public PhotoEditCanvas() { InitializeComponent(); acm = new ActionMove(this, PhotoTitle); acs = new ActionResize(PhotoEditFramework, PhotoEditFramework, new LynxResized(_Resized)); acs.Enable = true; InitLayers();//初始化图层 }
public ActionMove Move(GameObject go, Vector3 end, float duration, Ease ease = null) { var action = new ActionMove(go, end, duration, ease); Add(action); return(action); }
public Dispersiveness() { InitializeComponent(); am = new ActionMove(this, Title); photoTestToolbar1.setTarget(lChartPhoto1); photoTestToolbar1.autoTest = ParameterAutoTest; photoTestToolbar1.addPhoto = AddPhoto; photoTestToolbar1.removePhoto = RemovePhoto; }
public BrightDistance() { InitializeComponent(); am = new ActionMove(this, this); //photoTestToolbar1.setTarget(HB); //photoTestToolbar1.autoTest = ParameterAutoTest; //photoTestToolbar1.addPhoto = AddPhoto; //photoTestToolbar1.removePhoto = RemovePhoto; dg = new DrawGraphic(ImageBrightCurve); }
public Latitude() { InitializeComponent(); am = new ActionMove(this, Title); photoTestToolbar1.setTarget(lChartPhoto1); photoTestToolbar1.autoTest = ParameterAutoTest; photoTestToolbar1.addPhoto = AddPhoto; photoTestToolbar1.removePhoto = RemovePhoto; dg = new DrawGraphic(DrawCanvas); }
{ //support photo load and scale/rotate/transform //support draw some geometry //mergin layer public PhotoLayer() { InitializeComponent(); li = new LayerIcon(this); acm = new ActionMove(this, this); acm.Enable = false; ar = new ActionResize(Layer, Layer, new LynxResized(_Resized)); ar.Enable = false;//默认不可缩放 }
public Wave() { InitializeComponent(); am = new ActionMove(this, Title); photoTestToolbar1.setTarget(lChartPhoto1); photoTestToolbar1.autoTest = ParameterAutoTest; photoTestToolbar1.addPhoto = AddPhoto; photoTestToolbar1.removePhoto = RemovePhoto; lChartPhoto1.getImage().PointerPressed += image_PointerPressed; }
public ColorTrend() { InitializeComponent(); am = new ActionMove(this, this); dg = new DrawGraphic(CC); //photoTestToolbar1.setTarget(lChartPhoto); //photoTestToolbar1.autoTest = ParameterAutoTest; //photoTestToolbar1.addPhoto = AddPhoto; //photoTestToolbar1.removePhoto = RemovePhoto; }
public BadPixTest() { InitializeComponent(); am = new ActionMove(this, Title); photoTestToolbar1.setTarget(lChartPhotoBadPix); photoTestToolbar1.autoTest = Test; photoTestToolbar1.addPhoto = AddPhoto; photoTestToolbar1.removePhoto = RemovePhoto; dg = new DrawGraphic(lChartPhotoBadPix.getDrawObjectCanvas()); //am1 = new ActionMove(ProcPhoto, ProcPhoto); //am1.Enable = false; }
// Use this for initialization void Start() { ActionManager.Instance.Add( this.gameObject, ActionMove.Create( this.target, 2f, Vector3.zero, new Vector3(10f, 0f, 0f) ) ); }
public Aberration() { InitializeComponent(); am = new ActionMove(this, Title); //am1 = new ActionMove(PhotoClip, image); photoTestToolbar1.setTarget(LChartPhoto); photoTestToolbar1.autoTest = TestImage; photoTestToolbar1.addPhoto = AddPhoto; photoTestToolbar1.removePhoto = RemovePhoto; dg = new DrawGraphic(LChartPhoto.getDrawObjectCanvas()); }
public LChartPhoto() { InitializeComponent(); amI = new ActionMove(PhotoBorder, canvasEdit); amI.Enable = false; selectArea.Stroke = new SolidColorBrush(Colors.Red); selectArea.StrokeThickness = 2; Canvas.SetZIndex(selectArea, 20); Resized(Width, Height); ResetSize(); //_DefaultWidth = Width; //_DefaultHeight = Height; }
// Use this for initialization void Start() { drek.count = 10; drek.name = "Drek!"; move = GetComponent <ActionMove>(); //actionHandlers = GetComponents<ActionHandler>(); move.Add(HandleAction1).Add(HandleAction2).Add(HandleAction3); move.Remove(HandleAction2); move.Subscribe(provider); }
public LynxPhotoViewControl() { this.InitializeComponent(); //DataContext = this; amI = new ActionMove(PhotoBorder, EditLayer); amI.Enable = false; selectArea.Stroke = new SolidColorBrush(Colors.Red); selectArea.StrokeThickness = 2; Canvas.SetZIndex(selectArea, 20); //Resized(Width, Height); //ResetSize(); CanScale = false; }
protected override void Initialize(ActionBase action) { base.Initialize(action); Action = action as ActionMove; FinalRotation.SetLookRotation(Owner.BlackBoard.DesiredDirection); StartRotation = Owner.Transform.rotation; Owner.BlackBoard.MotionType = GetMotionType(); RotationProgress = 0; }
override public void OnDeactivate() { if (Action != null) { Action.SetSuccess(); Action = null; } Owner.BlackBoard.Speed = 0; base.OnDeactivate(); // Time.timeScale = 1; }
//停止方向移动 virtual public void StopDirMove() { if (mActionCenter == null) { return; } ActionMove am = mActionCenter.GetActionByType(ActionTypeDef.ActionTypeMove) as ActionMove; if (am != null && am.IsDirection()) { mActionCenter.RemoveActionByType(ActionTypeDef.ActionTypeMove); } }
public RayleiResolution() { InitializeComponent(); am = new ActionMove(this, this); ll.Fill = ll.Stroke = new SolidColorBrush(Colors.Blue); rl.Fill = rl.Stroke = new SolidColorBrush(Colors.Blue); pl.Fill = pl.Stroke = new SolidColorBrush(Colors.Red); ll.StrokeThickness = 3; rl.StrokeThickness = 3; pl.StrokeThickness = 3; ToolTipService.SetToolTip(ll, "左边界"); ToolTipService.SetToolTip(rl, "右边界"); ToolTipService.SetToolTip(pl, "自动极限"); Selectl.Stroke = Selectl.Fill = new SolidColorBrush(Colors.Orange); Selectl.StrokeThickness = 5; }
void Update() { switch(state) { case State.Approach: if(!approachingDone && wrestler1.distanceToOpponent < approachingStopDistance) { Debug.Log("Stopping approach"); approachingDone = true; } break; case State.Resolution: resolvingMove.UpdateHitting(); break; case State.Reset: resolvingMove = null; state = State.Approach; approachingDone = false; break; } }
public void SetResolution(ActionMove _resolvingMove) { state = State.Resolution; resolvingMove = _resolvingMove; }