Пример #1
0
        public DaggerfallHUD(IUserInterfaceManager uiManager)
            : base(uiManager)
        {
            interactionModeIcon         = new HUDInteractionModeIcon(crosshair);
            parentPanel.BackgroundColor = Color.clear;
            ShowPopupText           = true;
            ShowMidScreenText       = true;
            ShowCrosshair           = DaggerfallUnity.Settings.Crosshair;
            ShowVitals              = true;
            ShowCompass             = true;
            ShowInteractionModeIcon = DaggerfallUnity.Settings.InteractionModeIcon.ToLower() != "none";
            ShowEscortingFaces      = true;
            ShowLocalQuestPlaces    = true;
            ShowActiveSpells        = true;
            ShowArrowCount          = DaggerfallUnity.Settings.EnableArrowCounter;

            // Get references
            //player = GameObject.FindGameObjectWithTag("Player");
            //playerEntity = player.GetComponent<DaggerfallEntityBehaviour>();

            ParentPanel.Components.Add(largeHUD);
            ParentPanel.Components.Add(crosshair);
            ParentPanel.Components.Add(vitals);
            ParentPanel.Components.Add(compass);
            ParentPanel.Components.Add(interactionModeIcon);
            ParentPanel.Components.Add(flickerController);
        }
        public DaggerfallHUD(IUserInterfaceManager uiManager)
            : base(uiManager)
        {
            interactionModeIcon         = new HUDInteractionModeIcon(crosshair);
            parentPanel.BackgroundColor = Color.clear;
            ShowPopupText           = true;
            ShowMidScreenText       = true;
            ShowCrosshair           = DaggerfallUnity.Settings.Crosshair;
            ShowVitals              = true;
            ShowBreathBar           = true;
            ShowCompass             = true;
            ShowInteractionModeIcon = DaggerfallUnity.Settings.InteractionModeIcon.ToLower() != "none";
            ShowEscortingFaces      = true;
            ShowLocalQuestPlaces    = true;
            ShowActiveSpells        = true;
            ShowArrowCount          = DaggerfallUnity.Settings.EnableArrowCounter;

            ParentPanel.Components.Add(largeHUD);
            ParentPanel.Components.Add(crosshair);
            ParentPanel.Components.Add(vitals);
            ParentPanel.Components.Add(breathBar);
            ParentPanel.Components.Add(compass);
            ParentPanel.Components.Add(interactionModeIcon);
            ParentPanel.Components.Add(flickerController);
        }