public ModalDialogsSteps(IWebDriver driver) : base(driver) { this.driver = driver; homepage = new Homepage(driver); alertmenu = new AlertMenu(driver); md = new ModalDialogs(driver); }
override protected void Awake() { // 子クラスでAwakeを使う場合は // 必ず親クラスのAwakeをCallして // 複数のGameObjectにアタッチされないようにします. base.Awake(); mainMenu = gameObject.AddComponent <MainMenu>(); alert = gameObject.AddComponent <AlertMenu>(); dialog = gameObject.AddComponent <DialogMenu>(); itemBar.MenuButtonHandle = () => { mainMenu.OpenMainMenu(); }; // iPhoneX対応 CanvasScaler canvasScaler = GetComponent <CanvasScaler>(); if (canvasScaler != null) { float currentAspect = (float)Screen.width / Screen.height; // 1 Height 0 Width // 縦長端末の場合 if (currentAspect < STANDARD_ASPECT) { canvasScaler.matchWidthOrHeight = 0.0f; itemBar.SetItemBarOffset(); NewAspect = true; } else //横長or標準 { canvasScaler.matchWidthOrHeight = 1.0f; NewAspect = false; } } }
private void AlertGridView_MouseDown(object sender, MouseEventArgs e) { // && AlertGridView.Rows.Count()!=0 if (e.Button == MouseButtons.Right && AlertGridView.Rows.Count() != 0) { AlertMenu.Show(Cursor.Position.X, Cursor.Position.Y); // ChangeResText(); } }