Exemplo n.º 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);
        }
Exemplo n.º 3
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;
        }