Ejemplo n.º 1
0
    public static void SimpleWindowTest(int open)
    {
        WindowTest checkWindows = new WindowTest();

        // Start the window lifts
        checkWindows.Description  = open == 1 ? "Start opening the window. Check if the window is really opened." : "Start closing the window. Check if the window is really closed.";
        checkWindows.Wait         = 500;
        checkWindows.KeyDown      = open == 1 ? 1 : 0;
        checkWindows.KeyUp        = open == 1 ? 0 : 1;
        checkWindows.WindowMotion = open == 1 ? 2 : 1;
        checkWindows.Execute();

        // Stop the window lifts
        checkWindows.Description  = open == 1 ? "Stop opening the window. Check if the window is halted very soon." : "Stop closing the window. Check if the window is halted very soon.";
        checkWindows.Wait         = 100;
        checkWindows.KeyDown      = 0;
        checkWindows.KeyUp        = 0;
        checkWindows.WindowMotion = 0;
        checkWindows.Execute();
    }
Ejemplo n.º 2
0
 protected static void CreateWindow()
 {
     _wind         = EditorWindow.GetWindow <WindowTest>();
     _wind.minSize = Vector2.one * 500;
 }