Beispiel #1
0
        private void VGLocationsList_Click(object sender, EventArgs e)
        {
            Extension Ext = new Extension();

            LavishVMAPI.Frame.Lock();
            string     buf       = VGLocationsList.SelectedItem.ToString();
            int        PeriodLoc = buf.IndexOf(".") + 2;
            string     Label     = buf.Substring(PeriodLoc);
            VGLocation Loc       = Ext.VGLoc(Label);

            NameLabel.Text     = "Name: " + Loc.Label;
            ChunkLabel.Text    = "Chunk: " + Loc.MapDisplayName + "(" + Loc.ChunkX + " x " + Loc.ChunkY + ")";
            XYZLabel.Text      = "Coordinates: " + Loc.X + ", " + Loc.Y + ", " + Loc.Z;
            SectorXYLabel.Text = "Sector: " + Loc.SectorX + " x " + Loc.SectorY;
            NotesLabel.Text    = "Notes: " + Loc.Notes;
            LavishVMAPI.Frame.Unlock();
        }
Beispiel #2
0
        public VGLocationsForm()
        {
            InitializeComponent();
            Extension Ext = new Extension();

            LavishVMAPI.Frame.Lock();
            ISXVG isxvg = Ext.ISXVG();


            for (int i = 1; i < isxvg.VGLocsCount; i++)
            {
                VGLocation Loc = new VGLocation(i);

                if (Loc.Label.Length == 0)
                {
                    continue;
                }

                VGLocationsList.Items.Add(i.ToString() + ". " + Loc.Label);
            }
            VGLocationsList.Items.Add("---");
            VGLocationsList.Items.Add("Total Locations: " + isxvg.VGLocsCount.ToString());
            LavishVMAPI.Frame.Unlock();
        }