Exemple #1
0
        public void UpdatePosition()
        {
            var rect = reader.GetGameWindowBounds();

            ShowOverlay(reader.IsGameInForeground());

            //hs window has height 0 if it just launched, screwing things up if the tracker is started before hs is.
            //this prevents that from happening.
            if (rect.H == 0 || Visibility != Visibility.Visible)
            {
                SetRect(0, 0, 0, 0);
                return;
            }

            SetRect((int)rect.Y, (int)rect.X, (int)rect.W, (int)rect.H);
        }