Beispiel #1
0
        public ViewPanal(SceneEntry entry)
            : base()
        {
            //_entry = entry;
            this.IntialOneView();

            //this.IntialTwoView();
        }
Beispiel #2
0
 public BottomPanal(SceneEntry entry)
     : base()
 {
     _entry = entry;
     this._label = new Label();
     MyConsole.OnOutput += this.Console;
     this.Initialize();
 }
Beispiel #3
0
        public OutlinePanel( SceneEntry scene)
            : base()
        {
            _game = SceneEntry.Scene;
            Initialize();

            SysCollector.Singleton.Listener += sysEvent;
        }
Beispiel #4
0
        public PropertyPanal(SceneEntry entry)
            : base()
        {
            _entry = entry;
            //_entry.Scene.SelectorHandler += Show;

            SelectFunction.OnSelectionUpdate += OnSelectionUpdate;
            _selsList = new List<ISelectable>();
            this.Name = "PropertyPanal";
            UpdateHandler += Update;
        }
Beispiel #5
0
        public ViewContainer(string ViewNm, bool isEnabled)
        {
            MenuStrip menuStrip = new MenuStrip();
            menuStrip.SuspendLayout();

            //
            //StripMenuItem: Cam_Persp
            //
            //cam_Persp.Name = "Cam_Persp";
            //cam_Persp.Size = new System.Drawing.Size(152, 22);
            //cam_Persp.Text = "Persp";

            //
            //StripMenuItem: Cam_Top
            //
            //cam_Top.Name = "Cam_Top";
            //cam_Top.Size = new System.Drawing.Size(152, 22);
            //cam_Top.Text = "Top";

            //
            //StripMenuItem: Cam_Side
            //
            //cam_Side.Name = "Cam_Side";
            //cam_Side.Size = new System.Drawing.Size(152, 22);
            //cam_Side.Text = "Side";

            //
            //StripMenuItem: Cam_Front
            //
            //cam_Front.Name = "Cam_Front";
            //cam_Front.Size = new System.Drawing.Size(152, 22);
            //cam_Front.Text = "Front";

            //
            //StripMenuItem: CamList
            //
            //cam_List.DropDownItems.AddRange(new ToolStripMenuItem[]
                //{
              //      cam_Front,
                //    cam_Persp,
                  //  cam_Side,
                    //cam_Top
                //});
            cam_List.Name = "CamsList";
            cam_List.Size = new System.Drawing.Size(37, 20);
            cam_List.Text = "视图列表";

            cam_List.Click+=cam_List_Click;

            //
            //StripMenuItem:camContr
            //
            cam_Contr.Name = "CamContr";
            cam_Contr.Text = "视图控制";
            cam_Contr.Size=new System.Drawing.Size(37,20);
            ToolStripMenuItem newCam = new ToolStripMenuItem();
            newCam.Name = "New Camera";
            newCam.Text = "新建视图";
            newCam.Size = new System.Drawing.Size(37, 20);
            newCam.Click += new EventHandler(delegate(object sender, EventArgs e)
                {
                    new dCamera(SceneEntry.Scene);
                });
            cam_Contr.DropDownItems.AddRange(
                new ToolStripMenuItem[]{newCam}
                );
            //
            //MenuStrip
            //
            menuStrip.Items.AddRange(new ToolStripItem[]
                {
                    cam_List,
                    cam_Contr
                });
            menuStrip.Location = new System.Drawing.Point(0, 0);
            menuStrip.Name = "ViewMenuStrip";
            menuStrip.Size = new System.Drawing.Size(650, 25);
            menuStrip.TabIndex = 3;
            menuStrip.Text = "视图";

            ((System.ComponentModel.ISupportInitialize)
                    this).BeginInit();
            this.Panel1.SuspendLayout();
            this.Panel2.SuspendLayout();
            this.SuspendLayout();

            this.Dock = DockStyle.Fill;
            this.Location = new System.Drawing.Point(0, 0);
            this.Name = "SplitView";
            this.Orientation = Orientation.Horizontal;

            this.Panel1.Controls.Add(menuStrip);

            //a = _entry;
            //result.Panel2.Controls.Add(_entry);
            SceneEntry = new WinFormsContentLoading.SceneEntry();
            SceneEntry.Dock = System.Windows.Forms.DockStyle.Fill;
            SceneEntry.Location = new System.Drawing.Point(0, 0);
            SceneEntry.Name = ViewNm;
            SceneEntry.Size = new System.Drawing.Size(642, 407);
            SceneEntry.TabIndex = 11;
            SceneEntry.Text = "modelViewerControl";
            SceneEntry.IsActivate = isEnabled;

            this.Panel2.Controls.Add(SceneEntry);

            this.Size = new System.Drawing.Size(640, 480);
            this.SplitterDistance = 10;
            this.TabIndex = 3;
            this.AutoScaleMode = AutoScaleMode.Font;

            menuStrip.ResumeLayout(false);
            menuStrip.PerformLayout();
        }