Beispiel #1
0
 public GHAnimateInfo(GHAnimateInfo animateInfo)
 {
     _DelayTime   = animateInfo._DelayTime;
     _AnimateTime = animateInfo._AnimateTime;
     _Slide       = animateInfo._Slide;
     _Fade        = animateInfo._Fade;
     _Alpha       = _Fade ? (byte)0 : (byte)255;
 }
Beispiel #2
0
        /// <summary>
        /// アイテムリストの読み込み時のイベント
        /// </summary>
        private void ItemList_Load(object sender, EventArgs e)
        {
            animateInfo = new GHAnimateInfo(GHManager.Settings.Animate.ItemList_DelayTime, GHManager.Settings.Animate.ItemList_AnimateTime, GHManager.Settings.Animate.ItemList_Slide, GHManager.Settings.Animate.ItemList_Fade);

            // アイテムリストの位置・サイズを設定
            Size     = new Size(GHManager.Settings.Style.ItemList.Width, GHManager.Settings.Style.ItemList.Height);
            Location = new Point(-GHManager.Launcher.Width, 0);
        }
Beispiel #3
0
        /// <summary>
        /// ランチャーの読み込み時のイベント
        /// </summary>
        private void Launcher_Load(object sender, EventArgs e)
        {
            // タスクトレイに追加
            AddNotifyIcon();

            // マイセットアイコンの初期化&追加
            MysetIcon = new GHIconEx(SkinImage.Myset_Open_Icon, SkinImage.Myset_Icon, FormType.Launcher);
            MysetIcon.control.MouseClick += (s, a) => {
                if (a.Button == MouseButtons.Left)
                {
                    if (GHManager.MysetList.FormVisible)
                    {
                        GHManager.MysetList.MouseActive = false;
                        GHManager.MysetList.MysetList_Hide();
                    }
                    else
                    {
                        GHManager.MysetList.MouseActive = true;
                        GHManager.MysetList.MysetList_Show();
                    }
                }
            };
            Controls.Add(MysetIcon.control);

            // フック開始
            if (!Dll.StartHook())
            {
                Application.Exit();
            }

            // ランチャーの位置・サイズを設定
            Size = new Size(GHManager.Settings.Style.Launcher.Width, GHManager.Settings.Style.Launcher.Height);
            SetOffset(GHManager.Settings.Launcher.Offset);

            animateInfo = new GHAnimateInfo(GHManager.Settings.Animate.Launcher_DelayTime, GHManager.Settings.Animate.Launcher_AnimateTime, GHManager.Settings.Animate.Launcher_Slide, GHManager.Settings.Animate.Launcher_Fade);

            GHManager.RegistHotKey(Handle);
            // タイマー開始
            DrawTimer.Start();
            UpdateTimer.Start();
        }
Beispiel #4
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="hideAnimateTime"></param>
 public void SetHideAnimateTime(ref GHAnimateInfo srcAnimateInfo)
 {
     animateInfo = new GHAnimateInfo(srcAnimateInfo);
 }
Beispiel #5
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="hideAnimateTime"></param>
 public void GetHideAnimateTime(ref GHAnimateInfo destAnimateInfo)
 {
     destAnimateInfo = new GHAnimateInfo(animateInfo);
 }