Esempio n. 1
0
 public static void Clear()
 {
     if (OverlayIconManager._instance)
     {
         for (int i = 0; i < OverlayIconManager._instance._icons.Count; i++)
         {
             OverlayIconManager.OverlayIconType overlayIconType = OverlayIconManager._instance._icons[i];
             if (overlayIconType != null)
             {
                 overlayIconType.Clear();
             }
         }
     }
 }
Esempio n. 2
0
        private void LateUpdate()
        {
            if (!LocalPlayer.Transform)
            {
                return;
            }
            float  num  = LocalPlayer.MainCam.fieldOfView * 0.0174532924f;
            double num2 = 2.0 * Math.Atan((double)(Mathf.Tan(num / 2f) * LocalPlayer.MainCam.aspect));

            OverlayIconManager._hFOV = Convert.ToSingle(57.295780181884766 * num2) * this._hFovRatio;
            this._legacy             = !PlayerPreferences.OverlayIconsGrouping;
            for (int i = 0; i < this._icons.Count; i++)
            {
                OverlayIconManager.OverlayIconType overlayIconType = this._icons[i];
                if (overlayIconType != null)
                {
                    overlayIconType.CheckGroupBreak(this._groupingBreakRange, this._superGroupingBreakRange);
                    overlayIconType.Update(!this._legacy, this._groupingBreakExpandDuration);
                }
            }
            this._dynamicIcons.Update(false, 0f);
        }