Ejemplo n.º 1
0
 private void DListViewerForm_FormClosed(object sender, FormClosedEventArgs e)
 {
     Instance = null;
     _disasForm?.Close();
     _segForm?.Close();
     _settingsForm?.Close();
 }
Ejemplo n.º 2
0
 public static void OpenInstance(Z64Game game)
 {
     if (Instance == null)
     {
         Instance = new DListViewerForm(game);
         Instance.Show();
     }
     else
     {
         Instance.Activate();
     }
 }
Ejemplo n.º 3
0
        private void openInDisplayViewerMenuItem_Click(object sender, EventArgs e)
        {
            var holder = GetCurrentHolder <Z64Object.ObjectHolder>();

            if (holder.GetEntryType() == Z64Object.EntryType.DList)
            {
                DListViewerForm.OpenInstance(_game);
                DListViewerForm.Instance.SetSegment(_segment, F3DZEX.Memory.Segment.FromBytes("[Selected Dlist]", _data));

                var dlist = GetCurrentHolder <Z64Object.DListHolder>();
                DListViewerForm.Instance.SetSingleDlist(new SegmentedAddress(_segment, _obj.OffsetOf(dlist)).VAddr);
            }
        }