public void OnCheckedChanged(AnotherCheckbox o, EventChecked e)
 {
     if (CheckedChanged != null)
     {
         CheckedChanged(o, e);
     }
 }
示例#2
0
 private void aChBxVariousShowAlerts_CheckedChanged(AnotherCheckbox o, EventChecked e)
 {
     PSettings.PreferenceAll.OverlayAlert.ShowAlert = e.Value;
     LaunchRenderer(typeof(AlertRenderer));
 }
示例#3
0
 private void aChBxVariousAlertSoundNotification_CheckedChanged(AnotherCheckbox o, EventChecked e)
 {
     PSettings.PreferenceAll.OverlayAlert.SoundNotification = e.Value;
 }
示例#4
0
        private void aChBxShowWebContent_CheckedChanged(AnotherCheckbox o, EventChecked e)
        {
            PSettings.PreferenceAll.Global.ApplicationShowWebContent = o.Checked;

            if (o.Checked)
                CheckWebbrowserUrl(_ucDownloadManager.ApplicationChangesUrl);

            else
            {
                wbNews.Visible = false;
                wbNews.Url = null;
            }
        }
示例#5
0
        void aChBxOverlaysTransparentImages_CheckedChanged(AnotherCheckbox o, EventChecked e)
        {
            var parent = HelpFunctions.findParentByName(o, "pnlOverlays");

            if (parent.Name.Contains("Production"))
            {
                PSettings.PreferenceAll.OverlayProduction.UseTransparentImages = o.Checked;
                _lContainer.Find(x => x is ProductionRenderer).ChangeImageResources(o.Checked);
            }

            else if (parent.Name.Contains("Unit"))
            {
                PSettings.PreferenceAll.OverlayUnits.UseTransparentImages = o.Checked;
                _lContainer.Find(x => x is UnitRenderer).ChangeImageResources(o.Checked);
            }

            else
                Messages.Show("Couldn't find parent!");
        }
示例#6
0
        void aChBxOverlaysSplitUnitsBuildings_CheckedChanged(AnotherCheckbox o, EventChecked e)
        {
            var parent = HelpFunctions.findParentByName(o, "pnlOverlays");

            if (parent.Name.Contains("Production"))
                PSettings.PreferenceAll.OverlayProduction.SplitBuildingsAndUnits = o.Checked;

            else if (parent.Name.Contains("Unit"))
                PSettings.PreferenceAll.OverlayUnits.SplitBuildingsAndUnits = o.Checked;

            else
                Messages.Show("Couldn't find parent!");
        }
 public void OnCheckedChanged(AnotherCheckbox o, EventChecked e)
 {
     if (CheckedChanged != null)
         CheckedChanged(o, e);
 }
示例#8
0
 private void chBxVariousShowPersonalClock_CheckedChanged(AnotherCheckbox o, EventChecked e)
 {
     PSettings.PreferenceAll.OverlayPersonalClock.PersonalClock = o.Checked;
     LaunchRenderer(typeof(PersonalClockRenderer));
 }
示例#9
0
 void aChBxOverlaysRemoveSpellcounter_CheckedChanged(AnotherCheckbox o, EventChecked e)
 {
     PSettings.PreferenceAll.OverlayUnits.RemoveSpellCounter = o.Checked;
 }
示例#10
0
 void aChBxOverlaysRemoveProductionstatus_CheckedChanged(AnotherCheckbox o, EventChecked e)
 {
     PSettings.PreferenceAll.OverlayUnits.RemoveProductionLine = o.Checked;
 }
示例#11
0
 void aChBxOverlaysRemoveDestinationLine_CheckedChanged(AnotherCheckbox o, EventChecked e)
 {
     PSettings.PreferenceAll.OverlayMaphack.RemoveDestinationLine = o.Checked;
 }
示例#12
0
        void aChBxOverlaysDrawBackground_CheckedChanged(AnotherCheckbox o, EventChecked e)
        {
            var parent = HelpFunctions.findParentByName(o, "pnlOverlays");

            if (parent.Name.Contains("Resource"))
                PSettings.PreferenceAll.OverlayResources.DrawBackground = o.Checked;

            else if (parent.Name.Contains("Income"))
                PSettings.PreferenceAll.OverlayIncome.DrawBackground = o.Checked;

            else if (parent.Name.Contains("Apm"))
                PSettings.PreferenceAll.OverlayApm.DrawBackground = o.Checked;

            else if (parent.Name.Contains("Army"))
                PSettings.PreferenceAll.OverlayArmy.DrawBackground = o.Checked;

            else if (parent.Name.Contains("Worker"))
                PSettings.PreferenceAll.OverlayWorker.DrawBackground = o.Checked;

            else
                Messages.Show("Couldn't find parent!");
        }
示例#13
0
 void aChBxOverlaysDisplayUpgrades_CheckedChanged(AnotherCheckbox o, EventChecked e)
 {
     PSettings.PreferenceAll.OverlayProduction.ShowUpgrades = o.Checked;
 }
示例#14
0
 void aChBxOverlaysDefensiveStructures_CheckedChanged(AnotherCheckbox o, EventChecked e)
 {
     PSettings.PreferenceAll.OverlayMaphack.ColorDefensiveStructures = o.Checked;
 }
示例#15
0
 private void chBxOnlyDrawInForeground_CheckedChanged(AnotherCheckbox o, EventChecked e)
 {
     PSettings.PreferenceAll.Global.DrawOnlyInForeground = o.Checked;
 }
示例#16
0
 private void chBxVariousPersonalApmAlert_CheckedChanged(AnotherCheckbox o, EventChecked e)
 {
     PSettings.PreferenceAll.OverlayPersonalApm.EnableAlert = o.Checked;
 }
示例#17
0
 void aChBxOverlaysRemoveVisionArea_CheckedChanged(AnotherCheckbox o, EventChecked e)
 {
     PSettings.PreferenceAll.OverlayMaphack.RemoveVisionArea = o.Checked;
 }
示例#18
0
 private void chBxVariousWorkerCoach_CheckedChanged(AnotherCheckbox o, EventChecked e)
 {
     PSettings.PreferenceAll.OverlayWorkerCoach.WorkerCoach = o.Checked;
     LaunchRenderer(typeof(WorkerCoachRenderer));
 }
示例#19
0
        void aChBxOverlaysRemoveYourself_CheckedChanged(AnotherCheckbox o, EventChecked e)
        {
            var parent = HelpFunctions.findParentByName(o, "pnlOverlays");

            if (parent.Name.Contains("Resource"))
                PSettings.PreferenceAll.OverlayResources.RemoveLocalplayer = o.Checked;

            else if (parent.Name.Contains("Income"))
                PSettings.PreferenceAll.OverlayIncome.RemoveLocalplayer = o.Checked;

            else if (parent.Name.Contains("Apm"))
                PSettings.PreferenceAll.OverlayApm.RemoveLocalplayer = o.Checked;

            else if (parent.Name.Contains("Army"))
                PSettings.PreferenceAll.OverlayArmy.RemoveLocalplayer = o.Checked;

            else if (parent.Name.Contains("Maphack"))
                PSettings.PreferenceAll.OverlayMaphack.RemoveLocalplayer = o.Checked;

            else if (parent.Name.Contains("Production"))
                PSettings.PreferenceAll.OverlayProduction.RemoveLocalplayer = o.Checked;

            else if (parent.Name.Contains("Unit"))
                PSettings.PreferenceAll.OverlayUnits.RemoveLocalplayer = o.Checked;

            else
                Messages.Show("Couldn't find parent!");
        }