Beispiel #1
0
        public SharpDXColorControl() : base()
        {
            this.color             = new UI.UIObjects.Color(0, 0, 0, 0);
            this.TextChangedEvent += SharpDXColorControl_TextChangedEvent;
            this.DynamicWidth      = false;
            this.FillParent        = true;

            preview            = new SharpDXButton();
            preview.FillParent = true;
            preview.Text       = "";
            this.AddChildControl(preview);

            SetupChannel(ref this.A, "Alpha-channel", this.color.A);
            SetupChannel(ref this.R, "R-channel", this.color.R);
            SetupChannel(ref this.G, "G-channel", this.color.G);
            SetupChannel(ref this.B, "B-channel", this.color.B);

            this.Color = new UI.UIObjects.Color(1f, 1f, 1f, 1f);
        }
        public SharpDXColorControl()
            : base()
        {
            this.color = new UI.UIObjects.Color(0, 0, 0, 0);
            this.TextChangedEvent += SharpDXColorControl_TextChangedEvent;
            this.DynamicWidth = false;
            this.FillParent = true;

            preview = new SharpDXButton();
            preview.FillParent = true;
            preview.Text = "";
            this.AddChildControl(preview);

            SetupChannel(ref this.A, "Alpha-channel", this.color.A);
            SetupChannel(ref this.R, "R-channel", this.color.R);
            SetupChannel(ref this.G, "G-channel", this.color.G);
            SetupChannel(ref this.B, "B-channel", this.color.B);

            this.Color = new UI.UIObjects.Color(1f, 1f, 1f, 1f);
        }
Beispiel #3
0
        private static void InitializeComponent()
        {
            pnlPanel = new SharpDXPanel();
            pnlPanel.X = 2;
            pnlPanel.Y = 2;

            lblCaption = new SharpDXLabel();
            lblCaption.Text = "SteamMonsterGame";
            lblDescription = new SharpDXLabel();
            lblDescription.Text = "A sample of ExternalUtilsCSharp";

            btnToggleMenu = new SharpDXButton();
            btnToggleMenu.Text = "Toggle configuration-window";
            btnToggleMenu.MouseClickEventUp += btnToggleMenu_MouseClickEventUp;

            wndWindow = new SharpDXWindow();
            wndWindow.Text = "Configuration";
            wndWindow.Width = 400;
            wndWindow.Height = 200;
            wndWindow.X = 500;
            wndWindow.Y = 500;
            wndWindow.Visible = false;

            lblAutomation = new SharpDXLabel();
            lblAutomation.Text = "~ Automation ~";
            lblAutomation.FixedWidth = true;
            lblAutomation.Width = 150;
            lblAutomation.TextAlign = SharpDXLabel.TextAlignment.Center;
            chbAutoClicker = new SharpDXCheckBox();
            chbAutoClicker.Text = "[INS] Auto clicker";
            chbMoveMouse = new SharpDXCheckBox();
            chbMoveMouse.Text = "[DEL] Move mouse";
            rdbUsePost = new SharpDXRadioButton();
            rdbUsePost.Text = "[Use PostMessage]";
            rdbUsePost.Checked = true;
            rdbUseSend = new SharpDXRadioButton();
            rdbUseSend.Text = "[Use SendMessage]";
            rdbUseSend.Checked = false;

            lblVisuals = new SharpDXLabel();
            lblVisuals.Text = "~ Visuals ~";
            lblVisuals.FixedWidth = true;
            lblVisuals.Width = 150;
            lblVisuals.TextAlign = SharpDXLabel.TextAlignment.Center;
            chbVisDrawClicker = new SharpDXCheckBox();
            chbVisDrawClicker.Text = "Draw auto-clicker";
            lblPerformance = new SharpDXLabel();
            lblPerformance.Text = "~ Performance ~";
            lblPerformance.FixedWidth = true;
            lblPerformance.Width = 150;
            lblPerformance.TextAlign = SharpDXLabel.TextAlignment.Center;
            lblFpsLogic = new SharpDXLabel();
            lblFpsLogic.Text = "FPS logic: 0";
            pgbFpsLogic = new SharpDXProgressBar();
            pgbFpsLogic.Maximum = 60;
            lblFpsLogicAverage = new SharpDXLabel();
            lblFpsLogicAverage.Text = "Average FPS: 0 (0 ticks total)";
            lblFpsDraw = new SharpDXLabel();
            lblFpsDraw.Text = "FPS logic: 0";
            pgbFpsDraw = new SharpDXProgressBar();
            pgbFpsDraw.Maximum = 60;
            lblFpsDrawAverage = new SharpDXLabel();
            lblFpsDrawAverage.Text = "Average FPS: 0 (0 ticks total)";

            clkWindow = new ClickerWindow();
            clkWindow.X = 500;
            clkWindow.Y = 500;
            clkWindow.Width = 500;
            clkWindow.Height = 500;
        }
 private static void InitToggleButton(ref SharpDXButton control, string text, SharpDXPanel tag)
 {
     control = new SharpDXButton();
     control.Text = text;
     control.Tag = tag;
     control.MouseClickEventUp += button_MouseClickEventUp;
 }