public void GetProperties(IExportEntry export) { List<PropertyReader.Property> p; switch (export.ClassName) { default: p = PropertyReader.getPropList(export); break; } pg = new PropGrid(); pg1.SelectedObject = pg; for (int l = 0; l < p.Count; l++) pg.Add(PropertyReader.PropertyToGrid(p[l], pcc)); pg1.Refresh(); }
public void PreviewProps(int n) { List<PropertyReader.Property> p = PropertyReader.getPropList(pcc.getExport(n)); pg = new PropGrid(); propGrid.SelectedObject = pg; pg.Add(new CustomProperty("Name", "_Meta", pcc.getExport(n).ObjectName, typeof(string), true, true)); pg.Add(new CustomProperty("Class", "_Meta", pcc.getExport(n).ClassName, typeof(string), true, true)); pg.Add(new CustomProperty("Data Offset", "_Meta", pcc.getExport(n).DataOffset, typeof(int), true, true)); pg.Add(new CustomProperty("Data Size", "_Meta", pcc.getExport(n).DataSize, typeof(int), true, true)); for (int l = 0; l < p.Count; l++) pg.Add(PropertyReader.PropertyToGrid(p[l], pcc)); propGrid.Refresh(); propGrid.ExpandAllGridItems(); }
public void GetProperties(int n) { List<PropertyReader.Property> p; switch (pcc.Exports[n].ClassName) { default: byte[] buff = pcc.Exports[n].Data; p = PropertyReader.getPropList(pcc, buff); break; } pg = new PropGrid(); pg1.SelectedObject = pg; pg.Add(new CustomProperty("Name", "_Meta", pcc.Exports[n].ObjectName, typeof(string), true, true)); pg.Add(new CustomProperty("Class", "_Meta", pcc.Exports[n].ClassName, typeof(string), true, true)); pg.Add(new CustomProperty("Data Offset", "_Meta", pcc.Exports[n].DataOffset, typeof(int), true, true)); pg.Add(new CustomProperty("Data Size", "_Meta", pcc.Exports[n].DataSize, typeof(int), true, true)); for (int l = 0; l < p.Count; l++) pg.Add(PropertyReader.PropertyToGrid(p[l], pcc)); pg1.Refresh(); }
public void PreviewProps() { int n = GetSelected(); if (n == -1 || !(CurrentView == 2 || CurrentView == 3)) return; List<ME3Explorer.Unreal.PropertyReader.Property> p; //propGrid.Visible = true; //hb1.Visible = false; //rtb1.Visible = false; //treeView1.Visible = false; switch (pcc.Exports[n].ClassName) { default: byte[] buff = pcc.Exports[n].Data; p = ME3Explorer.Unreal.PropertyReader.getPropList(pcc, buff); break; } pg = new PropGrid(); propGrid.SelectedObject = pg; pg.Add(new CustomProperty("Name", "_Meta", pcc.Exports[n].ObjectName, typeof(string), true, true)); pg.Add(new CustomProperty("Class", "_Meta", pcc.Exports[n].ClassName, typeof(string), true, true)); pg.Add(new CustomProperty("Data Offset", "_Meta", pcc.Exports[n].DataOffset, typeof(int), true, true)); pg.Add(new CustomProperty("Data Size", "_Meta", pcc.Exports[n].DataSize, typeof(int), true, true)); for (int l = 0; l < p.Count; l++) pg.Add(ME3Explorer.Unreal.PropertyReader.PropertyToGrid(p[l], pcc)); propGrid.Refresh(); propGrid.ExpandAllGridItems(); UpdateStatusEx(n); }