Пример #1
0
        private static bool Prefix(MenuManager.BriefingPageType type, UIElement __instance)
        {
            if (type != MenuManager.BriefingPageType.Briefing ||
                GameplayManager.Level.Mission.FileName != "VeryClassicMission")
            {
                return(true);
            }
            VeryClassic.Update();

            var c = Color.white; // HSBColor.ConvertToColor(0f, 0f, 0.75f);

            /*
             * Vector2 pos;
             * pos.y = 100f;
             * pos.x = -620f;
             * string text = "hello";
             * __instance.DrawStringSmall(text, pos, 0.9f, StringOffset.LEFT, c, 1f, 1240f);
             */

            //UIManager.SetOverlayAntiAlias(false);
            UIManager.PauseMainDrawing();
            UIManager.StartDrawing(UIManager.url[1], true, 750f);
            UIManager.DrawTileFull(new Vector2(0, 0), 400f, 300f, c, 1f); // 360 270
            UIManager.ResumeMainDrawing();
            return(false);
        }
Пример #2
0
 private static bool Prefix(MenuManager.BriefingPageType type)
 {
     if (type != MenuManager.BriefingPageType.Briefing ||
         GameplayManager.Level.Mission.FileName != "VeryClassicMission")
     {
         return(true);
     }
     if (MenuManager.m_menu_sub_state == MenuSubState.INIT)
     {
         MenuManager.m_briefing_page_num = 0;
         MenuManager.m_briefing_text     = new [] { "VeryClassic" };
         var scene = (GameObject)Resources.Load("Cutscenes/cutscene_black");
         MenuManager.m_cutscene_go = UnityEngine.Object.Instantiate <GameObject>(scene, Vector3.up * 50f, Quaternion.identity);
         //var post = Camera.main.gameObject.GetComponent<UnityEngine.PostProcessing.PostProcessingBehaviour>();
         //if (post)
         //    post.enabled = false;
         UIManager.ShowCinematicBars(false, false);
         UIManager.SetOverlayAntiAlias(false);
         UIManager.CreateUIElement(UIManager.SCREEN_CENTER, 7000, UIElementType.BRIEFING);
         VeryClassic.Init(MenuManager.m_cutscene_go);
         //UIManager.url[0].SetTexture(VeryClassic.m_main_texture, true);
         UIManager.SetTexture(VeryClassic.m_main_texture);
         GameManager.m_audio.PlayMusic("", 0.4f);
         MenuManager.m_menu_sub_state = MenuSubState.ACTIVE;
     }
     if (VeryClassic.IsDone)
     {
         VeryClassic.Done();
     }
     return(false);
 }