Example #1
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);
        }
Example #2
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);
        }