Esempio n. 1
0
        public VHAMEditor(EditorVHAMFile data, StandardUI host)
        {
            InitializeComponent();
            this.glControl1             = new OpenTK.GLControl();
            this.glControl1.BackColor   = System.Drawing.Color.Black;
            this.glControl1.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
            this.glControl1.Location    = new System.Drawing.Point(452, 61);
            this.glControl1.Name        = "glControl1";
            this.glControl1.Size        = new System.Drawing.Size(256, 256);
            this.glControl1.TabIndex    = 0;
            this.glControl1.VSync       = false;
            this.glControl1.Load       += new System.EventHandler(this.glControl1_Load);
            this.glControl1.Paint      += new System.Windows.Forms.PaintEventHandler(this.glControl1_Paint);
            robotPanel       = new RobotPanel();
            robotPanel.Dock  = DockStyle.Fill;
            weaponPanel      = new WeaponPanel();
            weaponPanel.Dock = DockStyle.Fill;
            components.Add(robotPanel); components.Add(weaponPanel); components.Add(glControl1);

            RobotTabPage.Controls.Add(robotPanel);
            WeaponTabPage.Controls.Add(weaponPanel);
            if (!noPMView)
            {
                this.tabPage3.Controls.Add(this.glControl1);
            }
            datafile      = data;
            this.host     = host;
            palette       = host.DefaultPalette;
            modelRenderer = new ModelRenderer(datafile.BaseHAM, datafile.BaseHAM.piggyFile, palette);
        }
Esempio n. 2
0
        public VHAMEditor(EditorVHAMFile data, StandardUI host)
        {
            InitializeComponent();
            robotPanel          = new RobotPanel(transactionManager, 0);
            robotPanel.Dock     = DockStyle.Fill;
            weaponPanel         = new WeaponPanel(transactionManager, 1);
            weaponPanel.Dock    = DockStyle.Fill;
            polymodelPanel      = new PolymodelPanel(transactionManager, 2, host.DefaultPigFile, host.DefaultPalette, data.BaseHAM);
            polymodelPanel.Dock = DockStyle.Fill;
            components.Add(robotPanel); components.Add(weaponPanel); components.Add(polymodelPanel);

            RobotTabPage.Controls.Add(robotPanel);
            WeaponTabPage.Controls.Add(weaponPanel);
            ModelTabPage.Controls.Add(polymodelPanel);
            datafile  = data;
            this.host = host;
            palette   = host.DefaultPalette;
        }