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;
            }
        }
Exemplo n.º 4
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;
            }
        }