Ejemplo n.º 1
0
 public CarTimeSliderView(CarPlayer player)
 {
     player_                   = player;
     maxFramesStyle_           = new GUIStyle(EditorStyles.label);
     maxFramesStyle_.alignment = TextAnchor.MiddleRight;
     lastFrameRequest_         = -1;
 }
Ejemplo n.º 2
0
        //-----------------------------------------------------------------------------------
        public static CarPlayerWindow ShowWindow(CarPlayer player)
        {
            if (Instance == null)
            {
                Instance             = (CarPlayerWindow)EditorWindow.GetWindow(typeof(CarPlayerWindow), true, "CaronteFx Player - " + player.GetStatusString(), true);
                Instance.player_     = player;
                Instance.playerView_ = new CarPlayerView(player);
            }
            Instance.minSize = new Vector2(width_, height_);
            Instance.maxSize = new Vector2(width_, height_);
            Instance.status_ = player.CurrentStatus;
            Instance.Focus();

            return(Instance);
        }
Ejemplo n.º 3
0
        public CarPlayerView(CarPlayer player)
        {
            timeSliderView_ = new CarTimeSliderView(player);
            player_         = player;

            maxTimeStyle_           = new GUIStyle(EditorStyles.label);
            maxTimeStyle_.alignment = TextAnchor.MiddleRight;

            buttonStyle_           = new GUIStyle(EditorStyles.miniButton);
            buttonStyle_.onActive  = buttonStyle_.focused;
            buttonStyle_.onNormal  = buttonStyle_.focused;
            buttonStyle_.onFocused = buttonStyle_.focused;
            buttonStyle_.active    = buttonStyle_.focused;

            styleStats1_ = new GUIStyle(EditorStyles.miniLabel);
            styleStats2_ = new GUIStyle(EditorStyles.miniLabel);
        }
Ejemplo n.º 4
0
 public CarSimulationDisplayer(CarEntityManager entityManager, CarPlayer simulationPlayer)
 {
   eManager_ = entityManager;
   simulationPlayer_ = simulationPlayer;
 }