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); } }
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(); }