Пример #1
0
        private void addMaterial(Material m)
        {
            var mi = new MaterialItem();

            mi.MaterialName = m.Name;
            mi.Material = m;
            if (m.Texture != null) { mi.SetThumbnail(m.Texture.GetThumbnail()); }

            flpMaterials.Controls.Add(mi);
        }
        public frmReincarnationMaterialEditor(MaterialItem mi, Material M)
        {
            InitializeComponent();

            cboBaseMaterial.SelectedIndex = 15;

            parent = mi;
            material = (M.SupportingDocuments["Source"] as MT2);

            setMaterial(material);
            pbPreview.Image = M.Texture.GetThumbnail(256);
        }
Пример #3
0
        public void SetMaterial(Material M)
        {
            m = M;

            txtName.Text = M.Name;
            SetTexture(M.Texture);

            foreach (Control c in gbPropFlags.Controls)
            {
                //if (c is CheckBox) { ((CheckBox)c).Checked = M.GetFlag(Int32.Parse(c.Name.Substring(3))); }
            }
        }
Пример #4
0
        public frmMaterialEditor(MaterialItem mi, Material M)
        {
            InitializeComponent();

            this.mi = mi;

            SetMaterial(M);

            this.Width = 440;
            gbPropColour.Left = 12;
            gbPropLighting.Left = 12;
            gbPropFlags.Left = 12;
            gbPropData.Left = 12;
        }