public void UpdateControl()
        {
            if (Config.MapGui.checkBoxMapOptionsEnable3D.Checked ||
                Config.MapGui.checkBoxMapOptionsEnableOrthographicView.Checked)
            {
                _mapObjHitboxHackTris.Update();
            }
            if (!Config.MapGui.checkBoxMapOptionsEnable3D.Checked)
            {
                _mapObjMap.Update();
            }
            _mapObjBackground.Update();

            lock (_objectLock)
            {
                foreach (MapTracker tracker in Controls)
                {
                    tracker.UpdateControl();
                }
            }
        }
Пример #2
0
        public void UpdateControl()
        {
            (int num2DTopDown, int num2DOrthographic, int num3D) = FormManager.GetMapCounts();
            if (!Config.MapGui.checkBoxMapOptionsDisableHitboxTris.Checked && (num2DOrthographic > 0 || num3D > 0))
            {
                _mapObjHitboxTris.Update();
            }
            if (num2DTopDown > 0)
            {
                _mapObjMap.Update();
            }
            _mapObjBackground.Update();

            lock (_objectLock)
            {
                foreach (MapTracker tracker in Controls)
                {
                    tracker.UpdateControl();
                }
            }
        }