Esempio n. 1
0
        public static void OpenWindow(VersionInfo info)
        {
            VersionViewer window = GetWindow <VersionViewer>();

            window.titleContent.image = EditorGUIUtility.IconContent("d_ViewToolZoom On").image;
            window.titleContent.text  = "Version Viewer";
            window._versionInfo       = info;
            window._version           = info.PreviousVersions.Count > 0 ? info.PreviousVersions[0] : null;
            window._versionNumber     = window._version != null?window._version.GetFullNumber() : "<None>";

            window.Show();
        }
Esempio n. 2
0
        private void LOGOGUI()
        {
            GUI.color = Color.Lerp(_lastColor, _currentColor, _colorPos);
            GUI.DrawTexture(new Rect(10, 0, 400, 100), _frameworkLogo);
            GUI.color = Color.white;

            GUI.Label(new Rect(80, 100, 100, 20), "Version: " + _versionNumber);
            if (GUI.Button(new Rect(200, 100, 100, 16), "Version History", EditorGlobalTools.Styles.MiniPopup))
            {
                VersionViewer.OpenWindow(_versionInfo);
            }
        }