public PreviewGame(TrinityEngine.Game.GameInfo game)
        {
            InitializeComponent();
            IGameInfo = game;

            Size = new Size(800, 600);

            View      = new Graphics.GLView();
            View.Dock = DockStyle.Fill;
            Controls.Add(View);

            pUI = new TrinityEngine.Resonance.UI();

            pUI.Root = new TrinityEngine.Resonance.Forms.VideoForm().Set(0, 0, Size.Width, Size.Height) as TrinityEngine.Resonance.Forms.VideoForm;
            // pUI.Root.SetImage(new TrinityEngine.Texture.Texture2D("Corona/Img/Icon/BigShotIcon.png", TrinityEngine.Texture.LoadMethod.Single, true));

            var vidf = pUI.Root as TrinityEngine.Resonance.Forms.VideoForm;

            vidf.SetVideo(IGameInfo.LevelInfo.IntroMoviePath);
        }
Beispiel #2
0
        public TrinityEdit()
        {
            InitializeComponent();

            CConsole = new ConsoleOutput();
            CConsole.Show(this.dockPanel1, WeifenLuo.WinFormsUI.Docking.DockState.DockBottom);
            CConsole.DebugMsg("Vivid3D initializing.");
            FThis = this;

            Begin3DMapMode();

            //Hide();

            // FSplash = new Controls.Splash.VividSplash();
            //  FSplash.Show();

            CConsole.DebugMsg("Vivid3D Initialized.");
            IGameInfo           = new TrinityEngine.Game.GameInfo();
            IGameInfo.LevelInfo = new TrinityEngine.Game.LevelInfo();
            IGameInfo.Levels.Add(IGameInfo.LevelInfo);
            LoadActiveLevel();
            LoadEditorState();
        }