Exemplo n.º 1
0
        public void UpdateValues()
        {
            if (_paused)
            {
                return;
            }

            if ((!IsHandleCreated || IsDisposed) && !Config.DisplayRamWatch)
            {
                return;
            }

            GlobalWin.OSD.ClearRamWatches();
            if (_watches.Any())
            {
                _watches.UpdateValues();
                DisplayOnScreenWatches();

                if (!IsHandleCreated || IsDisposed)
                {
                    return;
                }

                WatchListView.RowCount = _watches.Count;
            }
        }
Exemplo n.º 2
0
        private void MinimalUpdate()
        {
            if ((!IsHandleCreated || IsDisposed) && !Config.DisplayRamWatch)
            {
                return;
            }

            if (_watches.Any())
            {
                _watches.UpdateValues(Config.RamWatchDefinePrevious);
                DisplayOnScreenWatches();
            }
        }
Exemplo n.º 3
0
        public void UpdateValues()
        {
            if (_paused)
            {
                return;
            }

            if ((!IsHandleCreated || IsDisposed) && !Global.Config.DisplayRamWatch)
            {
                return;
            }

            if (_watches.Any())
            {
                _watches.UpdateValues();

                if (Global.Config.DisplayRamWatch)
                {
                    for (var i = 0; i < _watches.Count; i++)
                    {
                        var frozen = !_watches[i].IsSeparator && Global.CheatList.IsActive(_watches[i].Domain, _watches[i].Address);
                        GlobalWin.OSD.AddGUIText(
                            _watches[i].ToDisplayString(),
                            Global.Config.DispRamWatchx,
                            Global.Config.DispRamWatchy + (i * 14),
                            Color.Black,
                            frozen ? Color.Cyan : Color.White,
                            0
                            );
                    }
                }

                if (!IsHandleCreated || IsDisposed)
                {
                    return;
                }

                WatchListView.BlazingFast         = true;
                WatchListView.UseCustomBackground = NeedsBackground;
                WatchListView.Invalidate();
                WatchListView.BlazingFast = false;
            }
        }
 /// <summary>
 /// This method is called when a frame is rendered
 /// You can comapre it the lua equivalent emu.frameadvance()
 /// </summary>
 public void UpdateValues()
 {
     if (Global.Game.Name != "Null")
     {
         //we update our watches
         _watches.UpdateValues();
         label_Watch1.Text = string.Format("First watch ({0}) current value: {1}", _watches[0].AddressString, _watches[0].ValueString);
         label_Watch2.Text = string.Format("Second watch ({0}) current value: {1}", _watches[1].AddressString, _watches[1].ValueString);
         label_Watch3.Text = string.Format("Third watch ({0}) current value: {1}", _watches[2].AddressString, _watches[2].ValueString);
     }
 }
Exemplo n.º 5
0
        public void UpdateValues()
        {
            if (_paused)
            {
                return;
            }

            if ((!IsHandleCreated || IsDisposed) && !Global.Config.DisplayRamWatch)
            {
                return;
            }

            GlobalWin.OSD.ClearGuiText();
            if (_watches.Any())
            {
                _watches.UpdateValues();

                if (Global.Config.DisplayRamWatch)
                {
                    for (var i = 0; i < _watches.Count; i++)
                    {
                        var frozen = !_watches[i].IsSeparator && Global.CheatList.IsActive(_watches[i].Domain, _watches[i].Address);
                        GlobalWin.OSD.AddGuiText(
                            _watches[i].ToDisplayString(),
                            Global.Config.DispRamWatchx,
                            Global.Config.DispRamWatchy + (i * 14),
                            Color.Black,
                            frozen ? Color.Cyan : Color.White,
                            0);
                    }
                }

                if (!IsHandleCreated || IsDisposed)
                {
                    return;
                }

                WatchListView.RowCount = _watches.Count;
            }
        }