Beispiel #1
0
        public virtual void AddToGUIUpdateList()
        {
            if (GameMain.GraphicsWidth != screenResolution.X || GameMain.GraphicsHeight != screenResolution.Y || prevUIScale != GUI.Scale)
            {
                CreateObjectiveFrame();
            }

            if (objectiveFrame != null && activeObjectives.Count > 0)
            {
                objectiveFrame.AddToGUIUpdateList(order: -1);
            }

            if (infoBox != null)
            {
                infoBox.AddToGUIUpdateList(order: 100);
            }
            if (videoPlayer != null)
            {
                videoPlayer.AddToGUIUpdateList(order: 100);
            }
        }
Beispiel #2
0
        public override void AddToGUIUpdateList()
        {
            if (videoPlayer != null)
            {
                videoPlayer.AddToGUIUpdateList(order: 100);
            }

            if (GUI.DisableHUD)
            {
                return;
            }
            if (GameMain.GraphicsWidth != screenResolution.X || GameMain.GraphicsHeight != screenResolution.Y || prevUIScale != GUI.Scale)
            {
                CreateObjectiveFrame();
            }

            if (objectiveFrame != null && activeObjectives.Count > 0)
            {
                objectiveFrame.AddToGUIUpdateList(order: -1);
            }
            base.AddToGUIUpdateList();
        }