Exemplo n.º 1
0
    /// <summary>
    ///
    /// </summary>
    public static void Create()
    {
        vp_AboutBox msgBox = (vp_AboutBox)EditorWindow.GetWindow(typeof(vp_AboutBox), true);

        msgBox.titleContent.text = "About UFPS";

        msgBox.minSize  = new Vector2(m_DialogSize.x, m_DialogSize.y);
        msgBox.maxSize  = new Vector2(m_DialogSize.x + 1, m_DialogSize.y + 1);
        msgBox.position = new Rect(
            (Screen.currentResolution.width / 2) - (m_DialogSize.x / 2),
            (Screen.currentResolution.height / 2) - (m_DialogSize.y / 2),
            m_DialogSize.x,
            m_DialogSize.y);
        msgBox.Show();
    }
Exemplo n.º 2
0
    /// <summary>
    ///
    /// </summary>
    public static void Create()
    {
        m_UFPSLogo   = (Texture2D)Resources.Load("Icons/UFPS239x86", typeof(Texture2D));
        m_OpsiveLogo = (Texture2D)Resources.Load("Icons/Opsive99x62", typeof(Texture2D));

        vp_AboutBox msgBox = (vp_AboutBox)EditorWindow.GetWindow(typeof(vp_AboutBox), true);

        msgBox.titleContent.text = "About UFPS";

        msgBox.minSize  = new Vector2(m_DialogSize.x, m_DialogSize.y);
        msgBox.maxSize  = new Vector2(m_DialogSize.x + 1, m_DialogSize.y + 1);
        msgBox.position = new Rect(
            (Screen.currentResolution.width / 2) - (m_DialogSize.x / 2),
            (Screen.currentResolution.height / 2) - (m_DialogSize.y / 2),
            m_DialogSize.x,
            m_DialogSize.y);
        msgBox.Show();
    }