AoMModelEditor.BrgUi.LoadAttachpointUI C# (CSharp) Method

LoadAttachpointUI() public method

public LoadAttachpointUI ( ) : void
return void
        public void LoadAttachpointUI()
        {
            this.Plugin.brgObjectListView.Columns.Clear();
            OLVColumn nameCol = new OLVColumn("Name", "Name");
            nameCol.Width = 100;
            nameCol.IsEditable = false;
            this.Plugin.brgObjectListView.Columns.Add(nameCol);

            OLVColumn posCol = new OLVColumn("Positon", "Position");
            posCol.Width = 250;
            posCol.IsEditable = false;
            this.Plugin.brgObjectListView.Columns.Add(posCol);
        }

Usage Example

Example #1
0
        private void brgObjectsTreeListView_SelectionChanged(object sender, EventArgs e)
        {
            if (this.brgObjectsTreeListView.SelectedObject == null)
            {
                return;
            }

            if (this.brgObjectsTreeListView.SelectedObject is BrgAttachpoint)
            {
                brg.LoadAttachpointUI();
            }
            else if (this.brgObjectsTreeListView.SelectedObject is BrgMesh)
            {
                brg.LoadMeshUI();
            }
            else if (this.brgObjectsTreeListView.SelectedObject is BrgMaterial)
            {
                brg.LoadMaterialUI();
            }

            this.brgObjectListView.SetObjects(new object[] { this.brgObjectsTreeListView.SelectedObject });
        }