public MapForm(ref byte[] bytes, Atlas atlas, string outFilename) { this.atlas = atlas; this.outFilename = outFilename; InitializeComponent(); canvasBox.DoubleBuffered(true); initColors(); EntityTable.Init(entityTable); ColumnTable.Init(columnTable); BlockTexTable.Init(blockTexTable); UnknownTable247264.Init(unknownTable247264); UnknownTable358222.Init(unknownTable358222); data = bytes; findHeightExtremes(); fillEntityTable(); fillColumnTable(); fillBlockTexTable(); fillUnknownTable247264(); fillUnknownTable358222(); draw(); }
private void editBlockTexButton_Click(object sender, EventArgs e) { BlockTexItem item = blockTexTable.SelectedItems[0].Tag as BlockTexItem; EditItemForm f = new EditItemForm(item); if (f.ShowDialog(this) == System.Windows.Forms.DialogResult.None) { return; } item.UpdateCaptions(); BlockTexTable.Write(blockTexItems, ref data); writeButton.Enabled = true; }
private void fillBlockTexTable() { blockTexItems = BlockTexTable.Fill(blockTexTable, ref data, ref lineColors, ref pointColors); blockTexTableInfo.Text = blockTexItems.Count + " items found"; }