Exemplo n.º 1
0
    public static void InitWithContent(LevelProfile profile)
    {
        FirstWindow window = EditorWindow.GetWindow(typeof(FirstWindow)) as FirstWindow;

        window.currentProfile = profile;
        window.Show();
    }
Exemplo n.º 2
0
    System.Collections.IEnumerator ClearCo()
    {
        while (EmueraThread.instance.Running())
        {
            yield return(null);
        }

        GenericUtils.ShowIsInProcess(true);

        var console = MinorShift.Emuera.GlobalStatic.Console;

        console.ClearDisplay();
        console.Dispose();

        EmueraThread.instance.End();
        EmueraContent.instance.Clear();

        MinorShift.Emuera.Content.AppContents.UnloadContents();
        ConfigData.Instance.Clear();
        SpriteManager.ForceClear();

        System.GC.Collect();

        var async = Resources.UnloadUnusedAssets();

        while (!async.isDone)
        {
            yield return(null);
        }

        var ow = EmueraContent.instance.option_window;

        ow.ShowGameButton(false);
        FirstWindow.Show();
    }
Exemplo n.º 3
0
        public void backToMainWindow()
        {
            FirstWindow mainWindow = new FirstWindow();

            mainWindow.Show();
            CloseAction();
            //System.Windows.Application.Current.Shutdown();
        }
Exemplo n.º 4
0
    public override void OnInspectorGUI()
    {
        base.OnInspectorGUI();

        if (GUILayout.Button("Open Editor"))
        {
            FirstWindow.InitWithContent(target as LevelProfile);
        }
    }
Exemplo n.º 5
0
        public void NotepadTests()
        {
            //var ChangeWindow = ApplicationSession.SwitchTo().Window("windowName");

            // ApplicationSession.FindElementByClassName("Scintilla").SendKeys("This is an automated text......");
            //System.Threading.Thread.Sleep(3000);
            FirstWindow fw = new FirstWindow();

            fw.WriteSomethingInNotepad();
            // Assert.IsNotNull(ApplicationSession);
        }
Exemplo n.º 6
0
        void InitializeControls()
        {
            var firstWindow = new FirstWindow(this);

            firstWindow.Show();

            var secondWindow = new SecondWindow(this);

            secondWindow.Show();

            var thirdWindow = new ThirdWindow(this);

            thirdWindow.Show();

            var startEffectOverlay = new Overlay(this)
            {
                Opacity = 1
            };

            startEffectOverlay.Show();

            var startEffectOverlay_opacityAnimation = new FloatLerpAnimation
            {
                Action   = (current) => { startEffectOverlay.Opacity = current; },
                From     = 1,
                To       = 0,
                Duration = TimeSpan.FromSeconds(0.5d),
                Enabled  = true
            };

            startEffectOverlay_opacityAnimation.Completed += (s, e) =>
            {
                startEffectOverlay.Close();
                thirdWindow.Activate();
            };
            startEffectOverlay.Animations.Add(startEffectOverlay_opacityAnimation);
        }
Exemplo n.º 7
0
 public SecondWindow(FirstWindow owner)
 {
     _owner = owner;
 }
Exemplo n.º 8
0
        public MainWindow()
        {
            InitializeComponent();

            FirstWindow.Navigate(new Welcome());
        }
Exemplo n.º 9
0
        void InitializeControls()
        {
            var firstWindow = new FirstWindow(this);
            firstWindow.Show();

            var secondWindow = new SecondWindow(this);
            secondWindow.Show();

            var thirdWindow = new ThirdWindow(this);
            thirdWindow.Show();

            var startEffectOverlay = new Overlay(this)
            {
                Opacity = 1
            };
            startEffectOverlay.Show();

            var startEffectOverlay_opacityAnimation = new FloatLerpAnimation
            {
                Action = (current) => { startEffectOverlay.Opacity = current; },
                From = 1,
                To = 0,
                Duration = TimeSpan.FromSeconds(0.5d),
                Enabled = true
            };
            startEffectOverlay_opacityAnimation.Completed += (s, e) =>
            {
                startEffectOverlay.Close();
                thirdWindow.Activate();
            };
            startEffectOverlay.Animations.Add(startEffectOverlay_opacityAnimation);
        }
Exemplo n.º 10
0
    public static void Init()
    {
        FirstWindow window = EditorWindow.GetWindow(typeof(FirstWindow)) as FirstWindow;

        window.Show();
    }