Exemplo n.º 1
0
        public static void ShowWindow(StepEditorWindow stepEditorWindow, StepContentAsset contentAsset)
        {
            StepRegenIDWindow window = GetWindow <StepRegenIDWindow>();

            window.titleContent.text = "Regen Step ID";
            window._stepEditorWindow = stepEditorWindow;
            window._contentAsset     = contentAsset;
            window.minSize           = new Vector2(200, 110);
            window.maxSize           = new Vector2(200, 110);
            window.position          = new Rect(stepEditorWindow.position.x + 50, stepEditorWindow.position.y + 50, 200, 110);
            window.Show();
        }
Exemplo n.º 2
0
        public static void ShowWindow(StepEditorWindow stepEditorWindow, StepContentAsset contentAsset, Language language)
        {
            StepRegenIDWindow window = GetWindow <StepRegenIDWindow>();

            window.CurrentLanguage    = language;
            window.titleContent.image = EditorGUIUtility.IconContent("d_editicon.sml").image;
            window.titleContent.text  = "Regen Step ID";
            window._stepEditorWindow  = stepEditorWindow;
            window._contentAsset      = contentAsset;
            window.minSize            = new Vector2(200, 110);
            window.maxSize            = new Vector2(200, 110);
            window.position           = new Rect(stepEditorWindow.position.x + 50, stepEditorWindow.position.y + 50, 200, 110);
            window.Show();
        }