예제 #1
0
        public static void OpenWindow(IAdminLoginWindow parent)
        {
            AdminLoginWindow window = GetWindow <AdminLoginWindow>();

            window._parent           = parent;
            window.titleContent.text = "Admin Login";
            window.minSize           = new Vector2(250, 50);
            window.maxSize           = new Vector2(250, 50);
            window.Show();
        }
예제 #2
0
        public static void OpenWindow(IAdminLoginWindow parent, HTFAction <string> checkAction)
        {
            AdminLoginWindow window = GetWindow <AdminLoginWindow>();

            window._parent           = parent;
            window._checkAction      = checkAction;
            window.titleContent.text = "Admin Login";
            window.position          = new Rect(parent.Cast <HTFEditorWindow>().position.center - new Vector2(125, 0), new Vector2(250, 50));
            window.minSize           = new Vector2(250, 50);
            window.maxSize           = new Vector2(250, 50);
            window.Show();
        }
예제 #3
0
        protected virtual void OnEnable()
        {
            _adminLoginWindow = this as IAdminLoginWindow;
            _localizeWindow   = this as ILocalizeWindow;

            if (_localizeWindow != null)
            {
                GenerateWords();
                _languagePrefsKey = "HT.Framework.HTFEditorWindow.Language." + GetType().FullName;
                CurrentLanguage   = (Language)EditorPrefs.GetInt(_languagePrefsKey, 1);
            }

            if (!string.IsNullOrEmpty(HelpUrl))
            {
                _helpGC         = new GUIContent();
                _helpGC.image   = EditorGUIUtility.IconContent("_Help").image;
                _helpGC.tooltip = "Help";
            }
        }