Beispiel #1
0
        //private TextBox _textBox;
        private void CreateControls()
        {
            // backColor: Color.DodgerBlue
            _topToolsPanel = zForm.CreatePanel(dockStyle: DockStyle.Top, height: 35);
            _topToolsPanel.SuspendLayout();

            //_editPanel = zForm.CreatePanel(dockStyle: DockStyle.Top, backColor: Color.DeepPink, height: 300);
            _editPanel = zForm.CreatePanel(dockStyle: DockStyle.Top, height: 300);
            _editPanel.SuspendLayout();
            //_textBox = zForm.CreateTextBox(dockStyle: DockStyle.Fill, multiline: true);
            //_editPanel.Controls.Add(_textBox);

            //_bottomPanel = zForm.CreatePanel(DockStyle.Fill, Color.Brown);
            //_bottomPanel.SuspendLayout();
            //_resultTab = CreateResultTab();
            // Color.Transparent
            _resultTab = PanelTabControl.Create(DockStyle.Fill);
            _resultTab.SuspendLayout();

            //_statusPanel = zForm.CreatePanel(DockStyle.Bottom, Color.Chocolate, height: 20);
            //_statusPanel.SuspendLayout();
            //_bottomToolsPanel = CreateBottomToolsPanel();
            _bottomToolStrip = new ToolStrip();
            _bottomToolStrip.SuspendLayout();
            //backColor: Color.Chocolate
            _bottomToolsPanel = zForm.CreatePanel(dockStyle: DockStyle.Bottom, height: 20);
            _bottomToolsPanel.SuspendLayout();
            _bottomToolsPanel.Controls.Add(_bottomToolStrip);

            MenuStrip menu = new MenuStrip();

            menu.SuspendLayout();
            this.MainMenuStrip = menu;
        }
Beispiel #2
0
        private void tabChanged(object s, EventArgs e)
        {
            PanelTabControl ptc = (PanelTabControl)s;

            if (ptc.IsNull())
            {
                return;
            }
            PanelTab selected = ptc.SelectedTab;

            if (selected.IsNull())
            {
                return;
            }
            if (selected == ChangelogTab)
            {
                this.ChangeSize(468, 482);
                lblPoweredBy.Location = new Point(148, 422);
                lblJustinOOO.Location = new Point(214, 422);
            }
            else if (selected == LoginTab)
            {
                this.ChangeSize(468, 337);
                lblPoweredBy.Location = new Point(148, 278);
                lblJustinOOO.Location = new Point(214, 278);
            }
            lblPoweredBy.BringToFront();
            lblJustinOOO.BringToFront();
            CenterToScreen();
        }
Beispiel #3
0
 public PanelTabControl(PanelTabType type, PanelTabControl parent = null, bool hoverCheck = true, bool drawBorders = true)
 {
     this.type        = type;
     this.parent      = parent;
     this.drawBorders = drawBorders;
     if (hoverCheck)
     {
         hoverChecker          = new Timer();
         hoverChecker.Tick    += (s, e) => UpdateHovers();
         hoverChecker.Interval = 10;
         hoverChecker.Start();
     }
 }
Beispiel #4
0
        public Login()
        {
            InitializeComponent();
            this.LockSize();
            Text = Text.Replace("[0.0]", Program.currentVersion);
            lblCurrentVersion.Text  = "Current Version: " + Program.currentVersion;
            lblNewestVersion.Text   = "Newest Version: " + Program.newestVersion;
            lblRegisteredUsers.Text = "Registered Users: " + Networking.GetData("registered_user_count");
            txtChangelog.Text       = Networking.GetData("changelog");
            CenterLabel(lblCurrentVersion); CenterLabel(lblNewestVersion); CenterLabel(lblRegisteredUsers);
            txtUsername.ApplyPlaceholder("username", Color.DarkGray, Color.FromArgb(255, 51, 153, 255));
            txtPassword.ApplyPlaceholder("password", Color.DarkGray, Color.FromArgb(255, 51, 153, 255), "*");
            PanelTabControl pTab = new PanelTabControl(PanelTabType.ButtonBased, drawBorders: false);

            LoginTab     = new PanelTab(tabLogin, lblLogin, pnlLogin);
            ChangelogTab = new PanelTab(tabChangelog, lblChangelog, pnlChangelog);
            pTab.AddTab(LoginTab);
            pTab.AddTab(ChangelogTab);
            pTab.TabChanged += (s, e) => tabChanged(s, e);
            pTab.SelectTab(0);
        }
Beispiel #5
0
        public Main()
        {
            InitializeComponent();
            this.LockSize();
            txtLog.MouseDown += (s, e) => FormMethod.HideCaret(txtLog.Handle);
            Text              = Text.Replace("[0.0]", Program.currentVersion);
            // Custom.NET vertical tab control using default components.
            // I might've been able to do this better...
            pTabMain = new PanelTabControl(PanelTabType.VerticalAttatched);
            pTabMain.AddTab(new PanelTab(tabValues, lblValues, pnlValues));
            pTabMain.AddTab(new PanelTab(tabAimbot, lblAimbot, pnlAimbot));
            pTabMain.AddTab(new PanelTab(tabTriggerbot, lblTriggerbot, pnlTriggerbot));
            pTabMain.AddTab(new PanelTab(tabVisuals, lblVisuals, pnlVisuals));
            pTabMain.AddTab(new PanelTab(tabMisc, lblMisc, pnlMisc));
            pTabMain.AddTab(new PanelTab(tabCompile, lblCompile, pnlCompile));
            pTabMain.SelectTab(0);
            pTabValues = new PanelTabControl(PanelTabType.VerticalAttatched);
            pTabValues.AddTab(new PanelTab(tabOffsets, lblOffsets, pnlOffsets));
            pTabValues.AddTab(new PanelTab(tabBones, lblBones, pnlBones));
            pTabValues.AddTab(new PanelTab(tabValShare, lblValShare, pnlValShare));
            pTabValues.TabChanged += (s, e) => updateOffsetInformation();
            pTabValues.SelectTab(0);
            pTabMisc = new PanelTabControl(PanelTabType.ButtonBased, pTabMain);
            pTabMisc.AddTab(new PanelTab(tabFeatures, lblFeatures, pnlFeatures));
            pTabMisc.AddTab(new PanelTab(tabConfig, lblConfig, pnlConfig));
            pTabMisc.AddTab(new PanelTab(tabAccount, lblAccount, pnlAccount));
            pTabMisc.SelectTab(0);
            cmb_config_source.SelectedIndex       = 0;
            cmb_scrape_offsets.SelectedIndex      = 0;
            cmb_scrape_bones.SelectedIndex        = 0;
            cmb_aimbot_bone.SelectedIndex         = 0;
            cmb_obfuscation_preset.SelectedIndex  = 0;
            cmb_aimbot_type.SelectedIndex         = 0;
            cmb_triggerbot_type.SelectedIndex     = 0;
            cmb_trigger_magnet_bone.SelectedIndex = 0;
            txt_build_path.Text = "dynago.exe";
            OffsetList.Initialize();
            OffsetList.RefreshOffsets(lbOffsets);
            BoneList.Initialize();
            BoneList.RefreshBones(lbBones);
            KeyManagement.InitializeKeys();
            CheckForIllegalCrossThreadCalls = false;
            if (Program.currentUser.ToLower() != "justin")
            {
                cb_obfuscation_enabled.Required();
            }
            lblCustomizeTriggerMagnetic.OnHover(Color.White);
            lblBackToTrigger.OnHover(Color.White);

            // account stuff
            lblLoggedIn.Text            = Program.currentUser;
            lblAdvertisements.Text      = "Removed";
            lblAdvertisements.ForeColor = Color.Green;
            lblLoggedIn.Left            = lblPreLoggedIn.Right;
            lblAdvertisements.Left      = lblPreAdvertisements.Right;
            lblRemoveAds.OnHover(Color.FromArgb(51, 153, 255));
            lblRemoveAds.Left    = lblAdvertisements.Right;
            lblRemoveAds.Visible = false;

            // weapon config stuff (yikes?)
            general_settings = new WeaponSettings(this);
            pistol_settings  = new WeaponSettings(this);
            sniper_settings  = new WeaponSettings(this);
        }