// Dump the display list of the currently selected gfx node (if applicable) // This can contain vertices and triangles, but also draw settings like lighting and fog private void DumpButton_Click(object sender, EventArgs e) { if (SelectedNode != null && SelectedNode is GfxDisplayList) { uint address = Config.Stream.GetUInt32(SelectedNode.Address + 0x14); _outputTextBox.Text = Fast3DDecoder.DecodeList(Fast3DDecoder.DecodeSegmentedAddress(address)); } else { MessageBox.Show("Select a display list node first"); } }
// Dump the display list of the currently selected gfx node (if applicable) // This can contain vertices and triangles, but also draw settings like lighting and fog private void DumpButton_Click(object sender, EventArgs e) { if (SelectedNode != null && (SelectedNode is GfxDisplayList || SelectedNode is GfxAnimationNode || SelectedNode is GfxTranslatedModel || SelectedNode is GfxRotationNode)) { uint address = Config.Stream.GetUInt32(SelectedNode.Address + 0x14); richTextBoxGfx.Text = Fast3DDecoder.DecodeList(SegmentationUtilities.DecodeSegmentedAddress(address)); } else { MessageBox.Show("Select a display list node first"); } }