Example #1
0
 public MoveCmd Init(Path p, ClickDel click)
 {
     mPath = p;
     mPathComp.RenderPoints = mPath.RenderPoints();
     transform.position     = mPath.End;
     transform.Rotate(Vector3.forward, Vector2.SignedAngle(transform.up, mPath.EndDir));
     GetComponent <ClickComponent>().OnLeftClick = click;
     return(this);
 }
Example #2
0
        public Button(Button button, D3DX direct)
        {
            textColor = button.textColor;
            draw      = button.draw;
            position_ = button.position_;
            _width    = button._width;
            _height   = button._height;

            Label      = new Text(button.Label, direct);
            _Rectangle = new Shapes.Rectangle(button._Rectangle, direct);
            _Click     = button._Click;
            _App       = button._App;
            _App.Screen(out screenWidth_, out screenHeight_);
        }
Example #3
0
        public bool Initialize(D3DX direct)
        {
            _Rectangle = new TopoCS.Shapes.Rectangle();
            if (!_Rectangle.Initialize(direct.Device))
            {
                return(false);
            }
            _Rectangle.twoWay = true;

            Label = new Text();
            if (!Label.Initialize(direct))
            {
                return(false);
            }
            Label.SetText(direct, " ");
            Label.color = textColor;
            _Click      = _App.fPTR;

            return(true);
        }
Example #4
0
 public void OnClick(ClickDel del)
 {
     _Click = del;
     return;
 }