コード例 #1
0
        public TaskHUD()
        {
            this.TransparencyKey = StyleManager.TransparencyKey;
            ProcessManager.TibiaVisibilityChanged += (o, e) => UpdateVisibility(e);

            this.ShowInTaskbar   = false;
            this.FormBorderStyle = FormBorderStyle.None;

            actualHUD = new ActualTaskHUD(this);
            actualHUD.ShowInTaskbar   = false;
            actualHUD.FormBorderStyle = FormBorderStyle.None;
            actualHUD.Size            = this.Size;
            actualHUD.StartPosition   = FormStartPosition.Manual;
            actualHUD.Location        = this.PointToScreen(new Point(0, 0));

            double opacity = SettingsManager.getSettingDouble(GetHUD() + "Opacity");

            opacity      = Math.Min(1, Math.Max(0, opacity));
            this.Opacity = opacity;

            this.FormClosed += CloseActualHUD;
        }
コード例 #2
0
ファイル: TaskHUD.cs プロジェクト: Mytherin/Tibialyzer
        public TaskHUD()
        {
            this.TransparencyKey = StyleManager.TransparencyKey;
            ProcessManager.RegisterTibiaVisibilityChanged(this, (o, e) => UpdateVisibility(e));

            this.ShowInTaskbar = false;
            this.FormBorderStyle = FormBorderStyle.None;

            actualHUD = new ActualTaskHUD(this);
            actualHUD.ShowInTaskbar = false;
            actualHUD.FormBorderStyle = FormBorderStyle.None;
            actualHUD.Size = this.Size;
            actualHUD.StartPosition = FormStartPosition.Manual;
            actualHUD.Location = this.PointToScreen(new Point(0, 0));

            double opacity = SettingsManager.getSettingDouble(GetHUD() + "Opacity");
            opacity = Math.Min(1, Math.Max(0, opacity));
            this.Opacity = opacity;

            this.FormClosed += CloseActualHUD;
        }