Ejemplo n.º 1
0
        public void Init(PointCursor input)
        {
            mInput = input;

            pointStartPanel.Vector = new VectorUpdater(mInput.PointStart);
            pointDirPanel.Vector = new VectorUpdater(mInput.PointDir);
            topLeftPanel.Vector = new VectorUpdater(mInput.TopLeft);
            topPanel.Vector = new VectorUpdater(mInput.Top);
            sidePanel.Vector = new VectorUpdater(mInput.Side);
            intersectionPanel.Vector = new VectorUpdater(mInput.Intersection);
            normalPanel.Vector = new VectorUpdater(mInput.Normal);
            xPanel.Scalar = new ScalarUpdater(mInput.X);
            yPanel.Scalar = new ScalarUpdater(mInput.Y);
            worldWPanel.Scalar = new ScalarUpdater(mInput.WorldW);
            worldHPanel.Scalar = new ScalarUpdater(mInput.WorldH);
            screenWPanel.Scalar = new ScalarUpdater(mInput.ScreenW);
            screenHPanel.Scalar = new ScalarUpdater(mInput.ScreenH);

            xPanel.Max = mInput.ScreenW.Value;
            yPanel.Max = mInput.ScreenH.Value;
            enabledCheck.Checked = mInput.Enabled;

            pointStartPanel.Text = "Point Begin";
            pointDirPanel.Text = "Point Dir";
            topLeftPanel.Text = "Top Left";
            normalPanel.Text = "Normal";
            topPanel.Text = "Top";
            sidePanel.Text = "Side";
            intersectionPanel.Text = "Intersection";
        }
Ejemplo n.º 2
0
        public void Init(PointCursor input)
        {
            mInput = input;

            pointStartPanel.Vector   = new VectorUpdater(mInput.PointStart);
            pointDirPanel.Vector     = new VectorUpdater(mInput.PointDir);
            topLeftPanel.Vector      = new VectorUpdater(mInput.TopLeft);
            topPanel.Vector          = new VectorUpdater(mInput.Top);
            sidePanel.Vector         = new VectorUpdater(mInput.Side);
            intersectionPanel.Vector = new VectorUpdater(mInput.Intersection);
            normalPanel.Vector       = new VectorUpdater(mInput.Normal);
            xPanel.Scalar            = new ScalarUpdater(mInput.X);
            yPanel.Scalar            = new ScalarUpdater(mInput.Y);
            worldWPanel.Scalar       = new ScalarUpdater(mInput.WorldW);
            worldHPanel.Scalar       = new ScalarUpdater(mInput.WorldH);
            screenWPanel.Scalar      = new ScalarUpdater(mInput.ScreenW);
            screenHPanel.Scalar      = new ScalarUpdater(mInput.ScreenH);

            xPanel.Max           = mInput.ScreenW.Value;
            yPanel.Max           = mInput.ScreenH.Value;
            enabledCheck.Checked = mInput.Enabled;

            pointStartPanel.Text   = "Point Begin";
            pointDirPanel.Text     = "Point Dir";
            topLeftPanel.Text      = "Top Left";
            normalPanel.Text       = "Normal";
            topPanel.Text          = "Top";
            sidePanel.Text         = "Side";
            intersectionPanel.Text = "Intersection";
        }
Ejemplo n.º 3
0
 public PointCursorPanel(PointCursor input)
     : this()
 {
     Init(input);
 }
Ejemplo n.º 4
0
 public PointCursorPanel(PointCursor input)
     : this()
 {
     Init(input);
 }