コード例 #1
0
 public ModalDialogsSteps(IWebDriver driver) : base(driver)
 {
     this.driver = driver;
     homepage    = new Homepage(driver);
     alertmenu   = new AlertMenu(driver);
     md          = new ModalDialogs(driver);
 }
コード例 #2
0
ファイル: UIManager.cs プロジェクト: OfficeEscape/Komugi
        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;
                }
            }
        }
コード例 #3
0
 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();
     }
 }