Ejemplo n.º 1
0
 public override void Update(TSO.Common.rendering.framework.model.UpdateState state)
 {
     base.Update(state);
     if (SelectedAvatar != null)
     {
         UpdateMotives();
     }
 }
Ejemplo n.º 2
0
 public void Update(TSO.Common.rendering.framework.model.UpdateState state)
 {
     foreach (var scene in Scenes)
     {
         scene.Update(state);
     }
     foreach (var scene in External)
     {
         scene.Update(state);
     }
 }
Ejemplo n.º 3
0
        public override void Update(TSO.Common.rendering.framework.model.UpdateState state)
        {
            base.Update(state);
            if (m_BgGrow < 1)
            {
                m_BgGrow       += 1.0 / 30.0;
                HeadCamera.Zoom = (float)m_BgGrow;

                m_Bg.SetSize((float)m_BgGrow * 200, (float)m_BgGrow * 200);
                m_Bg.X = (float)m_BgGrow * (-100);
                m_Bg.Y = (float)m_BgGrow * (-100);
            }
            RotateHeadCam(GlobalPoint(new Vector2(state.MouseState.X, state.MouseState.Y)));
        }
Ejemplo n.º 4
0
        public override void Update(TSO.Common.rendering.framework.model.UpdateState state)
        {
            int min  = 0;
            int hour = 0;

            if (Game.InLot) //if ingame, use time from ingame clock (should be very close to server time anyways, if we set the game pacing up right...)
            {
                min  = Game.vm.Context.Clock.Minutes;
                hour = Game.vm.Context.Clock.Hours;
            }

            string suffix = (hour > 11) ? "pm" : "am";

            hour %= 12;
            if (hour == 0)
            {
                hour = 12;
            }

            TimeText.Caption = hour.ToString() + ":" + ZeroPad(min.ToString(), 2) + " " + suffix;

            base.Update(state);
        }
Ejemplo n.º 5
0
 public override void Update(TSO.Common.rendering.framework.model.UpdateState state)
 {
 }
 public override void Update(TSO.Common.rendering.framework.model.UpdateState state)
 {
     base.Update(state);
     vm.Update(state.Time);
 }