예제 #1
0
        public static FlowGameViewRenderWindow Show(WindowBase previewScreen)
        {
            var window = FlowGameViewRenderWindow.CreateInstance <FlowGameViewRenderWindow>();

            window.previewScreen = previewScreen;
            window.ShowPopup();

            window.SetRenderSize(Screen.width, Screen.height, Screen.dpi);

            return(window);
        }
예제 #2
0
        public void ShowView(WindowBase previewScreen, System.Action onClose)
        {
            this.previewScreen = previewScreen;
            this.onClose       = onClose;

            this.ShowPopup();
            this.hided = false;

            this.minSize  = new Vector2(this.minSize.x, 1f);
            this.progress = 1f;

            /*this.gameView = this.GetGameView();
             * this.gameView.ShowPopup();
             * this.gameView.Focus();*/

            this.gameView = FlowGameViewRenderWindow.Show(this.previewScreen);

            this.Focus();

            //this.selectedId = -1;
            //this.directoriesFoldOut = new List<bool>();

            this.gameView.ShowNotification(new GUIContent("Double-Click on any item in left list to toggle between Portrait/Landscape orientation"));
        }
		public void ShowView(WindowBase previewScreen, System.Action onClose) {

			this.previewScreen = previewScreen;
			this.onClose = onClose;

			this.ShowPopup();
			this.hided = false;
			
			this.minSize = new Vector2(this.minSize.x, 1f);
			this.progress = 1f;

			/*this.gameView = this.GetGameView();
			this.gameView.ShowPopup();
			this.gameView.Focus();*/

			this.gameView = FlowGameViewRenderWindow.Show(this.previewScreen);

			this.Focus();

			//this.selectedId = -1;
			//this.directoriesFoldOut = new List<bool>();

			this.gameView.ShowNotification(new GUIContent("Double-Click on any item in left list to toggle between Portrait/Landscape orientation"));

		}