AoMModelEditor.GrnUi.LoadTextureUI C# (CSharp) Метод

LoadTextureUI() публичный Метод

public LoadTextureUI ( ) : void
Результат void
        public void LoadTextureUI()
        {
            this.Plugin.grnObjectListView.Columns.Clear();
            OLVColumn nameCol = new OLVColumn("Name", "Name");
            nameCol.Width = 100;
            nameCol.IsEditable = false;
            this.Plugin.grnObjectListView.Columns.Add(nameCol);

            //OLVColumn idCol = new OLVColumn("ID", "DataExtensionIndex");
            //idCol.Width = 100;
            //idCol.IsEditable = false;
            //this.Plugin.grnObjectListView.Columns.Add(idCol);

            OLVColumn widthCol = new OLVColumn("Width", "Width");
            widthCol.Width = 45;
            widthCol.IsEditable = false;
            this.Plugin.grnObjectListView.Columns.Add(widthCol);

            OLVColumn heightCol = new OLVColumn("Height", "Height");
            heightCol.Width = 45;
            heightCol.IsEditable = false;
            this.Plugin.grnObjectListView.Columns.Add(heightCol);

            OLVColumn fileNameCol = new OLVColumn("FileName", "FileName");
            fileNameCol.Width = 100;
            fileNameCol.IsEditable = false;
            this.Plugin.grnObjectListView.Columns.Add(fileNameCol);
        }

Usage Example

Пример #1
0
        private void grnObjectsTreeListView_SelectedIndexChanged(object sender, EventArgs e)
        {
            if (this.grnObjectsTreeListView.SelectedObject == null)
            {
                return;
            }

            if (this.grnObjectsTreeListView.SelectedObject is GrnBone)
            {
                grn.LoadBoneUI();
            }
            else if (this.grnObjectsTreeListView.SelectedObject is GrnMesh)
            {
                grn.LoadMeshUI();
            }
            else if (this.grnObjectsTreeListView.SelectedObject is GrnMaterial)
            {
                grn.LoadMaterialUI();
            }
            else if (this.grnObjectsTreeListView.SelectedObject is GrnTexture)
            {
                grn.LoadTextureUI();
            }

            this.grnObjectListView.SetObjects(new object[] { this.grnObjectsTreeListView.SelectedObject });
        }