Exemple #1
0
 public static void ShowWindow(StepEditorWindow stepEditorWindow, StepContentAsset contentAsset, StepContent content)
 {
     StepParameterWindow window = GetWindow<StepParameterWindow>();
     window.titleContent.text = "Parameters";
     window._stepEditorWindow = stepEditorWindow;
     window._contentAsset = contentAsset;
     window._content = content;
     window.minSize = new Vector2(300, 300);
     window.maxSize = new Vector2(300, 900);
     window.Show();
 }
Exemple #2
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();
        }
        public static void ShowWindow(StepEditorWindow stepEditorWindow, StepContentAsset contentAsset, StepContent content)
        {
            StepParameterWindow window = GetWindow <StepParameterWindow>();

            window.titleContent.image = EditorGUIUtility.IconContent("d_editicon.sml").image;
            window.titleContent.text  = "Parameters";
            window._stepEditorWindow  = stepEditorWindow;
            window._contentAsset      = contentAsset;
            window._content           = content;
            window.minSize            = new Vector2(300, 300);
            window.maxSize            = new Vector2(300, 900);
            window.Show();
        }
Exemple #4
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();
        }
Exemple #5
0
 protected override void OnEnable()
 {
     _target = target as StepContentAsset;
 }
Exemple #6
0
 private void OnEnable()
 {
     _target = target as StepContentAsset;
 }