Пример #1
0
        private void UpdateWindow(object sender, EventArgs e)
        {
            GameInfo gi = null;

            if (_settings.CoordsAccessMod == CoordsAccessMods.Memory)
            {
                gi = memRead.GetValues();
            }
            else
            {
                if (_settings.ChatLogConfigs.Length > _settings.CurrentChatLogConfigIndex)
                {
                    gi = fileRead.GetValues(_settings.ChatLogConfigs[_settings.CurrentChatLogConfigIndex]);
                }
            }

            if (gi != null)
            {
                LatLonLbl.Text = $"{gi.Name} @ {gi.Lat},{gi.Lon}";
                if (lat != gi.Lat || lon != gi.Lon)
                {
                    lat = gi.Lat;
                    lon = gi.Lon;
                    DrawGutters(gi.Lat, gi.Lon, GutterAlert());
                }
            }
            else
            {
                LatLonLbl.Text = "Unable to find data";
            }
        }
Пример #2
0
        private void UpdateWindow(object sender, EventArgs e)
        {
            var gi = memRead.GetValues();

            if (gi != null)
            {
                LatLonLbl.Text = $"{gi.Name} @ {gi.Lat},{gi.Lon}";
                if (lat != gi.Lat || lon != gi.Lon)
                {
                    lat = gi.Lat;
                    lon = gi.Lon;
                    DrawGutters(gi.Lat, gi.Lon, GutterAlert());
                }
            }
            else
            {
                LatLonLbl.Text = "Unable to find data";
            }
        }