コード例 #1
0
 public static MyGuiScreenIntroVideo CreateBackgroundScreen()
 {
     var result = new MyGuiScreenIntroVideo(new string[] { "Videos\\Background01_720p.wmv", "Videos\\Background02_720p.wmv", "Videos\\MinerWarsIntro_720p.wmv", "Videos\\MinerWarsLaunchTrailer.wmv" });
     result.m_volume = 0;
     result.m_colorMultiplier = new Vector4(0.5f, 0.5f, 0.5f, 1);
     return result;
 }
コード例 #2
0
        public static MyGuiScreenIntroVideo CreateIntroScreen(Action onVideoFinished)
        {
            var result = new MyGuiScreenIntroVideo(new string[] { "Videos\\MinerWarsIntro_720p.wmv" });

            result.m_volume = MyConfig.MusicVolume;
            result.m_loop   = false;
            AddCloseEvent(onVideoFinished, result);
            result.m_subtitles.Add(new Subtitle(11000, 4000, MyTextsWrapperEnum.Intro01));  // In 2070, Project Genesis was launched.
            result.m_subtitles.Add(new Subtitle(15500, 4500, MyTextsWrapperEnum.Intro02));  // An experimental project aiming to harness the energy of the sun.
            result.m_subtitles.Add(new Subtitle(30500, 4000, MyTextsWrapperEnum.Intro03));  // However, the experiment resulted in a temporary quantum change
            result.m_subtitles.Add(new Subtitle(34500, 5400, MyTextsWrapperEnum.Intro04));  // within gravitational laws and subatomic particle rotations.
            result.m_subtitles.Add(new Subtitle(41800, 6000, MyTextsWrapperEnum.Intro05));  // The gravitational quantum collapse tore all the larger objects + 1
            result.m_subtitles.Add(new Subtitle(48600, 6700, MyTextsWrapperEnum.Intro06));  // Planets, moons and even larger asteroids and comets + 1
            result.m_subtitles.Add(new Subtitle(52000, 8000, MyTextsWrapperEnum.Intro07));  // Creating new asteroid belts, marking their former planet's orbits.
            result.m_subtitles.Add(new Subtitle(60750, 4000, MyTextsWrapperEnum.Intro08));  // Together with the rest of the planets and moons,
            result.m_subtitles.Add(new Subtitle(65600, 4000, MyTextsWrapperEnum.Intro09));  // Billions of people died together along with our planet Earth.
            result.m_subtitles.Add(new Subtitle(69800, 5500, MyTextsWrapperEnum.Intro10));  // Concurrent massive solar storms killed additional + 1
            result.m_subtitles.Add(new Subtitle(76400, 5500, MyTextsWrapperEnum.Intro11));  // The Euro-American Confederation is held responsible for the celestial accident,
            result.m_subtitles.Add(new Subtitle(81400, 3500, MyTextsWrapperEnum.Intro12));  // especially by its major opposition China.
            result.m_subtitles.Add(new Subtitle(86800, 3500, MyTextsWrapperEnum.Intro13));  // 2081 – eleven years after the Solar Event
            result.m_subtitles.Add(new Subtitle(91300, 5800, MyTextsWrapperEnum.Intro14));  // Here we are. According to the triangulation, + 1
            result.m_subtitles.Add(new Subtitle(103500, 7700, MyTextsWrapperEnum.Intro15)); // So this is the source of the signal. I must admit I wasn’t + 1
            result.m_subtitles.Add(new Subtitle(111500, 1800, MyTextsWrapperEnum.Intro16)); // Oh my God!
            result.m_subtitles.Add(new Subtitle(114000, 4800, MyTextsWrapperEnum.Intro17)); // This is the moment I’ve waited for my entire life.
            result.m_subtitles.Add(new Subtitle(119000, 2500, MyTextsWrapperEnum.Intro18)); // Any idea what it is?
            result.m_subtitles.Add(new Subtitle(125000, 3000, MyTextsWrapperEnum.Intro19)); // Three weeks earlier...
            return(result);
        }
コード例 #3
0
        public static MyGuiScreenIntroVideo CreateBackgroundScreen()
        {
            var result = new MyGuiScreenIntroVideo(new string[] { "Videos\\Background01_720p.wmv", "Videos\\Background02_720p.wmv", "Videos\\MinerWarsIntro_720p.wmv", "Videos\\MinerWarsLaunchTrailer.wmv" });

            result.m_volume          = 0;
            result.m_colorMultiplier = new Vector4(0.5f, 0.5f, 0.5f, 1);
            return(result);
        }
コード例 #4
0
 public static MyGuiScreenIntroVideo CreateIntroScreen(Action onVideoFinished)
 {
     var result = new MyGuiScreenIntroVideo(new string[] { "Videos\\MinerWarsIntro_720p.wmv" });
     result.m_volume = MyConfig.MusicVolume;
     result.m_loop = false;
     AddCloseEvent(onVideoFinished, result);
     result.m_subtitles.Add(new Subtitle(11000, 4000, MyTextsWrapperEnum.Intro01)); // In 2070, Project Genesis was launched.
     result.m_subtitles.Add(new Subtitle(15500, 4500, MyTextsWrapperEnum.Intro02)); // An experimental project aiming to harness the energy of the sun.
     result.m_subtitles.Add(new Subtitle(30500, 4000, MyTextsWrapperEnum.Intro03)); // However, the experiment resulted in a temporary quantum change
     result.m_subtitles.Add(new Subtitle(34500, 5400, MyTextsWrapperEnum.Intro04)); // within gravitational laws and subatomic particle rotations.
     result.m_subtitles.Add(new Subtitle(41800, 6000, MyTextsWrapperEnum.Intro05)); // The gravitational quantum collapse tore all the larger objects + 1
     result.m_subtitles.Add(new Subtitle(48600, 6700, MyTextsWrapperEnum.Intro06)); // Planets, moons and even larger asteroids and comets + 1
     result.m_subtitles.Add(new Subtitle(52000, 8000, MyTextsWrapperEnum.Intro07)); // Creating new asteroid belts, marking their former planet's orbits.
     result.m_subtitles.Add(new Subtitle(60750, 4000, MyTextsWrapperEnum.Intro08)); // Together with the rest of the planets and moons,
     result.m_subtitles.Add(new Subtitle(65600, 4000, MyTextsWrapperEnum.Intro09)); // Billions of people died together along with our planet Earth.
     result.m_subtitles.Add(new Subtitle(69800, 5500, MyTextsWrapperEnum.Intro10)); // Concurrent massive solar storms killed additional + 1
     result.m_subtitles.Add(new Subtitle(76400, 5500, MyTextsWrapperEnum.Intro11)); // The Euro-American Confederation is held responsible for the celestial accident, 
     result.m_subtitles.Add(new Subtitle(81400, 3500, MyTextsWrapperEnum.Intro12)); // especially by its major opposition China.
     result.m_subtitles.Add(new Subtitle(86800, 3500, MyTextsWrapperEnum.Intro13)); // 2081 – eleven years after the Solar Event
     result.m_subtitles.Add(new Subtitle(91300, 5800, MyTextsWrapperEnum.Intro14)); // Here we are. According to the triangulation, + 1
     result.m_subtitles.Add(new Subtitle(103500, 7700, MyTextsWrapperEnum.Intro15)); // So this is the source of the signal. I must admit I wasn’t + 1
     result.m_subtitles.Add(new Subtitle(111500, 1800, MyTextsWrapperEnum.Intro16)); // Oh my God!
     result.m_subtitles.Add(new Subtitle(114000, 4800, MyTextsWrapperEnum.Intro17)); // This is the moment I’ve waited for my entire life.
     result.m_subtitles.Add(new Subtitle(119000, 2500, MyTextsWrapperEnum.Intro18)); // Any idea what it is?
     result.m_subtitles.Add(new Subtitle(125000, 3000, MyTextsWrapperEnum.Intro19)); // Three weeks earlier...
     return result;
 }
コード例 #5
0
 private static void AddCloseEvent(Action onVideoFinished, MyGuiScreenIntroVideo result)
 {
     result.Closed += (screen) => onVideoFinished();
 }
コード例 #6
0
 private static void AddCloseEvent(Action onVideoFinished, MyGuiScreenIntroVideo result)
 {
     result.Closed += (screen) => onVideoFinished();
 }