Example #1
0
        public void Update(float deltaTime)
        {
            EventManager.Update(deltaTime);

            if (GUI.DisableHUD)
            {
                return;
            }

            //guiRoot.Update(deltaTime);
            infoButton.Update(deltaTime);

            if (GameMode != null)
            {
                GameMode.Update(deltaTime);
            }
            if (Mission != null)
            {
                Mission.Update(deltaTime);
            }
            if (infoFrame != null)
            {
                infoFrame.Update(deltaTime);

                if (CrewManager != null && CrewManager.CrewCommander != null && CrewManager.CrewCommander.IsOpen)
                {
                    infoFrame = null;
                }
            }
        }
Example #2
0
        public void Update(float deltaTime)
        {
            EventManager.Update(deltaTime);
            GameMode?.Update(deltaTime);
            Mission?.Update(deltaTime);

            UpdateProjSpecific(deltaTime);
        }
Example #3
0
        public void Update(float deltaTime)
        {
            EventManager.Update(deltaTime);

            if (GUI.DisableHUD)
            {
                return;
            }

            if (GameMain.Client != null)
            {
                if (GameMain.Client.HasPermission(Networking.ClientPermissions.Kick) || GameMain.Client.HasPermission(Networking.ClientPermissions.Ban))
                {
                    //ingameInfoButton.Visible = true;
                    ingameInfoButton.Visible = false;
                }
                else
                {
                    ingameInfoButton.Visible = false;
                }
            }

            //if (GameMain.Server == null) ingameInfoButton.Visible = false;

            //guiRoot.Update(deltaTime);
            infoButton.Update(deltaTime);
            ingameInfoButton.Update(deltaTime);


            if (GameMode != null)
            {
                GameMode.Update(deltaTime);
            }
            if (Mission != null)
            {
                Mission.Update(deltaTime);
            }
            if (infoFrame != null)
            {
                infoFrame.Update(deltaTime);

                if (CrewManager != null && CrewManager.CrewCommander != null && CrewManager.CrewCommander.IsOpen)
                {
                    infoFrame = null;
                }
            }
        }