public static void InitWithContent(LevelProfile profile) { FirstWindow window = EditorWindow.GetWindow(typeof(FirstWindow)) as FirstWindow; window.currentProfile = profile; window.Show(); }
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(); }
public void backToMainWindow() { FirstWindow mainWindow = new FirstWindow(); mainWindow.Show(); CloseAction(); //System.Windows.Application.Current.Shutdown(); }
public override void OnInspectorGUI() { base.OnInspectorGUI(); if (GUILayout.Button("Open Editor")) { FirstWindow.InitWithContent(target as LevelProfile); } }
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); }
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); }
public SecondWindow(FirstWindow owner) { _owner = owner; }
public MainWindow() { InitializeComponent(); FirstWindow.Navigate(new Welcome()); }
public static void Init() { FirstWindow window = EditorWindow.GetWindow(typeof(FirstWindow)) as FirstWindow; window.Show(); }