예제 #1
0
        public PortalsTab(BotManagerView parent)
        {
            Parent                 = parent;
            PrimaryKeyword         = Parent.View != null ? (HudTextBox)Parent.View["PrimaryKeyword"] : new HudTextBox();
            PrimaryKeyword.Change += PrimaryKeyword_Change;

            SecondaryKeyword         = Parent.View != null ? (HudTextBox)Parent.View["SecondaryKeyword"] : new HudTextBox();
            SecondaryKeyword.Change += SecondaryKeyword_Change;

            PrimaryDescription         = Parent.View != null ? (HudTextBox)Parent.View["PrimaryDescription"] : new HudTextBox();
            PrimaryDescription.Change += PrimaryDescription_Change;

            SecondaryDescription         = Parent.View != null ? (HudTextBox)Parent.View["SecondaryDescription"] : new HudTextBox();
            SecondaryDescription.Change += SecondaryDescription_Change;

            PrimaryHeading         = Parent.View != null ? (HudTextBox)Parent.View["PrimaryHeading"] : new HudTextBox();
            PrimaryHeading.Change += PrimaryHeading_Change;

            SecondaryHeading         = Parent.View != null ? (HudTextBox)Parent.View["SecondaryHeading"] : new HudTextBox();
            SecondaryHeading.Change += SecondaryHeading_Change;

            PrimaryLevel         = Parent.View != null ? (HudTextBox)Parent.View["PrimaryLevel"] : new HudTextBox();
            PrimaryLevel.Change += PrimaryLevel_Change;

            SecondaryLevel         = Parent.View != null ? (HudTextBox)Parent.View["SecondaryLevel"] : new HudTextBox();
            SecondaryLevel.Change += SecondaryLevel_Change;

            CharacterChoice         = Parent.View != null ? (HudCombo)Parent.View["CharacterChoice"] : new HudCombo(new ControlGroup());
            CharacterChoice.Change += CharacterChoice_Change;

            PopulateCharacterChoice();
        }
예제 #2
0
        public AdvertisementsTab(BotManagerView parent)
        {
            Parent = parent;

            NewAdvertisement = Parent.View != null ? (HudTextBox)Parent.View["NewAdvertisementText"] : new HudTextBox();

            AddAdvertisement      = Parent.View != null ? (HudButton)Parent.View["AddAdvertisement"] : new HudButton();
            AddAdvertisement.Hit += AddAdvertisement_Hit;

            Advertisements        = Parent.View != null ? (HudList)Parent.View["AdvertisementList"] : new HudList();
            Advertisements.Click += Advertisements_Click;

            GetAdvertisements();
        }
예제 #3
0
        public GemsTab(BotManagerView parent)
        {
            Parent = parent;

            Gems        = Parent.View != null ? (HudList)Parent.View["GemList"] : new HudList();
            Gems.Click += Gems_Click;

            GemKeyword = Parent.View != null ? (HudTextBox)Parent.View["GemKeyword"] : new HudTextBox();

            GemHeading         = Parent.View != null ? (HudTextBox)Parent.View["GemHeading"] : new HudTextBox();
            GemHeading.Change += GemHeading_Change;

            AddGem      = Parent.View != null ? (HudButton)Parent.View["AddGem"] : new HudButton();
            AddGem.Hit += AddGem_Hit;

            GetGems();
        }
예제 #4
0
        public EquipmentTab(BotManagerView parent)
        {
            Parent = parent;

            IdleEquipmentList        = Parent.View != null ? (HudList)Parent.View["IdleEquipmentList"] : new HudList();
            IdleEquipmentList.Click += IdleEquipmentList_Click;

            IdleAddEquipment      = Parent.View != null ? (HudButton)Parent.View["IdleAddEquipment"] : new HudButton();
            IdleAddEquipment.Hit += IdleAddEquipment_Hit;

            BuffEquipmentList        = Parent.View != null ? (HudList)Parent.View["BuffEquipmentList"] : new HudList();
            BuffEquipmentList.Click += BuffEquipmentList_Click;

            BuffAddEquipment      = Parent.View != null ? (HudButton)Parent.View["BuffAddEquipment"] : new HudButton();
            BuffAddEquipment.Hit += BuffAddEquipment_Hit;

            LoadSuits();
        }
예제 #5
0
        public InventoryTab(BotManagerView parent)
        {
            Parent = parent;

            CharacterChoice         = Parent.View != null ? (HudCombo)Parent.View["CharacterInventoryChoice"] : new HudCombo(new ControlGroup());
            CharacterChoice.Change += CharacterChoice_Change;

            InventoryList = Parent.View != null ? (HudList)Parent.View["InventoryList"] : new HudList();

            LeadScarabThreshold         = Parent.View != null ? (HudTextBox)Parent.View["LeadScarabThreshold"] : new HudTextBox();
            LeadScarabThreshold.Change += LeadScarabThreshold_Change;

            IronScarabThreshold         = Parent.View != null ? (HudTextBox)Parent.View["IronScarabThreshold"] : new HudTextBox();
            IronScarabThreshold.Change += IronScarabThreshold_Change;

            CopperScarabThreshold         = Parent.View != null ? (HudTextBox)Parent.View["CopperScarabThreshold"] : new HudTextBox();
            CopperScarabThreshold.Change += CopperScarabThreshold_Change;

            SilverScarabThreshold         = Parent.View != null ? (HudTextBox)Parent.View["SilverScarabThreshold"] : new HudTextBox();
            SilverScarabThreshold.Change += SilverScarabThreshold_Change;

            GoldScarabThreshold         = Parent.View != null ? (HudTextBox)Parent.View["GoldScarabThreshold"] : new HudTextBox();
            GoldScarabThreshold.Change += GoldScarabThreshold_Change;

            PyrealScarabThreshold         = Parent.View != null ? (HudTextBox)Parent.View["PyrealScarabThreshold"] : new HudTextBox();
            PyrealScarabThreshold.Change += PyrealScarabThreshold_Change;

            PlatinumScarabThreshold         = Parent.View != null ? (HudTextBox)Parent.View["PlatinumScarabThreshold"] : new HudTextBox();
            PlatinumScarabThreshold.Change += PlatinumScarabThreshold_Change;

            ManaScarabThreshold         = Parent.View != null ? (HudTextBox)Parent.View["ManaScarabThreshold"] : new HudTextBox();
            ManaScarabThreshold.Change += ManaScarabThreshold_Change;

            ComponentThreshold         = Parent.View != null ? (HudTextBox)Parent.View["ComponentThreshold"] : new HudTextBox();
            ComponentThreshold.Change += ComponentThreshold_Change;

            SetupInventoryColumns();
            PopulateCharacterChoice();
            LoadSettings();
        }
예제 #6
0
        public ConfigTab(BotManagerView botManagerView)
        {
            Parent = botManagerView;

            BotEnabled         = Parent.View != null ? (HudCheckBox)Parent.View["Bot"] : new HudCheckBox();
            BotEnabled.Change += BotEnabled_Change;

            ClearLocation      = Parent.View != null ? (HudButton)Parent.View["ClearLocation"] : new HudButton();
            ClearLocation.Hit += ClearLocation_Hit;

            LocationSetpoint = Parent.View != null ? (HudStaticText)Parent.View["LocationSetpoint"] : new HudStaticText();
            LocationSetpoint.TextAlignment = WriteTextFormats.Center;

            SetLocation      = Parent.View != null ? (HudButton)Parent.View["SetLocation"] : new HudButton();
            SetLocation.Hit += SetLocation_Hit;

            RespondToGeneralChat         = Parent.View != null ? (HudCheckBox)Parent.View["GeneralChatResponse"] : new HudCheckBox();
            RespondToGeneralChat.Change += RespondToGeneralChat_Change;

            RespondToAllegianceChat         = Parent.View != null ? (HudCheckBox)Parent.View["AllegianceResponse"] : new HudCheckBox();
            RespondToAllegianceChat.Change += RespondToAllegianceChat_Change;

            AdsEnabled         = Parent.View != null ? (HudCheckBox)Parent.View["AdsEnabled"] : new HudCheckBox();
            AdsEnabled.Change += AdsEnabled_Change;

            BotPositioning         = Parent.View != null ? (HudCheckBox)Parent.View["BotPositioning"] : new HudCheckBox();
            BotPositioning.Change += BotPositioning_Change;

            AdInterval         = Parent.View != null ? (HudTextBox)Parent.View["AdInterval"] : new HudTextBox();
            AdInterval.Change += AdInterval_Change;

            SetHeading      = Parent.View != null ? (HudButton)Parent.View["SetHeading"] : new HudButton();
            SetHeading.Hit += SetHeading_Hit;

            DefaultHeading         = Parent.View != null ? (HudTextBox)Parent.View["DefaultHeading"] : new HudTextBox();
            DefaultHeading.Change += DefaultHeading_Change;

            Verbosity          = Parent.View != null ? (HudHSlider)Parent.View["Verbosity"] : new HudHSlider();
            Verbosity.Changed += Verbosity_Changed;

            ManaThreshold          = Parent.View != null ? (HudHSlider)Parent.View["ManaThresh"] : new HudHSlider();
            ManaThreshold.Changed += ManaThreshhold_Changed;

            StaminaThreshold          = Parent.View != null ? (HudHSlider)Parent.View["StamThresh"] : new HudHSlider();
            StaminaThreshold.Changed += StaminaThreshhold_Changed;

            ManaThresholdText = Parent.View != null ? (HudStaticText)Parent.View["ManaThreshText"] : new HudStaticText();
            StamThresholdText = Parent.View != null ? (HudStaticText)Parent.View["StamThreshText"] : new HudStaticText();

            BuffingCharacterChoice         = Parent.View != null ? (HudCombo)Parent.View["BuffingCharacterChoice"] : new HudCombo(new ControlGroup());
            BuffingCharacterChoice.Change += BuffingCharacterChoice_Change;

            StayBuffed         = Parent.View != null ? (HudCheckBox)Parent.View["StayBuffed"] : new HudCheckBox();
            StayBuffed.Change += StayBuffed_Change;

            Level7Self         = Parent.View != null ? (HudCheckBox)Parent.View["Level7Self"] : new HudCheckBox();
            Level7Self.Change += Level7Self_Change;

            SkillOverride         = Parent.View != null ? (HudTextBox)Parent.View["SkillOverride"] : new HudTextBox();
            SkillOverride.Change += SkillOverride_Change;

            Version      = Parent.View != null ? (HudStaticText)Parent.View["Version"] : new HudStaticText();
            Version.Text = $"V{Parent.Machine.Utility.Version}";

            PopulateCharacterChoice();
            LoadSettings();
        }