Esempio n. 1
0
    public IEnumerator CloseDecryptor()
    {
        console.Activate();

        //Initialize Lerp
        float t     = 0;
        float start = Time.time;

        Vector2 oldMin = decryptionWindow.GetComponent <RectTransform>().anchorMin;
        Vector2 oldMax = decryptionWindow.GetComponent <RectTransform>().anchorMax;

        Color full = decryptionWindow.GetComponent <Image>().color;

        full = new Color(full.r, full.g, full.b, 255);
        Color clear = new Color(full.r, full.g, full.b, 0);

        while (t < 1)
        {
            t = (Time.time - start) / decryptWindowAnimDuration;

            decryptionWindow.GetComponent <RectTransform>().anchorMin = Vector2.Lerp(oldMin, new Vector2(0.15F, 0.05F), t);
            decryptionWindow.GetComponent <RectTransform>().anchorMax = Vector2.Lerp(oldMax, new Vector2(0.15F, 0.05F), t);

            decryptionWindow.GetComponent <Image>().color = Vector4.Lerp(full, clear, t);

            yield return(null);
        }
    }
Esempio n. 2
0
    IEnumerator LaunchFakeOS()
    {
        //Initialize Lerp
        float t     = 0;
        float start = Time.time;

        login_Panel.SetActive(false);
        loginAnimLogo.SetActive(true);
        float duration = (1.0F + Random.Range(1F, 3F));

        yield return(new WaitForSeconds(duration));

        loginAnimLogo.SetActive(false);


        access_Panel.SetActive(true);

        yield return(new WaitForSeconds(1.5F));

        access_Panel.SetActive(false);

        //Initialize Lerp
        t     = 0;
        start = Time.time;
        Color full = loginMaster_Object.GetComponent <Image>().color;
        Color fade = new Color(full.r, full.g, full.b, 0);

        osMaster_Object.SetActive(true);

        //Backfround fade Animation:
        while (t < 1)
        {
            t = (Time.time - start) / 1;

            loginMaster_Object.GetComponent <Image>().color = Vector4.Lerp(full, fade, t);

            yield return(null);
        }

        loginMaster_Object.SetActive(false);

        console.Activate();

        DialogueShortcut(1);
    }
Esempio n. 3
0
        public void ShowConsole()
        {
            if (Console == null || Console.IsDisposed)
            {
                GetConsole();
                Console.Show(MockKernel.Get().Window.GetDockPanel(), WeifenLuo.WinFormsUI.Docking.DockState.DockBottom);
            }

            Console.Activate();
        }