void InitializeSettings()
        {
            if (Settings == null)
            {
                return;
            }

            // misc
            this.Prefabs = Settings.Prefabs;

            // radar settings
            this.hideInRadar          = Settings.hideInRadar;
            this.ignoreRadarRadius    = Settings.ignoreRadarRadius;
            this.rotateWithGameObject = Settings.rotateWithGameObject;
            this.useRadarHeightSystem = Settings.useRadarHeightSystem;

            // compass bar settings
            this.hideInCompassBar             = Settings.hideInCompassBar;
            this.ignoreCompassBarRadius       = Settings.ignoreCompassBarRadius;
            this.useCompassBarDistanceText    = Settings.useCompassBarDistanceText;
            this.compassBarDistanceTextFormat = Settings.compassBarDistanceTextFormat;

            // indicator settings
            this.showIndicator                        = Settings.showIndicator;
            this.showOffscreenIndicator               = Settings.showOffscreenIndicator;
            this.ignoreIndicatorRadius                = Settings.ignoreIndicatorRadius;
            this.ignoreIndicatorHideDistance          = Settings.ignoreIndicatorHideDistance;
            this.ignoreIndicatorScaling               = Settings.ignoreIndicatorScaling;
            this.ignoreIndicatorFading                = Settings.ignoreIndicatorFading;
            this.useIndicatorDistanceText             = Settings.useIndicatorDistanceText;
            this.showOffscreenIndicatorDistance       = Settings.showOffscreenIndicatorDistance;
            this.indicatorOnscreenDistanceTextFormat  = Settings.indicatorOnscreenDistanceTextFormat;
            this.indicatorOffscreenDistanceTextFormat = Settings.indicatorOffscreenDistanceTextFormat;

            // minimap settings
            this.hideInMinimap          = Settings.hideInMinimap;
            this.ignoreMinimapRadius    = Settings.ignoreMinimapRadius;
            this.rotateWithGameObjectMM = Settings.rotateWithGameObjectMM;
            this.useMinimapHeightSystem = Settings.useMinimapHeightSystem;
        }
Пример #2
0
        public void CopySettings(HUDNavigationElement element)
        {
            if (element == null)
            {
                return;
            }

            // misc
            this.Prefabs = element.Prefabs;

            // radar settings
            this.hideInRadar          = element.hideInRadar;
            this.ignoreRadarRadius    = element.ignoreRadarRadius;
            this.rotateWithGameObject = element.rotateWithGameObject;
            this.useRadarHeightSystem = element.useRadarHeightSystem;

            // compass bar settings
            this.hideInCompassBar             = element.hideInCompassBar;
            this.ignoreCompassBarRadius       = element.ignoreCompassBarRadius;
            this.useCompassBarDistanceText    = element.useCompassBarDistanceText;
            this.compassBarDistanceTextFormat = element.compassBarDistanceTextFormat;

            // indicator settings
            this.showIndicator                        = element.showIndicator;
            this.showOffscreenIndicator               = element.showOffscreenIndicator;
            this.ignoreIndicatorRadius                = element.ignoreIndicatorRadius;
            this.ignoreIndicatorHideDistance          = element.ignoreIndicatorHideDistance;
            this.ignoreIndicatorScaling               = element.ignoreIndicatorScaling;
            this.ignoreIndicatorFading                = element.ignoreIndicatorFading;
            this.useIndicatorDistanceText             = element.useIndicatorDistanceText;
            this.showOffscreenIndicatorDistance       = element.showOffscreenIndicatorDistance;
            this.indicatorOnscreenDistanceTextFormat  = element.indicatorOnscreenDistanceTextFormat;
            this.indicatorOffscreenDistanceTextFormat = element.indicatorOffscreenDistanceTextFormat;

            // minimap settings
            this.hideInMinimap          = element.hideInMinimap;
            this.ignoreMinimapRadius    = element.ignoreMinimapRadius;
            this.rotateWithGameObjectMM = element.rotateWithGameObjectMM;
            this.useMinimapHeightSystem = element.useMinimapHeightSystem;
        }