IList <LineDisplayItem> IRomDataParentObject.GetListItems() { LineDisplayItem[] items = new LineDisplayItem[0x40]; for (int i = 0; i < 0x40; i++) { items[i] = new LineDisplayItem("Combo " + i.ToString("X"), Offset + i * 4, 4, rom.data); } return(items); }
private void PointerList_SelectedIndexChanged(object sender, EventArgs e) { if (PointerList.SelectedIndices.Count > 0) { ListViewItem item = PointerList.SelectedItems[0]; if (item.Tag is LineDisplayItem) { LineDisplayItem data = (LineDisplayItem)item.Tag; DisplayDataString(item.SubItems[3].Text, data.offset, data.length); } } }
IList <LineDisplayItem> IRomDataParentObject.GetListItems() { LineDisplayItem[] items = new LineDisplayItem[groups.Count]; for (int i = 0; i < groups.Count; i++) { PatternGroupOffsets offsets = rom.PatternGroupOffsets[groups[i]]; items[i] = new LineDisplayItem( "Pattern Group " + i.ToString("X"), offsets.SourceRomOffset, offsets.TileCount * 16, rom.data); } return(items); }