Ejemplo n.º 1
0
 public CRTimeSliderView(CRPlayer player)
 {
     player_                   = player;
     maxFramesStyle_           = new GUIStyle(EditorStyles.label);
     maxFramesStyle_.alignment = TextAnchor.MiddleRight;
     lastFrameRequest_         = -1;
 }
        public CRPlayerView(CRPlayer player)
        {
            timeSliderView_ = new CRTimeSliderView(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;
        }
Ejemplo n.º 3
0
        //-----------------------------------------------------------------------------------
        public static CRPlayerWindow ShowWindow(CRPlayer player)
        {
            if (Instance == null)
            {
                Instance             = (CRPlayerWindow)EditorWindow.GetWindow(typeof(CRPlayerWindow), true, "CaronteFx Player - " + player.GetStatusString(), true);
                Instance.player_     = player;
                Instance.playerView_ = new CRPlayerView(player);
            }
            Instance.minSize = new Vector2(width_, height_);
            Instance.maxSize = new Vector2(width_, height_);
            Instance.status_ = player.CurrentStatus;
            Instance.Focus();

            return(Instance);
        }