diff --git a/PoGo.NecroBot.ConfigUI/App.config b/PoGo.NecroBot.ConfigUI/App.config
deleted file mode 100644
index 88fa402..0000000
--- a/PoGo.NecroBot.ConfigUI/App.config
+++ /dev/null
@@ -1,6 +0,0 @@
-<?xml version="1.0" encoding="utf-8" ?>
-<configuration>
- <startup>
- <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.2" />
- </startup>
-</configuration>
\ No newline at end of file
diff --git a/PoGo.NecroBot.ConfigUI/App.xaml b/PoGo.NecroBot.ConfigUI/App.xaml
deleted file mode 100644
index 52b1db5..0000000
--- a/PoGo.NecroBot.ConfigUI/App.xaml
+++ /dev/null
@@ -1,9 +0,0 @@
-<Application x:Class="PoGo.NecroBot.ConfigUI.App"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:local="clr-namespace:PoGo.NecroBot.ConfigUI"
- StartupUri="MainWindow.xaml">
- <Application.Resources>
-
- </Application.Resources>
-</Application>
diff --git a/PoGo.NecroBot.ConfigUI/App.xaml.cs b/PoGo.NecroBot.ConfigUI/App.xaml.cs
deleted file mode 100644
index 7c02129..0000000
--- a/PoGo.NecroBot.ConfigUI/App.xaml.cs
+++ /dev/null
@@ -1,17 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Configuration;
-using System.Data;
-using System.Linq;
-using System.Threading.Tasks;
-using System.Windows;
-
-namespace PoGo.NecroBot.ConfigUI
-{
- /// <summary>
- /// Interaction logic for App.xaml
- /// </summary>
- public partial class App : Application
- {
- }
-}
diff --git a/PoGo.NecroBot.ConfigUI/Icon.ico b/PoGo.NecroBot.ConfigUI/Icon.ico
deleted file mode 100644
index b46ebd8..0000000
Binary files a/PoGo.NecroBot.ConfigUI/Icon.ico and /dev/null differ
diff --git a/PoGo.NecroBot.ConfigUI/MainWindow.xaml b/PoGo.NecroBot.ConfigUI/MainWindow.xaml
deleted file mode 100644
index 495e9aa..0000000
--- a/PoGo.NecroBot.ConfigUI/MainWindow.xaml
+++ /dev/null
@@ -1,454 +0,0 @@
-<Window x:Class="PoGo.NecroBot.ConfigUI.MainWindow"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008" mc:Ignorable="d"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:local="clr-namespace:PoGo.NecroBot.ConfigUI"
- xmlns:util="clr-namespace:PoGo.NecroBot.ConfigUI.Utils"
- xmlns:rapi="clr-namespace:PokemonGo.RocketAPI.Enums;assembly=Pokemon.Go.Rocket.API"
- Title="{DynamicResource AppTitle}" Height="600" Width="800">
- <Window.Resources>
- <ResourceDictionary>
- <ResourceDictionary.MergedDictionaries>
- <ResourceDictionary Source="Resources\Styles.xaml" />
- <ResourceDictionary Source="Resources\en-us.xaml" />
- </ResourceDictionary.MergedDictionaries>
- </ResourceDictionary>
- </Window.Resources>
-
- <DockPanel>
-
- <UniformGrid DockPanel.Dock="Bottom" Rows="1" Columns="3">
- <Button Margin="15" Padding="0,8" Click="DefaultsButton_Click">Defaults</Button>
- <Button Margin="15" Padding="0,8" Click="ReloadButton_Click">Reload</Button>
- <Button Margin="15" Padding="0,8" Click="SaveButton_Click">Save</Button>
- </UniformGrid>
-
- <TabControl>
-
- <TabItem Header="Basic">
- <ScrollViewer HorizontalScrollBarVisibility="Hidden" VerticalScrollBarVisibility="Visible">
- <StackPanel>
- <StackPanel Orientation="Horizontal" Style="{StaticResource LineItemPanel}">
- <CheckBox Content="Auto Update on Launch" IsChecked="{Binding Settings.AutoUpdate}" ToolTip="If checked, this will auto update NecroBot whenever it is started if there is an update available" />
- </StackPanel>
- <StackPanel Orientation="Horizontal" Style="{StaticResource LineItemPanel}">
- <CheckBox Content="Transfer Configs on Update" IsChecked="{Binding Settings.TransferConfigAndAuthOnUpdate}" ToolTip="QED" />
- </StackPanel>
- <StackPanel Orientation="Horizontal" Style="{StaticResource LineItemPanel}">
- <CheckBox Content="Disable Human Walking" IsChecked="{Binding Settings.DisableHumanWalking}" ToolTip="Emulate realistic human walking from stop to stop - WARNING: Disabling this could result in getting flagged or banned!" />
- </StackPanel>
- <StackPanel Orientation="Horizontal" Style="{StaticResource LineItemPanel}">
- <Label Style="{StaticResource LineItemLabel}" Content="Default Latitude" ToolTip="The default Latitude to use, if no LastPos.ini file is found will use these by default" />
- <TextBox Style="{StaticResource LineItemTextBoxMd}" Text="{Binding Settings.Latitude}" />
- </StackPanel>
- <StackPanel Orientation="Horizontal" Style="{StaticResource LineItemPanel}">
- <Label Style="{StaticResource LineItemLabel}" Content="Default Longitude" ToolTip="The default Longitude to use" />
- <TextBox Style="{StaticResource LineItemTextBoxMd}" Text="{Binding Settings.Longitude}" />
- </StackPanel>
- <StackPanel Orientation="Horizontal" Style="{StaticResource LineItemPanel}">
- <Label Style="{StaticResource LineItemLabel}" Content="Max Travel Distance in Meters" ToolTip="The maximum distance in meters the bot will travel from the Lat/Lon being used. 1000 meters = 1 kilometer, 1600 meters = 1 mile" />
- <TextBox Style="{StaticResource LineItemTextBoxSm}" Text="{Binding Settings.MaxTravelDistanceInMeters}" />
- </StackPanel>
- <StackPanel Orientation="Horizontal" Style="{StaticResource LineItemPanel}">
- <Label Style="{StaticResource LineItemLabel}" Content="Walking Speed (in KPH)" ToolTip="How fast your character will move from point to point. For best safety we recommend keeping this at 15 or below. Decimals are allowed." />
- <TextBox Style="{StaticResource LineItemTextBoxSm}" Text="{Binding Settings.WalkingSpeedInKilometerPerHour}" />
- </StackPanel>
- <StackPanel Orientation="Horizontal" Style="{StaticResource LineItemPanel}">
- <Label Style="{StaticResource LineItemLabel}" Content="Max Spawn Location Offset" ToolTip="QED. Integer value." />
- <TextBox Style="{StaticResource LineItemTextBoxSm}" Text="{Binding Settings.MaxSpawnLocationOffset}" />
- </StackPanel>
- <StackPanel Orientation="Horizontal" Style="{StaticResource LineItemPanel}">
- <Label Style="{StaticResource LineItemLabel}" Content="Delay Between Player Actions (ms)" ToolTip="How long to pause between player actions in milliseconds (1000 ms = 1 second). Integer value." />
- <TextBox Style="{StaticResource LineItemTextBoxMd}" Text="{Binding Settings.DelayBetweenPlayerActions}" />
- </StackPanel>
- <StackPanel Orientation="Horizontal" Style="{StaticResource LineItemPanel}">
- <Label Style="{StaticResource LineItemLabel}" Content="Delay Between Pokemon Catch (ms)" ToolTip="How long to pause between Pokemon captures in milliseconds (1000 ms = 1 second). Integer value." />
- <TextBox Style="{StaticResource LineItemTextBoxMd}" Text="{Binding Settings.DelayBetweenPokemonCatch}" />
- </StackPanel>
- </StackPanel>
- </ScrollViewer>
- </TabItem>
-
- <TabItem Header="Auth">
- <ScrollViewer HorizontalScrollBarVisibility="Hidden" VerticalScrollBarVisibility="Visible">
- <StackPanel>
- <StackPanel Orientation="Horizontal" Style="{StaticResource LineItemPanel}">
- <Label Style="{StaticResource LineItemLabel}" Content="Auth Type" ToolTip="Google and Pokemon Trainer's Club (ptc) are the currently supported login methods." />
- <ComboBox ItemsSource="{Binding Source={x:Type rapi:AuthType}, Converter={StaticResource EnumToArrayConv}}" SelectedItem="{Binding Settings.AuthType}" SelectionChanged="AuthType_Changed" />
- <!-- ItemsSource="{Binding Source={util:EnumValues{x:Type rapi:AuthType}}}" -->
- </StackPanel>
- <StackPanel Visibility="{Binding IsGoogleAuthShowing, Converter={StaticResource VisConv}}">
- <StackPanel Orientation="Horizontal" Style="{StaticResource LineItemPanel}">
- <Label Style="{StaticResource LineItemLabel}" Content="Google Username" ToolTip="The Google account username to use for login." />
- <TextBox Style="{StaticResource LineItemTextBoxMd}" Text="{Binding Settings.GoogleUsername}" />
- </StackPanel>
- <StackPanel Orientation="Horizontal" Style="{StaticResource LineItemPanel}">
- <Label Style="{StaticResource LineItemLabel}" Content="Google Password" ToolTip="The Google account password to use for login." />
- <TextBox Style="{StaticResource LineItemTextBoxMd}" Text="{Binding Settings.GooglePassword}" />
- </StackPanel>
- </StackPanel>
- <StackPanel Visibility="{Binding IsGoogleAuthShowing, Converter={StaticResource VisRevConv}}">
- <StackPanel Orientation="Horizontal" Style="{StaticResource LineItemPanel}">
- <Label Style="{StaticResource LineItemLabel}" Content="PTC Username" ToolTip="The Pokemon Trainer's Club account username to use for login." />
- <TextBox Style="{StaticResource LineItemTextBoxMd}" Text="{Binding Settings.PtcUsername}" />
- </StackPanel>
- <StackPanel Orientation="Horizontal" Style="{StaticResource LineItemPanel}">
- <Label Style="{StaticResource LineItemLabel}" Content="PTC Password" ToolTip="The Pokemon Trainer's Club account password to use for login." />
- <TextBox Style="{StaticResource LineItemTextBoxMd}" Text="{Binding Settings.PtcPassword}" />
- </StackPanel>
- </StackPanel>
- <StackPanel Orientation="Horizontal" Style="{StaticResource LineItemPanel}">
- <CheckBox Content="Enable Proxy System" IsChecked="{Binding Settings.UseProxy}" ToolTip="QED." />
- </StackPanel>
- <StackPanel Visibility="{Binding Settings.UseProxy, Converter={StaticResource VisConv}}">
- <StackPanel Orientation="Horizontal" Style="{StaticResource LineItemPanel}">
- <Label Style="{StaticResource LineItemLabel}" Content="Proxy Host" ToolTip="QED." />
- <TextBox Style="{StaticResource LineItemTextBoxMd}" Text="{Binding Settings.UseProxyHost}" />
- </StackPanel>
- <StackPanel Orientation="Horizontal" Style="{StaticResource LineItemPanel}">
- <Label Style="{StaticResource LineItemLabel}" Content="Proxy Port" ToolTip="QED." />
- <TextBox Style="{StaticResource LineItemTextBoxMd}" Text="{Binding Settings.UseProxyPort}" />
- </StackPanel>
- <StackPanel Orientation="Horizontal" Style="{StaticResource LineItemPanel}">
- <CheckBox Content="Enable Proxy Authentication" IsChecked="{Binding Settings.UseProxyAuthentication}" ToolTip="If your proxy requires authentication, check this box." />
- </StackPanel>
- <StackPanel Visibility="{Binding Settings.UseProxyAuthentication, Converter={StaticResource VisConv}}">
- <StackPanel Orientation="Horizontal" Style="{StaticResource LineItemPanel}">
- <Label Style="{StaticResource LineItemLabel}" Content="Proxy Username" ToolTip="Username for proxy authentication." />
- <TextBox Style="{StaticResource LineItemTextBoxMd}" Text="{Binding Settings.UseProxyUsername}" />
- </StackPanel>
- <StackPanel Orientation="Horizontal" Style="{StaticResource LineItemPanel}">
- <Label Style="{StaticResource LineItemLabel}" Content="Proxy Password" ToolTip="Password for proxy authentication." />
- <TextBox Style="{StaticResource LineItemTextBoxMd}" Text="{Binding Settings.UseProxyPassword}" />
- </StackPanel>
- </StackPanel>
- </StackPanel>
- </StackPanel>
- </ScrollViewer>
- </TabItem>
-
- <TabItem Header="Device">
- <ScrollViewer HorizontalScrollBarVisibility="Hidden" VerticalScrollBarVisibility="Visible">
- <StackPanel>
- <StackPanel Orientation="Horizontal" Style="{StaticResource LineItemPanel}">
- <TextBlock Padding="3,3,24,3" TextWrapping="Wrap" MaxWidth="{Binding ActualWidth, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type ScrollViewer}}}"
- Text="We provide a number of preconfigured device packages to emulate real world devices and improve your security. If you plan to use this account on your real Android device we recommend selecting custom and entering your own actual device values. We do not offer Apple product options as the API library we use always appears to be Android on Niantic's side, hence the Android-only options here." />
- </StackPanel>
- <StackPanel Orientation="Horizontal" Style="{StaticResource LineItemPanel}">
- <Label Style="{StaticResource LineItemLabel}" Content="Device Package" ToolTip="The device package to use for this bot, use 'random' to choose one automatically or 'custom' to use your own configs" />
- <ComboBox ItemsSource="{Binding DevicePackageCollection}" SelectedItem="{Binding Settings.DevicePackageName}" SelectionChanged="DevicePackage_Changed" />
- <!--<TextBox Style="{StaticResource LineItemTextBoxMd}" Text="{Binding Settings.DevicePackageName}" />-->
- </StackPanel>
- <StackPanel Orientation="Horizontal" Style="{StaticResource LineItemPanel}">
- <Label Style="{StaticResource LineItemLabel}" Content="Device ID" ToolTip="The device serial number, this is unique per device and should be a 16-digit hexadecimal value" />
- <TextBox Style="{StaticResource LineItemTextBoxMd}" Text="{Binding Settings.DeviceId}" />
- </StackPanel>
- <StackPanel Orientation="Horizontal" Style="{StaticResource LineItemPanel}">
- <Label Style="{StaticResource LineItemLabel}" Content="Android Board Name" />
- <TextBox Style="{StaticResource LineItemTextBoxMd}" Text="{Binding Settings.AndroidBoardName}" IsEnabled="{Binding IsCustomDevicePackage}" />
- </StackPanel>
- <StackPanel Orientation="Horizontal" Style="{StaticResource LineItemPanel}">
- <Label Style="{StaticResource LineItemLabel}" Content="Android Bootloader" />
- <TextBox Style="{StaticResource LineItemTextBoxMd}" Text="{Binding Settings.AndroidBootloader}" IsEnabled="{Binding IsCustomDevicePackage}" />
- </StackPanel>
- <StackPanel Orientation="Horizontal" Style="{StaticResource LineItemPanel}">
- <Label Style="{StaticResource LineItemLabel}" Content="Device Brand" />
- <TextBox Style="{StaticResource LineItemTextBoxMd}" Text="{Binding Settings.DeviceBrand}" IsEnabled="{Binding IsCustomDevicePackage}" />
- </StackPanel>
- <StackPanel Orientation="Horizontal" Style="{StaticResource LineItemPanel}">
- <Label Style="{StaticResource LineItemLabel}" Content="Device Model" />
- <TextBox Style="{StaticResource LineItemTextBoxMd}" Text="{Binding Settings.DeviceModel}" IsEnabled="{Binding IsCustomDevicePackage}" />
- </StackPanel>
- <StackPanel Orientation="Horizontal" Style="{StaticResource LineItemPanel}">
- <Label Style="{StaticResource LineItemLabel}" Content="Device Model Identifier" />
- <TextBox Style="{StaticResource LineItemTextBoxMd}" Text="{Binding Settings.DeviceModelIdentifier}" IsEnabled="{Binding IsCustomDevicePackage}" />
- </StackPanel>
- <StackPanel Orientation="Horizontal" Style="{StaticResource LineItemPanel}">
- <Label Style="{StaticResource LineItemLabel}" Content="Device Model Boot" />
- <TextBox Style="{StaticResource LineItemTextBoxMd}" Text="{Binding Settings.DeviceModelBoot}" IsEnabled="{Binding IsCustomDevicePackage}" />
- </StackPanel>
- <StackPanel Orientation="Horizontal" Style="{StaticResource LineItemPanel}">
- <Label Style="{StaticResource LineItemLabel}" Content="Hardware Manufacturer" />
- <TextBox Style="{StaticResource LineItemTextBoxMd}" Text="{Binding Settings.HardwareManufacturer}" IsEnabled="{Binding IsCustomDevicePackage}" />
- </StackPanel>
- <StackPanel Orientation="Horizontal" Style="{StaticResource LineItemPanel}">
- <Label Style="{StaticResource LineItemLabel}" Content="Hardware Model" />
- <TextBox Style="{StaticResource LineItemTextBoxMd}" Text="{Binding Settings.HardwareModel}" IsEnabled="{Binding IsCustomDevicePackage}" />
- </StackPanel>
- <StackPanel Orientation="Horizontal" Style="{StaticResource LineItemPanel}">
- <Label Style="{StaticResource LineItemLabel}" Content="Firmware Brand" />
- <TextBox Style="{StaticResource LineItemTextBoxMd}" Text="{Binding Settings.FirmwareBrand}" IsEnabled="{Binding IsCustomDevicePackage}" />
- </StackPanel>
- <StackPanel Orientation="Horizontal" Style="{StaticResource LineItemPanel}">
- <Label Style="{StaticResource LineItemLabel}" Content="Firmware Tags" />
- <TextBox Style="{StaticResource LineItemTextBoxMd}" Text="{Binding Settings.FirmwareTags}" IsEnabled="{Binding IsCustomDevicePackage}" />
- </StackPanel>
- <StackPanel Orientation="Horizontal" Style="{StaticResource LineItemPanel}">
- <Label Style="{StaticResource LineItemLabel}" Content="Firmware Type" />
- <TextBox Style="{StaticResource LineItemTextBoxMd}" Text="{Binding Settings.FirmwareType}" IsEnabled="{Binding IsCustomDevicePackage}" />
- </StackPanel>
- <StackPanel Orientation="Horizontal" Style="{StaticResource LineItemPanel}">
- <Label Style="{StaticResource LineItemLabel}" Content="Firmware Fingerprint" />
- <TextBox Style="{StaticResource LineItemTextBoxLg}" Text="{Binding Settings.FirmwareFingerprint}" IsEnabled="{Binding IsCustomDevicePackage}" />
- </StackPanel>
- </StackPanel>
- </ScrollViewer>
- </TabItem>
-
- <TabItem Header="Inventory">
- <ScrollViewer HorizontalScrollBarVisibility="Hidden" VerticalScrollBarVisibility="Visible">
- <StackPanel>
- <StackPanel Orientation="Horizontal" Style="{StaticResource LineItemPanel}">
- <CheckBox Content="Verbose Recycling" IsChecked="{Binding Settings.VerboseRecycling}" ToolTip="QED." />
- </StackPanel>
- <StackPanel Orientation="Horizontal" Style="{StaticResource LineItemPanel}">
- <Label Style="{StaticResource LineItemLabel}" Content="Recycle Inventory at %" ToolTip="When your inventory reaches this pewrcentage of capacity, start a recycle of spare items." />
- <TextBox Style="{StaticResource LineItemTextBoxMd}" Text="{Binding Settings.RecycleInventoryAtUsagePercentage}" />
- </StackPanel>
- <StackPanel Orientation="Horizontal" Style="{StaticResource LineItemPanel}">
- <Label Style="{StaticResource LineItemLabel}" Content="Total Balls to Keep" ToolTip="Total number of all types of Pokeballs to keep - balls of lowest quality get recycled first." />
- <TextBox Style="{StaticResource LineItemTextBoxMd}" Text="{Binding Settings.TotalAmountOfPokeballsToKeep}" />
- </StackPanel>
- <StackPanel Orientation="Horizontal" Style="{StaticResource LineItemPanel}">
- <Label Style="{StaticResource LineItemLabel}" Content="Total Potions to Keep" ToolTip="Total number of all types of Potions to keep - potions of lowest quality get recycled first." />
- <TextBox Style="{StaticResource LineItemTextBoxMd}" Text="{Binding Settings.TotalAmountOfPotionsToKeep}" />
- </StackPanel>
- <StackPanel Orientation="Horizontal" Style="{StaticResource LineItemPanel}">
- <Label Style="{StaticResource LineItemLabel}" Content="Total Revives to Keep" ToolTip="Maintains this many Revives during recycle phase." />
- <TextBox Style="{StaticResource LineItemTextBoxMd}" Text="{Binding Settings.TotalAmountOfRevivesToKeep}" />
- </StackPanel>
- <StackPanel Orientation="Horizontal" Style="{StaticResource LineItemPanel}">
- <Label Style="{StaticResource LineItemLabel}" Content="Total Berries to Keep" ToolTip="Maintains this many Berries during recycle phase." />
- <TextBox Style="{StaticResource LineItemTextBoxMd}" Text="{Binding Settings.TotalAmountOfBerriesToKeep}" />
- </StackPanel>
- <StackPanel Orientation="Horizontal" Style="{StaticResource LineItemPanel}">
- <Label Style="{StaticResource LineItemLabel}" Content="Total Items Being Kept" ToolTip="This is how many total items you are asking NecroBot to keep during recycle." />
- <TextBox Style="{StaticResource LineItemTextBoxMd}" Text="{Binding Settings.TotalItemsBeingKept}" IsReadOnly="True" />
- </StackPanel>
- <StackPanel Orientation="Horizontal" Style="{StaticResource LineItemPanel}">
- <CheckBox Content="Use Egg Incubators" IsChecked="{Binding Settings.UseEggIncubators}" ToolTip="If checked, egg incubation will be automated." />
- </StackPanel>
- <StackPanel Orientation="Horizontal" Style="{StaticResource LineItemPanel}">
- <CheckBox Content="Use Lucky Eggs Constantly" IsChecked="{Binding Settings.UseLuckyEggConstantly}" ToolTip="QED." />
- </StackPanel>
- <StackPanel Orientation="Horizontal" Style="{StaticResource LineItemPanel}">
- <Label Style="{StaticResource LineItemLabel}" Content="Use Lucky Eggs Min Pokemon" ToolTip="QED." />
- <TextBox Style="{StaticResource LineItemTextBoxMd}" Text="{Binding Settings.UseLuckyEggsMinPokemonAmount}" />
- </StackPanel>
- <StackPanel Orientation="Horizontal" Style="{StaticResource LineItemPanel}">
- <CheckBox Content="Use Lucky Eggs While Evolving" IsChecked="{Binding Settings.UseLuckyEggsWhileEvolving}" ToolTip="If checked, will use a Lucky Egg prior to doing evolves for boosted XP." />
- </StackPanel>
- <StackPanel Orientation="Horizontal" Style="{StaticResource LineItemPanel}">
- <CheckBox Content="Use Incense Constantly" IsChecked="{Binding Settings.UseIncenseConstantly}" ToolTip="If checked, will always use incense if any are available in inventory." />
- </StackPanel>
- </StackPanel>
- </ScrollViewer>
- </TabItem>
-
- <TabItem Header="Pokemon">
- <ScrollViewer HorizontalScrollBarVisibility="Hidden" VerticalScrollBarVisibility="Visible">
- <StackPanel>
- <StackPanel Orientation="Horizontal" Style="{StaticResource LineItemPanel}">
- <CheckBox Content="Rename Pokemon" IsChecked="{Binding Settings.RenamePokemon}" ToolTip="Check this box to enable automatic renaming of your Pokemon." />
- </StackPanel>
- <StackPanel Visibility="{Binding Settings.RenamePokemon, Converter={StaticResource VisConv}}">
- <StackPanel Orientation="Horizontal" Style="{StaticResource LineItemPanel}">
- <CheckBox Content="Rename only above IV%" IsChecked="{Binding Settings.RenameOnlyAboveIv}" ToolTip="QED." />
- </StackPanel>
- <StackPanel Orientation="Horizontal" Style="{StaticResource LineItemPanel}">
- <Label Style="{StaticResource LineItemLabel}" Content="Rename Template" ToolTip="A template for how your Pokemon will be renamed. Tokens: {0} is the Pokemon Species, {1} is the IV%" />
- <TextBox Style="{StaticResource LineItemTextBoxMd}" Text="{Binding Settings.RenameTemplate}" />
- </StackPanel>
- </StackPanel>
- <StackPanel Orientation="Horizontal" Style="{StaticResource LineItemPanel}">
- <CheckBox Content="Automatically Upgrade Pokemon" IsChecked="{Binding Settings.AutomaticallyLevelUpPokemon}" ToolTip="Check this box to have the bot automatically apply upgrades using candies and stardust." />
- </StackPanel>
- <StackPanel Visibility="{Binding Settings.AutomaticallyLevelUpPokemon, Converter={StaticResource VisConv}}">
- <StackPanel Orientation="Horizontal" Style="{StaticResource LineItemPanel}">
- <Label Style="{StaticResource LineItemLabel}" Content="Amount Of Times To Upgrade Loop" ToolTip="QED." />
- <TextBox Style="{StaticResource LineItemTextBoxSm}" Text="{Binding Settings.AmountOfTimesToUpgradeLoop}" />
- </StackPanel>
- <StackPanel Orientation="Horizontal" Style="{StaticResource LineItemPanel}">
- <Label Style="{StaticResource LineItemLabel}" Content="Minimum Stardust Reserve for Upgrade" ToolTip="If you have less stardust than this, upgrades will not be performed." />
- <TextBox Style="{StaticResource LineItemTextBoxMd}" Text="{Binding Settings.GetMinStarDustForLevelUp}" />
- </StackPanel>
- <StackPanel Orientation="Horizontal" Style="{StaticResource LineItemPanel}">
- <Label Style="{StaticResource LineItemLabel}" Content="Upgrade by CP or IV%" ToolTip="Should the CP or IV% of Pokemon be used as the upgrade priority?" />
- <ComboBox ItemsSource="{Binding IpCvCollection}" SelectedItem="{Binding Settings.LevelUpByCPorIv}" />
- </StackPanel>
- <StackPanel Orientation="Horizontal" Style="{StaticResource LineItemPanel}">
- <Label Style="{StaticResource LineItemLabel}" Content="Upgrade Pokemon Above CP" ToolTip="QED." />
- <TextBox Style="{StaticResource LineItemTextBoxMd}" Text="{Binding Settings.UpgradePokemonCpMinimum}" />
- </StackPanel>
- <StackPanel Orientation="Horizontal" Style="{StaticResource LineItemPanel}">
- <Label Style="{StaticResource LineItemLabel}" Content="Upgrade Pokemon Above IV%" ToolTip="QED." />
- <TextBox Style="{StaticResource LineItemTextBoxMd}" Text="{Binding Settings.UpgradePokemonIvMinimum}" />
- </StackPanel>
- <StackPanel Orientation="Horizontal" Style="{StaticResource LineItemPanel}">
- <Label Style="{StaticResource LineItemLabel}" Content="Upgrade Stats Operator" ToolTip="AND means the Pokemon must meet both IV% and CP requirements - OR means either." />
- <ComboBox ItemsSource="{Binding OperatorsCollection}" SelectedItem="{Binding Settings.UpgradePokemonMinimumStatsOperator}" />
- </StackPanel>
- </StackPanel>
- <StackPanel Orientation="Horizontal" Style="{StaticResource LineItemPanel}">
- <CheckBox Content="Evolve All Pokemon Above IV%" IsChecked="{Binding Settings.EvolveAllPokemonAboveIv}" ToolTip="QED." />
- </StackPanel>
- <StackPanel Orientation="Horizontal" Style="{StaticResource LineItemPanel}" Visibility="{Binding Settings.EvolveAllPokemonAboveIv, Converter={StaticResource VisConv}}">
- <Label Style="{StaticResource LineItemLabel}" Content="Evolve Above IV%" ToolTip="Decimals allowed." />
- <TextBox Style="{StaticResource LineItemTextBoxSm}" Text="{Binding Settings.EvolveAboveIvValue}" />
- </StackPanel>
- <StackPanel Orientation="Horizontal" Style="{StaticResource LineItemPanel}">
- <CheckBox Content="Evolve All Pokemon with Enough Candy" IsChecked="{Binding Settings.EvolveAllPokemonWithEnoughCandy}" ToolTip="QED." />
- </StackPanel>
- <StackPanel Orientation="Horizontal" Style="{StaticResource LineItemPanel}">
- <Label Style="{StaticResource LineItemLabel}" Content="Evolve Pokemon at Storage Usage %" ToolTip="Decimals allowed." />
- <TextBox Style="{StaticResource LineItemTextBoxMd}" Text="{Binding Settings.EvolveKeptPokemonsAtStorageUsagePercentage}" />
- </StackPanel>
- <StackPanel Orientation="Horizontal" Style="{StaticResource LineItemPanel}">
- <CheckBox Content="Keep Pokemon which Can Evolve" IsChecked="{Binding Settings.KeepPokemonsThatCanEvolve}" ToolTip="QED." />
- </StackPanel>
- <StackPanel Orientation="Horizontal" Style="{StaticResource LineItemPanel}">
- <CheckBox Content="Auto-Favorite Pokemon" IsChecked="{Binding Settings.AutoFavoritePokemon}" ToolTip="QED." />
- </StackPanel>
- <StackPanel Orientation="Horizontal" Style="{StaticResource LineItemPanel}" Visibility="{Binding Settings.AutoFavoritePokemon, Converter={StaticResource VisConv}}">
- <Label Style="{StaticResource LineItemLabel}" Content="Favorite Pokemon above IV%" ToolTip="If the IV of a Pokemon is at or above this % it will be favorited and not transfered. Decimals allowed." />
- <TextBox Style="{StaticResource LineItemTextBoxMd}" Text="{Binding Settings.FavoriteMinIvPercentage}" />
- </StackPanel>
- </StackPanel>
- </ScrollViewer>
- </TabItem>
-
- <TabItem Header="Capture">
- <ScrollViewer HorizontalScrollBarVisibility="Hidden" VerticalScrollBarVisibility="Visible">
- <StackPanel>
- <StackPanel Orientation="Horizontal" Style="{StaticResource LineItemPanel}">
- <CheckBox Content="Enable Catching Pokemon" IsChecked="{Binding Settings.CatchPokemon}" ToolTip="If this is unchecked, the bot will not catch any wild Pokemon." />
- </StackPanel>
- <StackPanel Visibility="{Binding Settings.CatchPokemon, Converter={StaticResource VisConv}}">
- <StackPanel Orientation="Horizontal" Style="{StaticResource LineItemPanel}">
- <CheckBox Content="Use Pokemon To Not Catch Filter" IsChecked="{Binding Settings.UsePokemonToNotCatchFilter}" ToolTip="If this is checked, Pokemon in the no-catch list will be avoided." />
- </StackPanel>
- <StackPanel Orientation="Horizontal" Style="{StaticResource LineItemPanel}">
- <Label Style="{StaticResource LineItemLabel}" Content="Max Balls Per Pokemon" ToolTip="Sets the limit of balls to throw at a single Pokemon before giving up." />
- <TextBox Style="{StaticResource LineItemTextBoxSm}" Text="{Binding Settings.MaxPokeballsPerPokemon}" />
- </StackPanel>
- <StackPanel Orientation="Horizontal" Style="{StaticResource LineItemPanel}">
- <Label Style="{StaticResource LineItemLabel}" Content="Max Berries Per Pokemon" ToolTip="Sets the limit on how many berries to use in a single encounter." />
- <TextBox Style="{StaticResource LineItemTextBoxSm}" Text="{Binding Settings.MaxBerriesToUsePerPokemon}" />
- </StackPanel>
- <StackPanel Orientation="Horizontal" Style="{StaticResource LineItemPanel}">
- <Label Style="{StaticResource LineItemLabel}" Content="Use Great Ball Above CP" ToolTip="When Pokemon above this CP level are found, a Great Ball will be used for throws." />
- <TextBox Style="{StaticResource LineItemTextBoxMd}" Text="{Binding Settings.UseGreatBallAboveCp}" />
- </StackPanel>
- <StackPanel Orientation="Horizontal" Style="{StaticResource LineItemPanel}">
- <Label Style="{StaticResource LineItemLabel}" Content="Use Ultra Ball Above CP" ToolTip="When Pokemon above this CP level are found, an Ultra Ball will be used for throws." />
- <TextBox Style="{StaticResource LineItemTextBoxMd}" Text="{Binding Settings.UseUltraBallAboveCp}" />
- </StackPanel>
- <StackPanel Orientation="Horizontal" Style="{StaticResource LineItemPanel}">
- <Label Style="{StaticResource LineItemLabel}" Content="Use Master Ball Above CP" ToolTip="When Pokemon above this CP level are found, a Master Ball will be used for throws." />
- <TextBox Style="{StaticResource LineItemTextBoxMd}" Text="{Binding Settings.UseMasterBallAboveCp}" />
- </StackPanel>
- <StackPanel Orientation="Horizontal" Style="{StaticResource LineItemPanel}">
- <Label Style="{StaticResource LineItemLabel}" Content="Use Great Ball Above IV%" ToolTip="When Pokemon above this IV% are found, a Great Ball will be used for throws." />
- <TextBox Style="{StaticResource LineItemTextBoxSm}" Text="{Binding Settings.UseGreatBallAboveIv}" />
- </StackPanel>
- <StackPanel Orientation="Horizontal" Style="{StaticResource LineItemPanel}">
- <Label Style="{StaticResource LineItemLabel}" Content="Use Ultra Ball Above IV%" ToolTip="When Pokemon above this IV% are found, an Ultra Ball will be used for throws." />
- <TextBox Style="{StaticResource LineItemTextBoxSm}" Text="{Binding Settings.UseUltraBallAboveIv}" />
- </StackPanel>
- <StackPanel Orientation="Horizontal" Style="{StaticResource LineItemPanel}">
- <Label Style="{StaticResource LineItemLabel}" Content="Use Great Ball Below % Probability" ToolTip="QED." />
- <TextBox Style="{StaticResource LineItemTextBoxSm}" Text="{Binding Settings.UseGreatBallBelowCatchProbability}" />
- </StackPanel>
- <StackPanel Orientation="Horizontal" Style="{StaticResource LineItemPanel}">
- <Label Style="{StaticResource LineItemLabel}" Content="Use Ultra Ball Below % Probability" ToolTip="QED." />
- <TextBox Style="{StaticResource LineItemTextBoxSm}" Text="{Binding Settings.UseUltraBallBelowCatchProbability}" />
- </StackPanel>
- <StackPanel Orientation="Horizontal" Style="{StaticResource LineItemPanel}">
- <Label Style="{StaticResource LineItemLabel}" Content="Use Master Ball Below % Probability" ToolTip="QED." />
- <TextBox Style="{StaticResource LineItemTextBoxSm}" Text="{Binding Settings.UseMasterBallBelowCatchProbability}" />
- </StackPanel>
- <StackPanel Orientation="Horizontal" Style="{StaticResource LineItemPanel}">
- <Label Style="{StaticResource LineItemLabel}" Content="Use Berries when Above CP" ToolTip="Use berries on Pokemon at or above this CP level." />
- <TextBox Style="{StaticResource LineItemTextBoxMd}" Text="{Binding Settings.UseBerriesMinCp}" />
- </StackPanel>
- <StackPanel Orientation="Horizontal" Style="{StaticResource LineItemPanel}">
- <Label Style="{StaticResource LineItemLabel}" Content="Use Berries when Above IV%" ToolTip="Use berries on Pokemon at or above this IV%." />
- <TextBox Style="{StaticResource LineItemTextBoxSm}" Text="{Binding Settings.UseBerriesMinIv}" />
- </StackPanel>
- <StackPanel Orientation="Horizontal" Style="{StaticResource LineItemPanel}">
- <Label Style="{StaticResource LineItemLabel}" Content="Use Berries Below % Probability" ToolTip="QED." />
- <TextBox Style="{StaticResource LineItemTextBoxSm}" Text="{Binding Settings.UseBerriesBelowCatchProbability}" />
- </StackPanel>
- <StackPanel Orientation="Horizontal" Style="{StaticResource LineItemPanel}">
- <Label Style="{StaticResource LineItemLabel}" Content=" Operator" ToolTip="AND means the Pokemon must meet both IV% and CP requirements - OR means either." />
- <ComboBox ItemsSource="{Binding OperatorsCollection}" SelectedItem="{Binding Settings.UseBerriesOperator}" />
- </StackPanel>
- <StackPanel Orientation="Horizontal" Style="{StaticResource LineItemPanel}">
- <CheckBox Content="Enable Human-like Throws" IsChecked="{Binding Settings.EnableHumanizedThrows}" ToolTip="This system varies the throw quality in order to keep you from being detected." />
- </StackPanel>
- <StackPanel Visibility="{Binding Settings.EnableHumanizedThrows, Converter={StaticResource VisConv}}">
- <StackPanel Orientation="Horizontal" Style="{StaticResource LineItemPanel}">
- <Label Style="{StaticResource LineItemLabel}" Content="Nice Throw % Chance" ToolTip="QED." />
- <TextBox Style="{StaticResource LineItemTextBoxSm}" Text="{Binding Settings.NiceThrowChance}" />
- </StackPanel>
- <StackPanel Orientation="Horizontal" Style="{StaticResource LineItemPanel}">
- <Label Style="{StaticResource LineItemLabel}" Content="Great Throw % Chance" ToolTip="QED." />
- <TextBox Style="{StaticResource LineItemTextBoxSm}" Text="{Binding Settings.GreatThrowChance}" />
- </StackPanel>
- <StackPanel Orientation="Horizontal" Style="{StaticResource LineItemPanel}">
- <Label Style="{StaticResource LineItemLabel}" Content="Excellent Throw % Chance" ToolTip="QED." />
- <TextBox Style="{StaticResource LineItemTextBoxSm}" Text="{Binding Settings.ExcellentThrowChance}" />
- </StackPanel>
- <StackPanel Orientation="Horizontal" Style="{StaticResource LineItemPanel}">
- <Label Style="{StaticResource LineItemLabel}" Content="Computed Normal Throw % Chance" ToolTip="QED." />
- <TextBox Style="{StaticResource LineItemTextBoxSm}" Text="{Binding Settings.NormalThrowChance}" IsReadOnly="True" />
- </StackPanel>
- <StackPanel Orientation="Horizontal" Style="{StaticResource LineItemPanel}">
- <Label Style="{StaticResource LineItemLabel}" Content="Curve Throw % Chance" ToolTip="CurveBalls are a throw add-on and separate from quality, setting this too high may get you flagged." />
- <TextBox Style="{StaticResource LineItemTextBoxSm}" Text="{Binding Settings.CurveThrowChance}" />
- </StackPanel>
- <StackPanel Orientation="Horizontal" Style="{StaticResource LineItemPanel}">
- <Label Style="{StaticResource LineItemLabel}" Content="Force Great Throw Over IV%" ToolTip="QED." />
- <TextBox Style="{StaticResource LineItemTextBoxSm}" Text="{Binding Settings.ForceGreatThrowOverIv}" />
- </StackPanel>
- <StackPanel Orientation="Horizontal" Style="{StaticResource LineItemPanel}">
- <Label Style="{StaticResource LineItemLabel}" Content="Force Excellent Throw Over IV%" ToolTip="QED." />
- <TextBox Style="{StaticResource LineItemTextBoxSm}" Text="{Binding Settings.ForceExcellentThrowOverIv}" />
- </StackPanel>
- <StackPanel Orientation="Horizontal" Style="{StaticResource LineItemPanel}">
- <Label Style="{StaticResource LineItemLabel}" Content="Force Great Throw Over CP" ToolTip="QED." />
- <TextBox Style="{StaticResource LineItemTextBoxMd}" Text="{Binding Settings.ForceGreatThrowOverCp}" />
- </StackPanel>
- <StackPanel Orientation="Horizontal" Style="{StaticResource LineItemPanel}">
- <Label Style="{StaticResource LineItemLabel}" Content="Force Excellent Throw Over CP" ToolTip="QED." />
- <TextBox Style="{StaticResource LineItemTextBoxMd}" Text="{Binding Settings.ForceExcellentThrowOverCp}" />
- </StackPanel>
- </StackPanel>
- </StackPanel>
- </StackPanel>
- </ScrollViewer>
- </TabItem>
-
- <TabItem Header="Transfer">
- <ScrollViewer HorizontalScrollBarVisibility="Hidden" VerticalScrollBarVisibility="Visible">
- <StackPanel></StackPanel>
- </ScrollViewer>
- </TabItem>
-
- <TabItem Header="Sniping">
- <ScrollViewer HorizontalScrollBarVisibility="Hidden" VerticalScrollBarVisibility="Visible">
- <StackPanel></StackPanel>
- </ScrollViewer>
- </TabItem>
-
- <TabItem Header="Misc">
- <ScrollViewer HorizontalScrollBarVisibility="Hidden" VerticalScrollBarVisibility="Visible">
- <StackPanel></StackPanel>
- </ScrollViewer>
- </TabItem>
-
- </TabControl>
-
- </DockPanel>
-</Window>
diff --git a/PoGo.NecroBot.ConfigUI/MainWindow.xaml.cs b/PoGo.NecroBot.ConfigUI/MainWindow.xaml.cs
deleted file mode 100644
index 56a1336..0000000
--- a/PoGo.NecroBot.ConfigUI/MainWindow.xaml.cs
+++ /dev/null
@@ -1,122 +0,0 @@
-using System;
-using System.Windows;
-using PokemonGo.RocketBot.Logic;
-using PoGo.NecroBot.ConfigUI.Models;
-using System.IO;
-using PokemonGo.RocketAPI.Enums;
-using System.Collections.Generic;
-using PokemonGo.RocketBot.Logic.Utils;
-
-namespace PoGo.NecroBot.ConfigUI
-{
-
- /// <summary> Interaction logic for MainWindow.xaml </summary>
- public partial class MainWindow : Window
- {
- private GlobalSettings _set = new GlobalSettings();
-
-
- public ObservableSettings Settings
- {
- get { return (ObservableSettings)GetValue(SettingsProperty); }
- set { SetValue(SettingsProperty, value); }
- }
- public static readonly DependencyProperty SettingsProperty =
- DependencyProperty.Register("Settings", typeof(ObservableSettings), typeof(MainWindow), new PropertyMetadata(null));
-
- public bool IsGoogleAuthShowing
- {
- get { return (bool)GetValue(IsGoogleAuthShowingProperty); }
- set { SetValue(IsGoogleAuthShowingProperty, value); }
- }
- public static readonly DependencyProperty IsGoogleAuthShowingProperty =
- DependencyProperty.Register("IsGoogleAuthShowing", typeof(bool), typeof(MainWindow), new PropertyMetadata(true));
-
- public bool IsCustomDevicePackage
- {
- get { return (bool)GetValue(IsCustomDevicePackageProperty); }
- set { SetValue(IsCustomDevicePackageProperty, value); }
- }
- public static readonly DependencyProperty IsCustomDevicePackageProperty =
- DependencyProperty.Register("IsCustomDevicePackage", typeof(bool), typeof(MainWindow), new PropertyMetadata(false));
-
- public List<string> DevicePackageCollection
- {
- get { return (List<string>)GetValue(DevicePackageCollectionProperty); }
- set { SetValue(DevicePackageCollectionProperty, value); }
- }
- public static readonly DependencyProperty DevicePackageCollectionProperty =
- DependencyProperty.Register("DevicePackageCollection", typeof(List<string>), typeof(MainWindow), new PropertyMetadata(new List<string>()));
-
- public List<string> OperatorsCollection
- {
- get { return (List<string>)GetValue(OperatorsCollectionProperty); }
- set { SetValue(OperatorsCollectionProperty, value); }
- }
- public static readonly DependencyProperty OperatorsCollectionProperty =
- DependencyProperty.Register("OperatorsCollection", typeof(List<string>), typeof(MainWindow), new PropertyMetadata(new List<string>() { "or", "and" }));
-
- public List<string> IpCvCollection
- {
- get { return (List<string>)GetValue(IpCvCollectionProperty); }
- set { SetValue(IpCvCollectionProperty, value); }
- }
- public static readonly DependencyProperty IpCvCollectionProperty =
- DependencyProperty.Register("IpCvCollection", typeof(List<string>), typeof(MainWindow), new PropertyMetadata(new List<string>() { "iv", "cp" }));
-
-
-
-
- public MainWindow()
- {
- this.DataContext = this;
- InitializeComponent();
- this.Loaded += MainWindow_Loaded;
- }
-
- private void MainWindow_Loaded(object sender, RoutedEventArgs e)
- {
- DevicePackageCollection.Add("custom");
- DevicePackageCollection.Add("random");
- foreach (string key in DeviceInfoHelper.DeviceInfoSets.Keys)
- DevicePackageCollection.Add(key);
- ReloadButton_Click(this, null);
- }
-
- private void DefaultsButton_Click(object sender, RoutedEventArgs e)
- {
- _set = new GlobalSettings();
- Settings = ObservableSettings.CreateFromGlobalSettings(_set);
- }
-
- private void ReloadButton_Click(object sender, RoutedEventArgs e)
- {
- _set = GlobalSettings.Load("");
- if (null == _set) _set = GlobalSettings.Load("");
- if (null == _set) throw new Exception("There was an error attempting to build default config files - may be a file permissions issue! Cannot proceed.");
- Settings = ObservableSettings.CreateFromGlobalSettings(_set);
- }
-
- private void SaveButton_Click(object sender, RoutedEventArgs e)
- {
- var profilePath = Path.Combine(Directory.GetCurrentDirectory(), "");
- var profileConfigPath = Path.Combine(profilePath, "config");
- var configFile = Path.Combine(profileConfigPath, "config.json");
- var authFile = Path.Combine(profileConfigPath, "auth.json");
- _set = Settings.GetGlobalSettingsObject();
- _set.Save(configFile);
- _set.Auth.Save(authFile);
- }
-
- private void AuthType_Changed(object sender, System.Windows.Controls.SelectionChangedEventArgs e)
- {
- IsGoogleAuthShowing = (AuthType.Google == (AuthType)e.AddedItems[0]);
- }
-
- private void DevicePackage_Changed(object sender, System.Windows.Controls.SelectionChangedEventArgs e)
- {
- IsCustomDevicePackage = e.AddedItems[0].Equals("custom");
- }
-
- }
-}
diff --git a/PoGo.NecroBot.ConfigUI/Models/ObservableSettings.cs b/PoGo.NecroBot.ConfigUI/Models/ObservableSettings.cs
deleted file mode 100644
index aba9c24..0000000
--- a/PoGo.NecroBot.ConfigUI/Models/ObservableSettings.cs
+++ /dev/null
@@ -1,1090 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-using PokemonGo.RocketBot.Logic;
-using System.Windows;
-using PokemonGo.RocketAPI.Enums;
-
-namespace PoGo.NecroBot.ConfigUI.Models
-{
-
- public class ObservableSettings : DependencyObject
- {
-
- #region BASIC Properties
-
- public string TranslationLanguageCode
- {
- get { return (string)GetValue(TranslationLanguageCodeProperty); }
- set { SetValue(TranslationLanguageCodeProperty, value); }
- }
- public static readonly DependencyProperty TranslationLanguageCodeProperty =
- DependencyProperty.Register("TranslationLanguageCode", typeof(string), typeof(ObservableSettings), new PropertyMetadata(string.Empty));
-
- public bool AutoUpdate
- {
- get { return (bool)GetValue(AutoUpdateProperty); }
- set { SetValue(AutoUpdateProperty, value); }
- }
- public static readonly DependencyProperty AutoUpdateProperty =
- DependencyProperty.Register("AutoUpdate", typeof(bool), typeof(ObservableSettings), new PropertyMetadata(false));
-
- public bool TransferConfigAndAuthOnUpdate
- {
- get { return (bool)GetValue(TransferConfigAndAuthOnUpdateProperty); }
- set { SetValue(TransferConfigAndAuthOnUpdateProperty, value); }
- }
- public static readonly DependencyProperty TransferConfigAndAuthOnUpdateProperty =
- DependencyProperty.Register("TransferConfigAndAuthOnUpdate", typeof(bool), typeof(ObservableSettings), new PropertyMetadata(false));
-
- public bool DisableHumanWalking
- {
- get { return (bool)GetValue(DisableHumanWalkingProperty); }
- set { SetValue(DisableHumanWalkingProperty, value); }
- }
- public static readonly DependencyProperty DisableHumanWalkingProperty =
- DependencyProperty.Register("DisableHumanWalking", typeof(bool), typeof(ObservableSettings), new PropertyMetadata(false));
-
- public double DefaultLatitude
- {
- get { return (double)GetValue(DefaultLatitudeProperty); }
- set { SetValue(DefaultLatitudeProperty, value); }
- }
- public static readonly DependencyProperty DefaultLatitudeProperty =
- DependencyProperty.Register("DefaultLatitude", typeof(double), typeof(ObservableSettings), new PropertyMetadata(0.0));
-
- public double DefaultLongitude
- {
- get { return (double)GetValue(DefaultLongitudeProperty); }
- set { SetValue(DefaultLongitudeProperty, value); }
- }
- public static readonly DependencyProperty DefaultLongitudeProperty =
- DependencyProperty.Register("DefaultLongitude", typeof(double), typeof(ObservableSettings), new PropertyMetadata(0.0));
-
- public int MaxTravelDistanceInMeters
- {
- get { return (int)GetValue(MaxTravelDistanceInMetersProperty); }
- set { SetValue(MaxTravelDistanceInMetersProperty, value); }
- }
- public static readonly DependencyProperty MaxTravelDistanceInMetersProperty =
- DependencyProperty.Register("MaxTravelDistanceInMeters", typeof(int), typeof(ObservableSettings), new PropertyMetadata(0));
-
- public double WalkingSpeedInKilometerPerHour
- {
- get { return (double)GetValue(WalkingSpeedInKilometerPerHourProperty); }
- set { SetValue(WalkingSpeedInKilometerPerHourProperty, value); }
- }
- public static readonly DependencyProperty WalkingSpeedInKilometerPerHourProperty =
- DependencyProperty.Register("WalkingSpeedInKilometerPerHour", typeof(double), typeof(ObservableSettings), new PropertyMetadata(0.0));
-
- public int MaxSpawnLocationOffset
- {
- get { return (int)GetValue(MaxSpawnLocationOffsetProperty); }
- set { SetValue(MaxSpawnLocationOffsetProperty, value); }
- }
- public static readonly DependencyProperty MaxSpawnLocationOffsetProperty =
- DependencyProperty.Register("MaxSpawnLocationOffset", typeof(int), typeof(ObservableSettings), new PropertyMetadata(0));
-
- public int DelayBetweenPlayerActions
- {
- get { return (int)GetValue(DelayBetweenPlayerActionsProperty); }
- set { SetValue(DelayBetweenPlayerActionsProperty, value); }
- }
- public static readonly DependencyProperty DelayBetweenPlayerActionsProperty =
- DependencyProperty.Register("DelayBetweenPlayerActions", typeof(int), typeof(ObservableSettings), new PropertyMetadata(0));
-
- public int DelayBetweenPokemonCatch
- {
- get { return (int)GetValue(DelayBetweenPokemonCatchProperty); }
- set { SetValue(DelayBetweenPokemonCatchProperty, value); }
- }
- public static readonly DependencyProperty DelayBetweenPokemonCatchProperty =
- DependencyProperty.Register("DelayBetweenPokemonCatch", typeof(int), typeof(ObservableSettings), new PropertyMetadata(0));
-
- public double Latitude
- {
- get { return (double)GetValue(LatitudeProperty); }
- set { SetValue(LatitudeProperty, value); }
- }
- public static readonly DependencyProperty LatitudeProperty =
- DependencyProperty.Register("Latitude", typeof(double), typeof(ObservableSettings), new PropertyMetadata(0.0));
-
- public double Longitude
- {
- get { return (double)GetValue(LongitudeProperty); }
- set { SetValue(LongitudeProperty, value); }
- }
- public static readonly DependencyProperty LongitudeProperty =
- DependencyProperty.Register("Longitude", typeof(double), typeof(ObservableSettings), new PropertyMetadata(0.0));
-
- #endregion BASIC Properties
-
-
- #region AUTH Properties
-
- public AuthType AuthType
- {
- get { return (AuthType)GetValue(AuthTypeProperty); }
- set { SetValue(AuthTypeProperty, value); }
- }
- public static readonly DependencyProperty AuthTypeProperty =
- DependencyProperty.Register("AuthType", typeof(AuthType), typeof(ObservableSettings), new PropertyMetadata(AuthType.Google));
-
- public string GoogleUsername
- {
- get { return (string)GetValue(GoogleUsernameProperty); }
- set { SetValue(GoogleUsernameProperty, value); }
- }
- public static readonly DependencyProperty GoogleUsernameProperty =
- DependencyProperty.Register("GoogleUsername", typeof(string), typeof(ObservableSettings), new PropertyMetadata(string.Empty));
-
- public string GooglePassword
- {
- get { return (string)GetValue(GooglePasswordProperty); }
- set { SetValue(GooglePasswordProperty, value); }
- }
- public static readonly DependencyProperty GooglePasswordProperty =
- DependencyProperty.Register("GooglePassword", typeof(string), typeof(ObservableSettings), new PropertyMetadata(string.Empty));
-
- public string PtcUsername
- {
- get { return (string)GetValue(PtcUsernameProperty); }
- set { SetValue(PtcUsernameProperty, value); }
- }
- public static readonly DependencyProperty PtcUsernameProperty =
- DependencyProperty.Register("PtcUsername", typeof(string), typeof(ObservableSettings), new PropertyMetadata(string.Empty));
-
- public string PtcPassword
- {
- get { return (string)GetValue(PtcPasswordProperty); }
- set { SetValue(PtcPasswordProperty, value); }
- }
- public static readonly DependencyProperty PtcPasswordProperty =
- DependencyProperty.Register("PtcPassword", typeof(string), typeof(ObservableSettings), new PropertyMetadata(string.Empty));
-
- public bool UseProxy
- {
- get { return (bool)GetValue(UseProxyProperty); }
- set { SetValue(UseProxyProperty, value); }
- }
- public static readonly DependencyProperty UseProxyProperty =
- DependencyProperty.Register("UseProxy", typeof(bool), typeof(ObservableSettings), new PropertyMetadata(false));
-
- public string UseProxyHost
- {
- get { return (string)GetValue(UseProxyHostProperty); }
- set { SetValue(UseProxyHostProperty, value); }
- }
- public static readonly DependencyProperty UseProxyHostProperty =
- DependencyProperty.Register("UseProxyHost", typeof(string), typeof(ObservableSettings), new PropertyMetadata(string.Empty));
-
- public string UseProxyPort
- {
- get { return (string)GetValue(UseProxyPortProperty); }
- set { SetValue(UseProxyPortProperty, value); }
- }
- public static readonly DependencyProperty UseProxyPortProperty =
- DependencyProperty.Register("UseProxyPort", typeof(string), typeof(ObservableSettings), new PropertyMetadata(string.Empty));
-
- public bool UseProxyAuthentication
- {
- get { return (bool)GetValue(UseProxyAuthenticationProperty); }
- set { SetValue(UseProxyAuthenticationProperty, value); }
- }
- public static readonly DependencyProperty UseProxyAuthenticationProperty =
- DependencyProperty.Register("UseProxyAuthentication", typeof(bool), typeof(ObservableSettings), new PropertyMetadata(false));
-
- public string UseProxyUsername
- {
- get { return (string)GetValue(UseProxyUsernameProperty); }
- set { SetValue(UseProxyUsernameProperty, value); }
- }
- public static readonly DependencyProperty UseProxyUsernameProperty =
- DependencyProperty.Register("UseProxyUsername", typeof(string), typeof(ObservableSettings), new PropertyMetadata(string.Empty));
-
- public string UseProxyPassword
- {
- get { return (string)GetValue(UseProxyPasswordProperty); }
- set { SetValue(UseProxyPasswordProperty, value); }
- }
- public static readonly DependencyProperty UseProxyPasswordProperty =
- DependencyProperty.Register("UseProxyPassword", typeof(string), typeof(ObservableSettings), new PropertyMetadata(string.Empty));
-
- #endregion AUTH Properties
-
-
- #region DEVICE Properties
-
- public string DevicePackageName
- {
- get { return (string)GetValue(DevicePackageNameProperty); }
- set { SetValue(DevicePackageNameProperty, value); }
- }
- public static readonly DependencyProperty DevicePackageNameProperty =
- DependencyProperty.Register("DevicePackageName", typeof(string), typeof(ObservableSettings), new PropertyMetadata("random"));
-
- public string DeviceId
- {
- get { return (string)GetValue(DeviceIdProperty); }
- set { SetValue(DeviceIdProperty, value); }
- }
- public static readonly DependencyProperty DeviceIdProperty =
- DependencyProperty.Register("DeviceId", typeof(string), typeof(ObservableSettings), new PropertyMetadata(string.Empty));
-
- public string AndroidBoardName
- {
- get { return (string)GetValue(AndroidBoardNameProperty); }
- set { SetValue(AndroidBoardNameProperty, value); }
- }
- public static readonly DependencyProperty AndroidBoardNameProperty =
- DependencyProperty.Register("AndroidBoardName", typeof(string), typeof(ObservableSettings), new PropertyMetadata(string.Empty));
-
- public string AndroidBootloader
- {
- get { return (string)GetValue(AndroidBootloaderProperty); }
- set { SetValue(AndroidBootloaderProperty, value); }
- }
- public static readonly DependencyProperty AndroidBootloaderProperty =
- DependencyProperty.Register("AndroidBootloader", typeof(string), typeof(ObservableSettings), new PropertyMetadata(string.Empty));
-
- public string DeviceBrand
- {
- get { return (string)GetValue(DeviceBrandProperty); }
- set { SetValue(DeviceBrandProperty, value); }
- }
- public static readonly DependencyProperty DeviceBrandProperty =
- DependencyProperty.Register("DeviceBrand", typeof(string), typeof(ObservableSettings), new PropertyMetadata(string.Empty));
-
- public string DeviceModel
- {
- get { return (string)GetValue(DeviceModelProperty); }
- set { SetValue(DeviceModelProperty, value); }
- }
- public static readonly DependencyProperty DeviceModelProperty =
- DependencyProperty.Register("DeviceModel", typeof(string), typeof(ObservableSettings), new PropertyMetadata(string.Empty));
-
- public string DeviceModelIdentifier
- {
- get { return (string)GetValue(DeviceModelIdentifierProperty); }
- set { SetValue(DeviceModelIdentifierProperty, value); }
- }
- public static readonly DependencyProperty DeviceModelIdentifierProperty =
- DependencyProperty.Register("DeviceModelIdentifier", typeof(string), typeof(ObservableSettings), new PropertyMetadata(string.Empty));
-
- public string DeviceModelBoot
- {
- get { return (string)GetValue(DeviceModelBootProperty); }
- set { SetValue(DeviceModelBootProperty, value); }
- }
- public static readonly DependencyProperty DeviceModelBootProperty =
- DependencyProperty.Register("DeviceModelBoot", typeof(string), typeof(ObservableSettings), new PropertyMetadata(string.Empty));
-
- public string HardwareManufacturer
- {
- get { return (string)GetValue(HardwareManufacturerProperty); }
- set { SetValue(HardwareManufacturerProperty, value); }
- }
- public static readonly DependencyProperty HardwareManufacturerProperty =
- DependencyProperty.Register("HardwareManufacturer", typeof(string), typeof(ObservableSettings), new PropertyMetadata(string.Empty));
-
- public string HardwareModel
- {
- get { return (string)GetValue(HardwareModelProperty); }
- set { SetValue(HardwareModelProperty, value); }
- }
- public static readonly DependencyProperty HardwareModelProperty =
- DependencyProperty.Register("HardwareModel", typeof(string), typeof(ObservableSettings), new PropertyMetadata(string.Empty));
-
- public string FirmwareBrand
- {
- get { return (string)GetValue(FirmwareBrandProperty); }
- set { SetValue(FirmwareBrandProperty, value); }
- }
- public static readonly DependencyProperty FirmwareBrandProperty =
- DependencyProperty.Register("FirmwareBrand", typeof(string), typeof(ObservableSettings), new PropertyMetadata(string.Empty));
-
- public string FirmwareTags
- {
- get { return (string)GetValue(FirmwareTagsProperty); }
- set { SetValue(FirmwareTagsProperty, value); }
- }
- public static readonly DependencyProperty FirmwareTagsProperty =
- DependencyProperty.Register("FirmwareTags", typeof(string), typeof(ObservableSettings), new PropertyMetadata(string.Empty));
-
- public string FirmwareType
- {
- get { return (string)GetValue(FirmwareTypeProperty); }
- set { SetValue(FirmwareTypeProperty, value); }
- }
- public static readonly DependencyProperty FirmwareTypeProperty =
- DependencyProperty.Register("FirmwareType", typeof(string), typeof(ObservableSettings), new PropertyMetadata(string.Empty));
-
- public string FirmwareFingerprint
- {
- get { return (string)GetValue(FirmwareFingerprintProperty); }
- set { SetValue(FirmwareFingerprintProperty, value); }
- }
- public static readonly DependencyProperty FirmwareFingerprintProperty =
- DependencyProperty.Register("FirmwareFingerprint", typeof(string), typeof(ObservableSettings), new PropertyMetadata(string.Empty));
-
- #endregion DEVICE Properties
-
-
- #region INVENTORY Properties
-
- public bool VerboseRecycling
- {
- get { return (bool)GetValue(VerboseRecyclingProperty); }
- set { SetValue(VerboseRecyclingProperty, value); }
- }
- public static readonly DependencyProperty VerboseRecyclingProperty =
- DependencyProperty.Register("VerboseRecycling", typeof(bool), typeof(ObservableSettings), new PropertyMetadata(false));
-
- public double RecycleInventoryAtUsagePercentage
- {
- get { return (double)GetValue(RecycleInventoryAtUsagePercentageProperty); }
- set { SetValue(RecycleInventoryAtUsagePercentageProperty, value); }
- }
- public static readonly DependencyProperty RecycleInventoryAtUsagePercentageProperty =
- DependencyProperty.Register("RecycleInventoryAtUsagePercentage", typeof(double), typeof(ObservableSettings), new PropertyMetadata(0.0));
-
- public int TotalAmountOfPokeballsToKeep
- {
- get { return (int)GetValue(TotalAmountOfPokeballsToKeepProperty); }
- set { SetValue(TotalAmountOfPokeballsToKeepProperty, value); }
- }
- public static readonly DependencyProperty TotalAmountOfPokeballsToKeepProperty =
- DependencyProperty.Register("TotalAmountOfPokeballsToKeep", typeof(int), typeof(ObservableSettings), new PropertyMetadata(0));
-
- public int TotalAmountOfPotionsToKeep
- {
- get { return (int)GetValue(TotalAmountOfPotionsToKeepProperty); }
- set { SetValue(TotalAmountOfPotionsToKeepProperty, value); }
- }
- public static readonly DependencyProperty TotalAmountOfPotionsToKeepProperty =
- DependencyProperty.Register("TotalAmountOfPotionsToKeep", typeof(int), typeof(ObservableSettings), new PropertyMetadata(0));
-
- public int TotalAmountOfRevivesToKeep
- {
- get { return (int)GetValue(TotalAmountOfRevivesToKeepProperty); }
- set { SetValue(TotalAmountOfRevivesToKeepProperty, value); }
- }
- public static readonly DependencyProperty TotalAmountOfRevivesToKeepProperty =
- DependencyProperty.Register("TotalAmountOfRevivesToKeep", typeof(int), typeof(ObservableSettings), new PropertyMetadata(0));
-
- public int TotalAmountOfBerriesToKeep
- {
- get { return (int)GetValue(TotalAmountOfBerriesToKeepProperty); }
- set { SetValue(TotalAmountOfBerriesToKeepProperty, value); }
- }
- public static readonly DependencyProperty TotalAmountOfBerriesToKeepProperty =
- DependencyProperty.Register("TotalAmountOfBerriesToKeep", typeof(int), typeof(ObservableSettings), new FrameworkPropertyMetadata(0, new PropertyChangedCallback(ItemsKept_PropertyChanged)));
-
- static void ItemsKept_PropertyChanged(DependencyObject obj, DependencyPropertyChangedEventArgs e)
- {
- ObservableSettings os = obj as ObservableSettings;
- if (null != os) os.TotalItemsBeingKept = 1;
- }
-
- public int TotalItemsBeingKept
- {
- get { return (int)GetValue(TotalAmountOfPokeballsToKeepProperty) + (int)GetValue(TotalAmountOfPotionsToKeepProperty) + (int)GetValue(TotalAmountOfRevivesToKeepProperty) + (int)GetValue(TotalAmountOfBerriesToKeepProperty); }
- set { SetValue(TotalItemsBeingKeptProperty, (int)GetValue(TotalAmountOfPokeballsToKeepProperty) + (int)GetValue(TotalAmountOfPotionsToKeepProperty) + (int)GetValue(TotalAmountOfRevivesToKeepProperty) + (int)GetValue(TotalAmountOfBerriesToKeepProperty)); }
- }
- public static readonly DependencyProperty TotalItemsBeingKeptProperty =
- DependencyProperty.Register("TotalItemsBeingKept", typeof(int), typeof(ObservableSettings), new PropertyMetadata(0));
-
- public bool UseEggIncubators
- {
- get { return (bool)GetValue(UseEggIncubatorsProperty); }
- set { SetValue(UseEggIncubatorsProperty, value); }
- }
- public static readonly DependencyProperty UseEggIncubatorsProperty =
- DependencyProperty.Register("UseEggIncubators", typeof(bool), typeof(ObservableSettings), new PropertyMetadata(false));
-
- public bool UseLuckyEggConstantly
- {
- get { return (bool)GetValue(UseLuckyEggConstantlyProperty); }
- set { SetValue(UseLuckyEggConstantlyProperty, value); }
- }
- public static readonly DependencyProperty UseLuckyEggConstantlyProperty =
- DependencyProperty.Register("UseLuckyEggConstantly", typeof(bool), typeof(ObservableSettings), new PropertyMetadata(false));
-
- public int UseLuckyEggsMinPokemonAmount
- {
- get { return (int)GetValue(UseLuckyEggsMinPokemonAmountProperty); }
- set { SetValue(UseLuckyEggsMinPokemonAmountProperty, value); }
- }
- public static readonly DependencyProperty UseLuckyEggsMinPokemonAmountProperty =
- DependencyProperty.Register("UseLuckyEggsMinPokemonAmount", typeof(int), typeof(ObservableSettings), new PropertyMetadata(0));
-
- public bool UseLuckyEggsWhileEvolving
- {
- get { return (bool)GetValue(UseLuckyEggsWhileEvolvingProperty); }
- set { SetValue(UseLuckyEggsWhileEvolvingProperty, value); }
- }
- public static readonly DependencyProperty UseLuckyEggsWhileEvolvingProperty =
- DependencyProperty.Register("UseLuckyEggsWhileEvolving", typeof(bool), typeof(ObservableSettings), new PropertyMetadata(false));
-
- public bool UseIncenseConstantly
- {
- get { return (bool)GetValue(UseIncenseConstantlyProperty); }
- set { SetValue(UseIncenseConstantlyProperty, value); }
- }
- public static readonly DependencyProperty UseIncenseConstantlyProperty =
- DependencyProperty.Register("UseIncenseConstantly", typeof(bool), typeof(ObservableSettings), new PropertyMetadata(false));
-
- #endregion INVENTORY Properties
-
-
- #region POKEMON Properties
-
- public bool RenamePokemon
- {
- get { return (bool)GetValue(RenamePokemonProperty); }
- set { SetValue(RenamePokemonProperty, value); }
- }
- public static readonly DependencyProperty RenamePokemonProperty =
- DependencyProperty.Register("RenamePokemon", typeof(bool), typeof(ObservableSettings), new PropertyMetadata(false));
-
- public bool RenameOnlyAboveIv
- {
- get { return (bool)GetValue(RenameOnlyAboveIvProperty); }
- set { SetValue(RenameOnlyAboveIvProperty, value); }
- }
- public static readonly DependencyProperty RenameOnlyAboveIvProperty =
- DependencyProperty.Register("RenameOnlyAboveIv", typeof(bool), typeof(ObservableSettings), new PropertyMetadata(false));
-
- public string RenameTemplate
- {
- get { return (string)GetValue(RenameTemplateProperty); }
- set { SetValue(RenameTemplateProperty, value); }
- }
- public static readonly DependencyProperty RenameTemplateProperty =
- DependencyProperty.Register("RenameTemplate", typeof(string), typeof(ObservableSettings), new PropertyMetadata(string.Empty));
-
- public bool AutomaticallyLevelUpPokemon
- {
- get { return (bool)GetValue(AutomaticallyLevelUpPokemonProperty); }
- set { SetValue(AutomaticallyLevelUpPokemonProperty, value); }
- }
- public static readonly DependencyProperty AutomaticallyLevelUpPokemonProperty =
- DependencyProperty.Register("AutomaticallyLevelUpPokemon", typeof(bool), typeof(ObservableSettings), new PropertyMetadata(false));
-
- public int AmountOfTimesToUpgradeLoop
- {
- get { return (int)GetValue(AmountOfTimesToUpgradeLoopProperty); }
- set { SetValue(AmountOfTimesToUpgradeLoopProperty, value); }
- }
- public static readonly DependencyProperty AmountOfTimesToUpgradeLoopProperty =
- DependencyProperty.Register("AmountOfTimesToUpgradeLoop", typeof(int), typeof(ObservableSettings), new PropertyMetadata(0));
-
- public int GetMinStarDustForLevelUp
- {
- get { return (int)GetValue(GetMinStarDustForLevelUpProperty); }
- set { SetValue(GetMinStarDustForLevelUpProperty, value); }
- }
- public static readonly DependencyProperty GetMinStarDustForLevelUpProperty =
- DependencyProperty.Register("GetMinStarDustForLevelUp", typeof(int), typeof(ObservableSettings), new PropertyMetadata(0));
-
- public string LevelUpByCPorIv
- {
- get { return (string)GetValue(LevelUpByCPorIvProperty); }
- set { SetValue(LevelUpByCPorIvProperty, value); }
- }
- public static readonly DependencyProperty LevelUpByCPorIvProperty =
- DependencyProperty.Register("LevelUpByCPorIv", typeof(string), typeof(ObservableSettings), new PropertyMetadata(string.Empty));
-
- public float UpgradePokemonCpMinimum
- {
- get { return (float)GetValue(UpgradePokemonCpMinimumProperty); }
- set { SetValue(UpgradePokemonCpMinimumProperty, value); }
- }
- public static readonly DependencyProperty UpgradePokemonCpMinimumProperty =
- DependencyProperty.Register("UpgradePokemonCpMinimum", typeof(float), typeof(ObservableSettings), new PropertyMetadata(0.0f));
-
- public float UpgradePokemonIvMinimum
- {
- get { return (float)GetValue(UpgradePokemonIvMinimumProperty); }
- set { SetValue(UpgradePokemonIvMinimumProperty, value); }
- }
- public static readonly DependencyProperty UpgradePokemonIvMinimumProperty =
- DependencyProperty.Register("UpgradePokemonIvMinimum", typeof(float), typeof(ObservableSettings), new PropertyMetadata(0.0f));
-
- public string UpgradePokemonMinimumStatsOperator
- {
- get { return (string)GetValue(UpgradePokemonMinimumStatsOperatorProperty); }
- set { SetValue(UpgradePokemonMinimumStatsOperatorProperty, value); }
- }
- public static readonly DependencyProperty UpgradePokemonMinimumStatsOperatorProperty =
- DependencyProperty.Register("UpgradePokemonMinimumStatsOperator", typeof(string), typeof(ObservableSettings), new PropertyMetadata(string.Empty));
-
- public float EvolveAboveIvValue
- {
- get { return (float)GetValue(EvolveAboveIvValueProperty); }
- set { SetValue(EvolveAboveIvValueProperty, value); }
- }
- public static readonly DependencyProperty EvolveAboveIvValueProperty =
- DependencyProperty.Register("EvolveAboveIvValue", typeof(float), typeof(ObservableSettings), new PropertyMetadata(0.0f));
-
- public bool EvolveAllPokemonAboveIv
- {
- get { return (bool)GetValue(EvolveAllPokemonAboveIvProperty); }
- set { SetValue(EvolveAllPokemonAboveIvProperty, value); }
- }
- public static readonly DependencyProperty EvolveAllPokemonAboveIvProperty =
- DependencyProperty.Register("EvolveAllPokemonAboveIv", typeof(bool), typeof(ObservableSettings), new PropertyMetadata(false));
-
- public bool EvolveAllPokemonWithEnoughCandy
- {
- get { return (bool)GetValue(EvolveAllPokemonWithEnoughCandyProperty); }
- set { SetValue(EvolveAllPokemonWithEnoughCandyProperty, value); }
- }
- public static readonly DependencyProperty EvolveAllPokemonWithEnoughCandyProperty =
- DependencyProperty.Register("EvolveAllPokemonWithEnoughCandy", typeof(bool), typeof(ObservableSettings), new PropertyMetadata(false));
-
- public double EvolveKeptPokemonsAtStorageUsagePercentage
- {
- get { return (double)GetValue(EvolveKeptPokemonsAtStorageUsagePercentageProperty); }
- set { SetValue(EvolveKeptPokemonsAtStorageUsagePercentageProperty, value); }
- }
- public static readonly DependencyProperty EvolveKeptPokemonsAtStorageUsagePercentageProperty =
- DependencyProperty.Register("EvolveKeptPokemonsAtStorageUsagePercentage", typeof(double), typeof(ObservableSettings), new PropertyMetadata(0.0));
-
- public bool KeepPokemonsThatCanEvolve
- {
- get { return (bool)GetValue(KeepPokemonsThatCanEvolveProperty); }
- set { SetValue(KeepPokemonsThatCanEvolveProperty, value); }
- }
- public static readonly DependencyProperty KeepPokemonsThatCanEvolveProperty =
- DependencyProperty.Register("KeepPokemonsThatCanEvolve", typeof(bool), typeof(ObservableSettings), new PropertyMetadata(false));
-
- public float FavoriteMinIvPercentage
- {
- get { return (float)GetValue(FavoriteMinIvPercentageProperty); }
- set { SetValue(FavoriteMinIvPercentageProperty, value); }
- }
- public static readonly DependencyProperty FavoriteMinIvPercentageProperty =
- DependencyProperty.Register("FavoriteMinIvPercentage", typeof(float), typeof(ObservableSettings), new PropertyMetadata(0.0f));
-
- public bool AutoFavoritePokemon
- {
- get { return (bool)GetValue(AutoFavoritePokemonProperty); }
- set { SetValue(AutoFavoritePokemonProperty, value); }
- }
- public static readonly DependencyProperty AutoFavoritePokemonProperty =
- DependencyProperty.Register("AutoFavoritePokemon", typeof(bool), typeof(ObservableSettings), new PropertyMetadata(false));
-
- #endregion POKEMON Properties
-
-
- #region CAPTURE Properties
-
- public bool CatchPokemon
- {
- get { return (bool)GetValue(CatchPokemonProperty); }
- set { SetValue(CatchPokemonProperty, value); }
- }
- public static readonly DependencyProperty CatchPokemonProperty =
- DependencyProperty.Register("CatchPokemon", typeof(bool), typeof(ObservableSettings), new PropertyMetadata(false));
-
- public bool UsePokemonToNotCatchFilter
- {
- get { return (bool)GetValue(UsePokemonToNotCatchFilterProperty); }
- set { SetValue(UsePokemonToNotCatchFilterProperty, value); }
- }
- public static readonly DependencyProperty UsePokemonToNotCatchFilterProperty =
- DependencyProperty.Register("UsePokemonToNotCatchFilter", typeof(bool), typeof(ObservableSettings), new PropertyMetadata(false));
-
- public int MaxPokeballsPerPokemon
- {
- get { return (int)GetValue(MaxPokeballsPerPokemonProperty); }
- set { SetValue(MaxPokeballsPerPokemonProperty, value); }
- }
- public static readonly DependencyProperty MaxPokeballsPerPokemonProperty =
- DependencyProperty.Register("MaxPokeballsPerPokemon", typeof(int), typeof(ObservableSettings), new PropertyMetadata(0));
-
- public int MaxBerriesToUsePerPokemon
- {
- get { return (int)GetValue(MaxBerriesToUsePerPokemonProperty); }
- set { SetValue(MaxBerriesToUsePerPokemonProperty, value); }
- }
- public static readonly DependencyProperty MaxBerriesToUsePerPokemonProperty =
- DependencyProperty.Register("MaxBerriesToUsePerPokemon", typeof(int), typeof(ObservableSettings), new PropertyMetadata(0));
-
- public int UseGreatBallAboveCp
- {
- get { return (int)GetValue(UseGreatBallAboveCpProperty); }
- set { SetValue(UseGreatBallAboveCpProperty, value); }
- }
- public static readonly DependencyProperty UseGreatBallAboveCpProperty =
- DependencyProperty.Register("UseGreatBallAboveCp", typeof(int), typeof(ObservableSettings), new PropertyMetadata(0));
-
- public int UseUltraBallAboveCp
- {
- get { return (int)GetValue(UseUltraBallAboveCpProperty); }
- set { SetValue(UseUltraBallAboveCpProperty, value); }
- }
- public static readonly DependencyProperty UseUltraBallAboveCpProperty =
- DependencyProperty.Register("UseUltraBallAboveCp", typeof(int), typeof(ObservableSettings), new PropertyMetadata(0));
-
- public int UseMasterBallAboveCp
- {
- get { return (int)GetValue(UseMasterBallAboveCpProperty); }
- set { SetValue(UseMasterBallAboveCpProperty, value); }
- }
- public static readonly DependencyProperty UseMasterBallAboveCpProperty =
- DependencyProperty.Register("UseMasterBallAboveCp", typeof(int), typeof(ObservableSettings), new PropertyMetadata(0));
-
- public double UseGreatBallAboveIv
- {
- get { return (double)GetValue(UseGreatBallAboveIvProperty); }
- set { SetValue(UseGreatBallAboveIvProperty, value); }
- }
- public static readonly DependencyProperty UseGreatBallAboveIvProperty =
- DependencyProperty.Register("UseGreatBallAboveIv", typeof(double), typeof(ObservableSettings), new PropertyMetadata(0.0));
-
- public double UseUltraBallAboveIv
- {
- get { return (double)GetValue(UseUltraBallAboveIvProperty); }
- set { SetValue(UseUltraBallAboveIvProperty, value); }
- }
- public static readonly DependencyProperty UseUltraBallAboveIvProperty =
- DependencyProperty.Register("UseUltraBallAboveIv", typeof(double), typeof(ObservableSettings), new PropertyMetadata(0.0));
-
- public double UseGreatBallBelowCatchProbability
- {
- get { return (double)GetValue(UseGreatBallBelowCatchProbabilityProperty); }
- set { SetValue(UseGreatBallBelowCatchProbabilityProperty, value); }
- }
- public static readonly DependencyProperty UseGreatBallBelowCatchProbabilityProperty =
- DependencyProperty.Register("UseGreatBallBelowCatchProbability", typeof(double), typeof(ObservableSettings), new PropertyMetadata(0.0));
-
- public double UseUltraBallBelowCatchProbability
- {
- get { return (double)GetValue(UseUltraBallBelowCatchProbabilityProperty); }
- set { SetValue(UseUltraBallBelowCatchProbabilityProperty, value); }
- }
- public static readonly DependencyProperty UseUltraBallBelowCatchProbabilityProperty =
- DependencyProperty.Register("UseUltraBallBelowCatchProbability", typeof(double), typeof(ObservableSettings), new PropertyMetadata(0.0));
-
- public double UseMasterBallBelowCatchProbability
- {
- get { return (double)GetValue(UseMasterBallBelowCatchProbabilityProperty); }
- set { SetValue(UseMasterBallBelowCatchProbabilityProperty, value); }
- }
- public static readonly DependencyProperty UseMasterBallBelowCatchProbabilityProperty =
- DependencyProperty.Register("UseMasterBallBelowCatchProbability", typeof(double), typeof(ObservableSettings), new PropertyMetadata(0.0));
-
- public int UseBerriesMinCp
- {
- get { return (int)GetValue(UseBerriesMinCpProperty); }
- set { SetValue(UseBerriesMinCpProperty, value); }
- }
- public static readonly DependencyProperty UseBerriesMinCpProperty =
- DependencyProperty.Register("UseBerriesMinCp", typeof(int), typeof(ObservableSettings), new PropertyMetadata(0));
-
- public float UseBerriesMinIv
- {
- get { return (float)GetValue(UseBerriesMinIvProperty); }
- set { SetValue(UseBerriesMinIvProperty, value); }
- }
- public static readonly DependencyProperty UseBerriesMinIvProperty =
- DependencyProperty.Register("UseBerriesMinIv", typeof(float), typeof(ObservableSettings), new PropertyMetadata(0.0f));
-
- public double UseBerriesBelowCatchProbability
- {
- get { return (double)GetValue(UseBerriesBelowCatchProbabilityProperty); }
- set { SetValue(UseBerriesBelowCatchProbabilityProperty, value); }
- }
- public static readonly DependencyProperty UseBerriesBelowCatchProbabilityProperty =
- DependencyProperty.Register("UseBerriesBelowCatchProbability", typeof(double), typeof(ObservableSettings), new PropertyMetadata(0.0));
-
- public string UseBerriesOperator
- {
- get { return (string)GetValue(UseBerriesOperatorProperty); }
- set { SetValue(UseBerriesOperatorProperty, value); }
- }
- public static readonly DependencyProperty UseBerriesOperatorProperty =
- DependencyProperty.Register("UseBerriesOperator", typeof(string), typeof(ObservableSettings), new PropertyMetadata(string.Empty));
-
- public bool EnableHumanizedThrows
- {
- get { return (bool)GetValue(EnableHumanizedThrowsProperty); }
- set { SetValue(EnableHumanizedThrowsProperty, value); }
- }
- public static readonly DependencyProperty EnableHumanizedThrowsProperty =
- DependencyProperty.Register("EnableHumanizedThrows", typeof(bool), typeof(ObservableSettings), new PropertyMetadata(false));
-
- public int NiceThrowChance
- {
- get { return (int)GetValue(NiceThrowChanceProperty); }
- set { SetValue(NiceThrowChanceProperty, value); }
- }
- public static readonly DependencyProperty NiceThrowChanceProperty =
- DependencyProperty.Register("NiceThrowChance", typeof(int), typeof(ObservableSettings), new FrameworkPropertyMetadata(0, new PropertyChangedCallback(ThrowChance_PropertyChanged)));
-
- public int GreatThrowChance
- {
- get { return (int)GetValue(GreatThrowChanceProperty); }
- set { SetValue(GreatThrowChanceProperty, value); }
- }
- public static readonly DependencyProperty GreatThrowChanceProperty =
- DependencyProperty.Register("GreatThrowChance", typeof(int), typeof(ObservableSettings), new FrameworkPropertyMetadata(0, new PropertyChangedCallback(ThrowChance_PropertyChanged)));
-
- public int ExcellentThrowChance
- {
- get { return (int)GetValue(ExcellentThrowChanceProperty); }
- set { SetValue(ExcellentThrowChanceProperty, value); }
- }
- public static readonly DependencyProperty ExcellentThrowChanceProperty =
- DependencyProperty.Register("ExcellentThrowChance", typeof(int), typeof(ObservableSettings), new FrameworkPropertyMetadata(0, new PropertyChangedCallback(ThrowChance_PropertyChanged)));
-
- static void ThrowChance_PropertyChanged(DependencyObject obj, DependencyPropertyChangedEventArgs e)
- {
- ObservableSettings os = obj as ObservableSettings;
- if (null != os) os.NormalThrowChance = 1;
- }
-
- public int NormalThrowChance
- {
- get { return 100 - (int)GetValue(ExcellentThrowChanceProperty) - (int)GetValue(GreatThrowChanceProperty) - (int)GetValue(NiceThrowChanceProperty); }
- set { SetValue(NormalThrowChanceProperty, 100 - (int)GetValue(ExcellentThrowChanceProperty) - (int)GetValue(GreatThrowChanceProperty) - (int)GetValue(NiceThrowChanceProperty)); }
- }
- public static readonly DependencyProperty NormalThrowChanceProperty =
- DependencyProperty.Register("NormalThrowChance", typeof(int), typeof(ObservableSettings), new PropertyMetadata(0));
-
- public int CurveThrowChance
- {
- get { return (int)GetValue(CurveThrowChanceProperty); }
- set { SetValue(CurveThrowChanceProperty, value); }
- }
- public static readonly DependencyProperty CurveThrowChanceProperty =
- DependencyProperty.Register("CurveThrowChance", typeof(int), typeof(ObservableSettings), new PropertyMetadata(0));
-
- public double ForceGreatThrowOverIv
- {
- get { return (double)GetValue(ForceGreatThrowOverIvProperty); }
- set { SetValue(ForceGreatThrowOverIvProperty, value); }
- }
- public static readonly DependencyProperty ForceGreatThrowOverIvProperty =
- DependencyProperty.Register("ForceGreatThrowOverIv", typeof(double), typeof(ObservableSettings), new PropertyMetadata(0.0));
-
- public double ForceExcellentThrowOverIv
- {
- get { return (double)GetValue(ForceExcellentThrowOverIvProperty); }
- set { SetValue(ForceExcellentThrowOverIvProperty, value); }
- }
- public static readonly DependencyProperty ForceExcellentThrowOverIvProperty =
- DependencyProperty.Register("ForceExcellentThrowOverIv", typeof(double), typeof(ObservableSettings), new PropertyMetadata(0.0));
-
- public int ForceGreatThrowOverCp
- {
- get { return (int)GetValue(ForceGreatThrowOverCpProperty); }
- set { SetValue(ForceGreatThrowOverCpProperty, value); }
- }
- public static readonly DependencyProperty ForceGreatThrowOverCpProperty =
- DependencyProperty.Register("ForceGreatThrowOverCp", typeof(int), typeof(ObservableSettings), new PropertyMetadata(0));
-
- public int ForceExcellentThrowOverCp
- {
- get { return (int)GetValue(ForceExcellentThrowOverCpProperty); }
- set { SetValue(ForceExcellentThrowOverCpProperty, value); }
- }
- public static readonly DependencyProperty ForceExcellentThrowOverCpProperty =
- DependencyProperty.Register("ForceExcellentThrowOverCp", typeof(int), typeof(ObservableSettings), new PropertyMetadata(0));
-
- #endregion CAPTURE Properties
-
-
- #region TRANSFER Properties
- #endregion TRANSFER Properties
-
-
- #region SNIPING Properties
- #endregion SNIPING Properties
-
-
- #region MISC Properties
- #endregion MISC Properties
-
-
- public ObservableSettings() { }
-
-
- public static ObservableSettings CreateFromGlobalSettings(GlobalSettings set)
- {
- ObservableSettings res = new ObservableSettings();
- // BASIC
- res.TranslationLanguageCode = set.TranslationLanguageCode;
- res.AutoUpdate = set.AutoUpdate;
- res.TransferConfigAndAuthOnUpdate = set.TransferConfigAndAuthOnUpdate;
- res.DisableHumanWalking = set.DisableHumanWalking;
- res.Latitude = set.DefaultLatitude;
- res.Longitude = set.DefaultLongitude;
- res.MaxTravelDistanceInMeters = set.MaxTravelDistanceInMeters;
- res.WalkingSpeedInKilometerPerHour = set.WalkingSpeedInKilometerPerHour;
- res.MaxSpawnLocationOffset = set.MaxSpawnLocationOffset;
- res.DelayBetweenPlayerActions = set.DelayBetweenPlayerActions;
- res.DelayBetweenPokemonCatch = set.DelayBetweenPokemonCatch;
- // AUTH
- res.AuthType = set.Auth.AuthType;
- res.GoogleUsername = set.Auth.GoogleUsername;
- res.GooglePassword = set.Auth.GooglePassword;
- res.PtcUsername = set.Auth.PtcUsername;
- res.PtcPassword = set.Auth.PtcPassword;
- res.UseProxy = set.Auth.UseProxy;
- res.UseProxyHost = set.Auth.UseProxyHost;
- res.UseProxyPort = set.Auth.UseProxyPort;
- res.UseProxyAuthentication = set.Auth.UseProxyAuthentication;
- res.UseProxyUsername = set.Auth.UseProxyUsername;
- res.UseProxyPassword = set.Auth.UseProxyPassword;
- // DEVICE
- res.DevicePackageName = set.Auth.DevicePackageName;
- res.DeviceId = set.Auth.DeviceId;
- res.AndroidBoardName = set.Auth.AndroidBoardName;
- res.AndroidBootloader = set.Auth.AndroidBootloader;
- res.DeviceBrand = set.Auth.DeviceBrand;
- res.DeviceModel = set.Auth.DeviceModel;
- res.DeviceModelIdentifier = set.Auth.DeviceModelIdentifier;
- res.DeviceModelBoot = set.Auth.DeviceModelBoot;
- res.HardwareManufacturer = set.Auth.HardwareManufacturer;
- res.HardwareModel = set.Auth.HardwareModel;
- res.FirmwareBrand = set.Auth.FirmwareBrand;
- res.FirmwareTags = set.Auth.FirmwareTags;
- res.FirmwareType = set.Auth.FirmwareType;
- res.FirmwareFingerprint = set.Auth.FirmwareFingerprint;
- // INVENTORY
- res.VerboseRecycling = set.VerboseRecycling;
- res.RecycleInventoryAtUsagePercentage = set.RecycleInventoryAtUsagePercentage;
- res.TotalAmountOfPokeballsToKeep = set.TotalAmountOfPokeballsToKeep;
- res.TotalAmountOfPotionsToKeep = set.TotalAmountOfPotionsToKeep;
- res.TotalAmountOfRevivesToKeep = set.TotalAmountOfRevivesToKeep;
- res.TotalAmountOfBerriesToKeep = set.TotalAmountOfBerriesToKeep;
- res.UseEggIncubators = set.UseEggIncubators;
- res.UseLuckyEggConstantly = set.UseLuckyEggConstantly;
- res.UseLuckyEggsMinPokemonAmount = set.UseLuckyEggsMinPokemonAmount;
- res.UseLuckyEggsWhileEvolving = set.UseLuckyEggsWhileEvolving;
- res.UseIncenseConstantly = set.UseIncenseConstantly;
- // POKEMON
- res.RenamePokemon = set.RenamePokemon;
- res.RenameOnlyAboveIv = set.RenameOnlyAboveIv;
- res.RenameTemplate = set.RenameTemplate;
- res.AutomaticallyLevelUpPokemon = set.AutomaticallyLevelUpPokemon;
- res.AmountOfTimesToUpgradeLoop = set.AmountOfTimesToUpgradeLoop;
- res.GetMinStarDustForLevelUp = set.GetMinStarDustForLevelUp;
- res.LevelUpByCPorIv = set.LevelUpByCPorIv;
- res.UpgradePokemonCpMinimum = set.UpgradePokemonCpMinimum;
- res.UpgradePokemonIvMinimum = set.UpgradePokemonIvMinimum;
- res.UpgradePokemonMinimumStatsOperator = set.UpgradePokemonMinimumStatsOperator;
- res.EvolveAboveIvValue = set.EvolveAboveIvValue;
- res.EvolveAllPokemonAboveIv = set.EvolveAllPokemonAboveIv;
- res.EvolveAllPokemonWithEnoughCandy = set.EvolveAllPokemonWithEnoughCandy;
- res.EvolveKeptPokemonsAtStorageUsagePercentage = set.EvolveKeptPokemonsAtStorageUsagePercentage;
- res.KeepPokemonsThatCanEvolve = set.KeepPokemonsThatCanEvolve;
- res.AutoFavoritePokemon = set.AutoFavoritePokemon;
- res.FavoriteMinIvPercentage = set.FavoriteMinIvPercentage;
- // CAPTURE
- res.CatchPokemon = set.CatchPokemon;
- res.UsePokemonToNotCatchFilter = set.UsePokemonToNotCatchFilter;
- res.MaxPokeballsPerPokemon = set.MaxPokeballsPerPokemon;
- res.MaxBerriesToUsePerPokemon = set.MaxBerriesToUsePerPokemon;
- res.UseGreatBallAboveCp = set.UseGreatBallAboveCp;
- res.UseUltraBallAboveCp = set.UseUltraBallAboveCp;
- res.UseMasterBallAboveCp = set.UseMasterBallAboveCp;
- res.UseGreatBallAboveIv = set.UseGreatBallAboveIv;
- res.UseUltraBallAboveIv = set.UseUltraBallAboveIv;
- res.UseGreatBallBelowCatchProbability = set.UseGreatBallBelowCatchProbability;
- res.UseUltraBallBelowCatchProbability = set.UseUltraBallBelowCatchProbability;
- res.UseMasterBallBelowCatchProbability = set.UseMasterBallBelowCatchProbability;
- res.UseBerriesMinCp = set.UseBerriesMinCp;
- res.UseBerriesMinIv = set.UseBerriesMinIv;
- res.UseBerriesBelowCatchProbability = set.UseBerriesBelowCatchProbability;
- res.UseBerriesOperator = set.UseBerriesOperator;
- res.EnableHumanizedThrows = set.EnableHumanizedThrows;
- res.NiceThrowChance = set.NiceThrowChance;
- res.GreatThrowChance = set.GreatThrowChance;
- res.ExcellentThrowChance = set.ExcellentThrowChance;
- res.CurveThrowChance = set.CurveThrowChance;
- res.ForceGreatThrowOverIv = set.ForceGreatThrowOverIv;
- res.ForceExcellentThrowOverIv = set.ForceExcellentThrowOverIv;
- res.ForceGreatThrowOverCp = set.ForceGreatThrowOverCp;
- res.ForceExcellentThrowOverCp = set.ForceExcellentThrowOverCp;
- // TRANSFER
- // SNIPING
- // MISC
- return res;
- }
-
- /*
- MISC
-
- //gpx
- public bool UseGpxPathing;
- public string GpxFile;
-
- //websockets
- public bool UseWebsocket;
- public int WebSocketPort;
-
- //Telegram
- public bool UseTelegramAPI;
- public string TelegramAPIKey;
-
- //console options
- public bool StartupWelcomeDelay;
- public int AmountOfPokemonToDisplayOnStart;
- public bool DetailedCountsBeforeRecycling;
- public bool DumpPokemonStats;
-
-
-
- SNIPING
-
- //snipe
- public bool UseSnipeLocationServer;
- public string SnipeLocationServer;
- public int SnipeLocationServerPort;
- public bool GetSniperInfoFromPokezz;
- public bool GetOnlyVerifiedSniperInfoFromPokezz;
- public int MinPokeballsToSnipe;
- public int MinPokeballsWhileSnipe;
- public int MinDelayBetweenSnipes;
- public double SnipingScanOffset;
- public bool SnipeAtPokestops;
- public bool SnipeIgnoreUnknownIv;
- public bool UseTransferIvForSnipe;
- public bool SnipePokemonNotInPokedex;
-
- public bool UsePokemonSniperFilterOnly;
-
- CAPTURE
-
-
- TRANSFER
-
- //transfer
- public bool TransferWeakPokemon;
- public bool TransferDuplicatePokemon;
- public bool TransferDuplicatePokemonOnCapture;
-
- //keeping
- public int KeepMinCp;
- public float KeepMinIvPercentage;
- public int KeepMinLvl;
- public string KeepMinOperator;
- public bool UseKeepMinLvl;
- public bool PrioritizeIvOverCp;
- public int KeepMinDuplicatePokemon;
-
- */
-
- internal GlobalSettings GetGlobalSettingsObject()
- {
- GlobalSettings gs = new GlobalSettings();
- // BASIC
- gs.TranslationLanguageCode = TranslationLanguageCode;
- gs.AutoUpdate = AutoUpdate;
- gs.TransferConfigAndAuthOnUpdate = TransferConfigAndAuthOnUpdate;
- gs.DisableHumanWalking = DisableHumanWalking;
- gs.DefaultLatitude = DefaultLatitude;
- gs.DefaultLongitude = DefaultLongitude;
- gs.MaxTravelDistanceInMeters = MaxTravelDistanceInMeters;
- gs.WalkingSpeedInKilometerPerHour = WalkingSpeedInKilometerPerHour;
- gs.MaxSpawnLocationOffset = MaxSpawnLocationOffset;
- gs.DelayBetweenPlayerActions = DelayBetweenPlayerActions;
- gs.DelayBetweenPokemonCatch = DelayBetweenPokemonCatch;
- // AUTH
- gs.Auth.AuthType = AuthType;
- gs.Auth.GoogleUsername = GoogleUsername;
- gs.Auth.GooglePassword = GooglePassword;
- gs.Auth.PtcUsername = PtcUsername;
- gs.Auth.PtcPassword = PtcPassword;
- gs.Auth.UseProxy = UseProxy;
- gs.Auth.UseProxyHost = UseProxyHost;
- gs.Auth.UseProxyPort = UseProxyPort;
- gs.Auth.UseProxyAuthentication = UseProxyAuthentication;
- gs.Auth.UseProxyUsername = UseProxyUsername;
- gs.Auth.UseProxyPassword = UseProxyPassword;
- // DEVICE
- gs.Auth.DevicePackageName = DevicePackageName;
- gs.Auth.DeviceId = DeviceId;
- gs.Auth.AndroidBoardName = AndroidBoardName;
- gs.Auth.AndroidBootloader = AndroidBootloader;
- gs.Auth.DeviceBrand = DeviceBrand;
- gs.Auth.DeviceModel = DeviceModel;
- gs.Auth.DeviceModelIdentifier = DeviceModelIdentifier;
- gs.Auth.DeviceModelBoot = DeviceModelBoot;
- gs.Auth.HardwareManufacturer = HardwareManufacturer;
- gs.Auth.HardwareModel = HardwareModel;
- gs.Auth.FirmwareBrand = FirmwareBrand;
- gs.Auth.FirmwareTags = FirmwareTags;
- gs.Auth.FirmwareType = FirmwareType;
- gs.Auth.FirmwareFingerprint = FirmwareFingerprint;
- // INVENTORY
- gs.VerboseRecycling = VerboseRecycling;
- gs.RecycleInventoryAtUsagePercentage = RecycleInventoryAtUsagePercentage;
- gs.TotalAmountOfPokeballsToKeep = TotalAmountOfPokeballsToKeep;
- gs.TotalAmountOfPotionsToKeep = TotalAmountOfPotionsToKeep;
- gs.TotalAmountOfRevivesToKeep = TotalAmountOfRevivesToKeep;
- gs.TotalAmountOfBerriesToKeep = TotalAmountOfBerriesToKeep;
- gs.UseEggIncubators = UseEggIncubators;
- gs.UseLuckyEggConstantly = UseLuckyEggConstantly;
- gs.UseLuckyEggsMinPokemonAmount = UseLuckyEggsMinPokemonAmount;
- gs.UseLuckyEggsWhileEvolving = UseLuckyEggsWhileEvolving;
- gs.UseIncenseConstantly = UseIncenseConstantly;
- // POKEMON
- gs.RenamePokemon = RenamePokemon;
- gs.RenameOnlyAboveIv = RenameOnlyAboveIv;
- gs.RenameTemplate = RenameTemplate;
- gs.AutomaticallyLevelUpPokemon = AutomaticallyLevelUpPokemon;
- gs.AmountOfTimesToUpgradeLoop = AmountOfTimesToUpgradeLoop;
- gs.GetMinStarDustForLevelUp = GetMinStarDustForLevelUp;
- gs.LevelUpByCPorIv = LevelUpByCPorIv;
- gs.UpgradePokemonCpMinimum = UpgradePokemonCpMinimum;
- gs.UpgradePokemonIvMinimum = UpgradePokemonIvMinimum;
- gs.UpgradePokemonMinimumStatsOperator = UpgradePokemonMinimumStatsOperator;
- gs.EvolveAboveIvValue = EvolveAboveIvValue;
- gs.EvolveAllPokemonAboveIv = EvolveAllPokemonAboveIv;
- gs.EvolveAllPokemonWithEnoughCandy = EvolveAllPokemonWithEnoughCandy;
- gs.EvolveKeptPokemonsAtStorageUsagePercentage = EvolveKeptPokemonsAtStorageUsagePercentage;
- gs.KeepPokemonsThatCanEvolve = KeepPokemonsThatCanEvolve;
- gs.AutoFavoritePokemon = AutoFavoritePokemon;
- gs.FavoriteMinIvPercentage = FavoriteMinIvPercentage;
- // CAPTURE
- gs.CatchPokemon = CatchPokemon;
- gs.UsePokemonToNotCatchFilter = UsePokemonToNotCatchFilter;
- gs.MaxPokeballsPerPokemon = MaxPokeballsPerPokemon;
- gs.MaxBerriesToUsePerPokemon = MaxBerriesToUsePerPokemon;
- gs.UseGreatBallAboveCp = UseGreatBallAboveCp;
- gs.UseUltraBallAboveCp = UseUltraBallAboveCp;
- gs.UseMasterBallAboveCp = UseMasterBallAboveCp;
- gs.UseGreatBallAboveIv = UseGreatBallAboveIv;
- gs.UseUltraBallAboveIv = UseUltraBallAboveIv;
- gs.UseGreatBallBelowCatchProbability = UseGreatBallBelowCatchProbability;
- gs.UseUltraBallBelowCatchProbability = UseUltraBallBelowCatchProbability;
- gs.UseMasterBallBelowCatchProbability = UseMasterBallBelowCatchProbability;
- gs.UseBerriesMinCp = UseBerriesMinCp;
- gs.UseBerriesMinIv = UseBerriesMinIv;
- gs.UseBerriesBelowCatchProbability = UseBerriesBelowCatchProbability;
- gs.UseBerriesOperator = UseBerriesOperator;
- gs.EnableHumanizedThrows = EnableHumanizedThrows;
- gs.NiceThrowChance = NiceThrowChance;
- gs.GreatThrowChance = GreatThrowChance;
- gs.ExcellentThrowChance = ExcellentThrowChance;
- gs.CurveThrowChance = CurveThrowChance;
- gs.ForceGreatThrowOverIv = ForceGreatThrowOverIv;
- gs.ForceExcellentThrowOverIv = ForceExcellentThrowOverIv;
- gs.ForceGreatThrowOverCp = ForceGreatThrowOverCp;
- gs.ForceExcellentThrowOverCp = ForceExcellentThrowOverCp;
- // TRANSFER
- // SNIPING
- // MISC
- return gs;
- }
-
- }
-
-}
diff --git a/PoGo.NecroBot.ConfigUI/PoGo.NecroBot.ConfigUI.csproj b/PoGo.NecroBot.ConfigUI/PoGo.NecroBot.ConfigUI.csproj
deleted file mode 100644
index 6b9a4631..0000000
--- a/PoGo.NecroBot.ConfigUI/PoGo.NecroBot.ConfigUI.csproj
+++ /dev/null
@@ -1,159 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
- <PropertyGroup>
- <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
- <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
- <ProjectGuid>{E75D21C4-8E71-4A69-9B80-3F9A7368D2B3}</ProjectGuid>
- <OutputType>WinExe</OutputType>
- <AppDesignerFolder>Properties</AppDesignerFolder>
- <RootNamespace>PoGo.NecroBot.ConfigUI</RootNamespace>
- <AssemblyName>NecroConfig</AssemblyName>
- <TargetFrameworkVersion>v4.5.2</TargetFrameworkVersion>
- <FileAlignment>512</FileAlignment>
- <ProjectTypeGuids>{60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
- <WarningLevel>4</WarningLevel>
- <AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
- <PublishUrl>publish\</PublishUrl>
- <Install>true</Install>
- <InstallFrom>Disk</InstallFrom>
- <UpdateEnabled>false</UpdateEnabled>
- <UpdateMode>Foreground</UpdateMode>
- <UpdateInterval>7</UpdateInterval>
- <UpdateIntervalUnits>Days</UpdateIntervalUnits>
- <UpdatePeriodically>false</UpdatePeriodically>
- <UpdateRequired>false</UpdateRequired>
- <MapFileExtensions>true</MapFileExtensions>
- <ApplicationRevision>0</ApplicationRevision>
- <ApplicationVersion>1.0.0.%2a</ApplicationVersion>
- <IsWebBootstrapper>false</IsWebBootstrapper>
- <UseApplicationTrust>false</UseApplicationTrust>
- <BootstrapperEnabled>true</BootstrapperEnabled>
- </PropertyGroup>
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
- <PlatformTarget>AnyCPU</PlatformTarget>
- <DebugSymbols>true</DebugSymbols>
- <DebugType>full</DebugType>
- <Optimize>false</Optimize>
- <OutputPath>bin\Debug\</OutputPath>
- <DefineConstants>DEBUG;TRACE</DefineConstants>
- <ErrorReport>prompt</ErrorReport>
- <WarningLevel>4</WarningLevel>
- </PropertyGroup>
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
- <PlatformTarget>AnyCPU</PlatformTarget>
- <DebugType>pdbonly</DebugType>
- <Optimize>true</Optimize>
- <OutputPath>bin\Release\</OutputPath>
- <DefineConstants>TRACE</DefineConstants>
- <ErrorReport>prompt</ErrorReport>
- <WarningLevel>4</WarningLevel>
- </PropertyGroup>
- <PropertyGroup>
- <StartupObject>PoGo.NecroBot.ConfigUI.App</StartupObject>
- </PropertyGroup>
- <PropertyGroup>
- <ApplicationIcon>Icon.ico</ApplicationIcon>
- </PropertyGroup>
- <ItemGroup>
- <Reference Include="System" />
- <Reference Include="System.Data" />
- <Reference Include="System.Xml" />
- <Reference Include="Microsoft.CSharp" />
- <Reference Include="System.Core" />
- <Reference Include="System.Xml.Linq" />
- <Reference Include="System.Data.DataSetExtensions" />
- <Reference Include="System.Net.Http" />
- <Reference Include="System.Xaml">
- <RequiredTargetFramework>4.0</RequiredTargetFramework>
- </Reference>
- <Reference Include="WindowsBase" />
- <Reference Include="PresentationCore" />
- <Reference Include="PresentationFramework" />
- </ItemGroup>
- <ItemGroup>
- <ApplicationDefinition Include="App.xaml">
- <Generator>MSBuild:Compile</Generator>
- <SubType>Designer</SubType>
- </ApplicationDefinition>
- <Compile Include="Utils\Converters.cs" />
- <Compile Include="Utils\MarkupExtensions.cs" />
- <Page Include="MainWindow.xaml">
- <Generator>MSBuild:Compile</Generator>
- <SubType>Designer</SubType>
- </Page>
- <Compile Include="App.xaml.cs">
- <DependentUpon>App.xaml</DependentUpon>
- <SubType>Code</SubType>
- </Compile>
- <Compile Include="MainWindow.xaml.cs">
- <DependentUpon>MainWindow.xaml</DependentUpon>
- <SubType>Code</SubType>
- </Compile>
- <Page Include="Resources\en-us.xaml">
- <SubType>Designer</SubType>
- <Generator>MSBuild:Compile</Generator>
- </Page>
- <Page Include="Resources\Styles.xaml">
- <SubType>Designer</SubType>
- <Generator>MSBuild:Compile</Generator>
- </Page>
- </ItemGroup>
- <ItemGroup>
- <Compile Include="Models\ObservableSettings.cs" />
- <Compile Include="Properties\AssemblyInfo.cs">
- <SubType>Code</SubType>
- </Compile>
- <Compile Include="Properties\Resources.Designer.cs">
- <AutoGen>True</AutoGen>
- <DesignTime>True</DesignTime>
- <DependentUpon>Resources.resx</DependentUpon>
- </Compile>
- <Compile Include="Properties\Settings.Designer.cs">
- <AutoGen>True</AutoGen>
- <DependentUpon>Settings.settings</DependentUpon>
- <DesignTimeSharedInput>True</DesignTimeSharedInput>
- </Compile>
- <EmbeddedResource Include="Properties\Resources.resx">
- <Generator>ResXFileCodeGenerator</Generator>
- <LastGenOutput>Resources.Designer.cs</LastGenOutput>
- </EmbeddedResource>
- <None Include="Properties\Settings.settings">
- <Generator>SettingsSingleFileGenerator</Generator>
- <LastGenOutput>Settings.Designer.cs</LastGenOutput>
- </None>
- <AppDesigner Include="Properties\" />
- </ItemGroup>
- <ItemGroup>
- <None Include="App.config" />
- </ItemGroup>
- <ItemGroup>
- <Resource Include="Icon.ico" />
- </ItemGroup>
- <ItemGroup>
- <BootstrapperPackage Include=".NETFramework,Version=v4.5.2">
- <Visible>False</Visible>
- <ProductName>Microsoft .NET Framework 4.5.2 %28x86 and x64%29</ProductName>
- <Install>true</Install>
- </BootstrapperPackage>
- <BootstrapperPackage Include="Microsoft.Net.Framework.3.5.SP1">
- <Visible>False</Visible>
- <ProductName>.NET Framework 3.5 SP1</ProductName>
- <Install>false</Install>
- </BootstrapperPackage>
- </ItemGroup>
- <ItemGroup>
- <ProjectReference Include="..\PokemonGo.RocketAPI\PokemonGo.RocketAPI.csproj">
- <Project>{05D2DA44-1B8E-4CF7-94ED-4D52451CD095}</Project>
- <Name>PokemonGo.RocketAPI</Name>
- </ProjectReference>
- </ItemGroup>
- <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
- <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
- Other similar extension points exist, see Microsoft.Common.targets.
- <Target Name="BeforeBuild">
- </Target>
- <Target Name="AfterBuild">
- </Target>
- -->
-</Project>
\ No newline at end of file
diff --git a/PoGo.NecroBot.ConfigUI/Properties/AssemblyInfo.cs b/PoGo.NecroBot.ConfigUI/Properties/AssemblyInfo.cs
deleted file mode 100644
index e38a17d..0000000
--- a/PoGo.NecroBot.ConfigUI/Properties/AssemblyInfo.cs
+++ /dev/null
@@ -1,55 +0,0 @@
-using System.Reflection;
-using System.Resources;
-using System.Runtime.CompilerServices;
-using System.Runtime.InteropServices;
-using System.Windows;
-
-// General Information about an assembly is controlled through the following
-// set of attributes. Change these attribute values to modify the information
-// associated with an assembly.
-[assembly: AssemblyTitle("PoGo.NecroBot.ConfigUI")]
-[assembly: AssemblyDescription("")]
-[assembly: AssemblyConfiguration("")]
-[assembly: AssemblyCompany("")]
-[assembly: AssemblyProduct("PoGo.NecroBot.ConfigUI")]
-[assembly: AssemblyCopyright("")]
-[assembly: AssemblyTrademark("")]
-[assembly: AssemblyCulture("")]
-
-// Setting ComVisible to false makes the types in this assembly not visible
-// to COM components. If you need to access a type in this assembly from
-// COM, set the ComVisible attribute to true on that type.
-[assembly: ComVisible(false)]
-
-//In order to begin building localizable applications, set
-//<UICulture>CultureYouAreCodingWith</UICulture> in your .csproj file
-//inside a <PropertyGroup>. For example, if you are using US english
-//in your source files, set the <UICulture> to en-US. Then uncomment
-//the NeutralResourceLanguage attribute below. Update the "en-US" in
-//the line below to match the UICulture setting in the project file.
-
-//[assembly: NeutralResourcesLanguage("en-US", UltimateResourceFallbackLocation.Satellite)]
-
-
-[assembly: ThemeInfo(
- ResourceDictionaryLocation.None, //where theme specific resource dictionaries are located
- //(used if a resource is not found in the page,
- // or application resource dictionaries)
- ResourceDictionaryLocation.SourceAssembly //where the generic resource dictionary is located
- //(used if a resource is not found in the page,
- // app, or any theme specific resource dictionaries)
-)]
-
-
-// Version information for an assembly consists of the following four values:
-//
-// Major Version
-// Minor Version
-// Build Number
-// Revision
-//
-// You can specify all the values or you can default the Build and Revision Numbers
-// by using the '*' as shown below:
-// [assembly: AssemblyVersion("1.0.*")]
-[assembly: AssemblyVersion("0.1.0.0")]
-[assembly: AssemblyFileVersion("0.1.0.0")]
diff --git a/PoGo.NecroBot.ConfigUI/Properties/Resources.Designer.cs b/PoGo.NecroBot.ConfigUI/Properties/Resources.Designer.cs
deleted file mode 100644
index a02b626..0000000
--- a/PoGo.NecroBot.ConfigUI/Properties/Resources.Designer.cs
+++ /dev/null
@@ -1,71 +0,0 @@
-//------------------------------------------------------------------------------
-// <auto-generated>
-// This code was generated by a tool.
-// Runtime Version:4.0.30319.42000
-//
-// Changes to this file may cause incorrect behavior and will be lost if
-// the code is regenerated.
-// </auto-generated>
-//------------------------------------------------------------------------------
-
-namespace PoGo.NecroBot.ConfigUI.Properties
-{
-
-
- /// <summary>
- /// A strongly-typed resource class, for looking up localized strings, etc.
- /// </summary>
- // This class was auto-generated by the StronglyTypedResourceBuilder
- // class via a tool like ResGen or Visual Studio.
- // To add or remove a member, edit your .ResX file then rerun ResGen
- // with the /str option, or rebuild your VS project.
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
- internal class Resources
- {
-
- private static global::System.Resources.ResourceManager resourceMan;
-
- private static global::System.Globalization.CultureInfo resourceCulture;
-
- [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
- internal Resources()
- {
- }
-
- /// <summary>
- /// Returns the cached ResourceManager instance used by this class.
- /// </summary>
- [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
- internal static global::System.Resources.ResourceManager ResourceManager
- {
- get
- {
- if ((resourceMan == null))
- {
- global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("PoGo.NecroBot.ConfigUI.Properties.Resources", typeof(Resources).Assembly);
- resourceMan = temp;
- }
- return resourceMan;
- }
- }
-
- /// <summary>
- /// Overrides the current thread's CurrentUICulture property for all
- /// resource lookups using this strongly typed resource class.
- /// </summary>
- [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
- internal static global::System.Globalization.CultureInfo Culture
- {
- get
- {
- return resourceCulture;
- }
- set
- {
- resourceCulture = value;
- }
- }
- }
-}
diff --git a/PoGo.NecroBot.ConfigUI/Properties/Resources.resx b/PoGo.NecroBot.ConfigUI/Properties/Resources.resx
deleted file mode 100644
index af7dbeb..0000000
--- a/PoGo.NecroBot.ConfigUI/Properties/Resources.resx
+++ /dev/null
@@ -1,117 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<root>
- <!--
- Microsoft ResX Schema
-
- Version 2.0
-
- The primary goals of this format is to allow a simple XML format
- that is mostly human readable. The generation and parsing of the
- various data types are done through the TypeConverter classes
- associated with the data types.
-
- Example:
-
- ... ado.net/XML headers & schema ...
- <resheader name="resmimetype">text/microsoft-resx</resheader>
- <resheader name="version">2.0</resheader>
- <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
- <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
- <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
- <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
- <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
- <value>[base64 mime encoded serialized .NET Framework object]</value>
- </data>
- <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
- <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
- <comment>This is a comment</comment>
- </data>
-
- There are any number of "resheader" rows that contain simple
- name/value pairs.
-
- Each data row contains a name, and value. The row also contains a
- type or mimetype. Type corresponds to a .NET class that support
- text/value conversion through the TypeConverter architecture.
- Classes that don't support this are serialized and stored with the
- mimetype set.
-
- The mimetype is used for serialized objects, and tells the
- ResXResourceReader how to depersist the object. This is currently not
- extensible. For a given mimetype the value must be set accordingly:
-
- Note - application/x-microsoft.net.object.binary.base64 is the format
- that the ResXResourceWriter will generate, however the reader can
- read any of the formats listed below.
-
- mimetype: application/x-microsoft.net.object.binary.base64
- value : The object must be serialized with
- : System.Serialization.Formatters.Binary.BinaryFormatter
- : and then encoded with base64 encoding.
-
- mimetype: application/x-microsoft.net.object.soap.base64
- value : The object must be serialized with
- : System.Runtime.Serialization.Formatters.Soap.SoapFormatter
- : and then encoded with base64 encoding.
-
- mimetype: application/x-microsoft.net.object.bytearray.base64
- value : The object must be serialized into a byte array
- : using a System.ComponentModel.TypeConverter
- : and then encoded with base64 encoding.
- -->
- <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
- <xsd:element name="root" msdata:IsDataSet="true">
- <xsd:complexType>
- <xsd:choice maxOccurs="unbounded">
- <xsd:element name="metadata">
- <xsd:complexType>
- <xsd:sequence>
- <xsd:element name="value" type="xsd:string" minOccurs="0" />
- </xsd:sequence>
- <xsd:attribute name="name" type="xsd:string" />
- <xsd:attribute name="type" type="xsd:string" />
- <xsd:attribute name="mimetype" type="xsd:string" />
- </xsd:complexType>
- </xsd:element>
- <xsd:element name="assembly">
- <xsd:complexType>
- <xsd:attribute name="alias" type="xsd:string" />
- <xsd:attribute name="name" type="xsd:string" />
- </xsd:complexType>
- </xsd:element>
- <xsd:element name="data">
- <xsd:complexType>
- <xsd:sequence>
- <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
- <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
- </xsd:sequence>
- <xsd:attribute name="name" type="xsd:string" msdata:Ordinal="1" />
- <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
- <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
- </xsd:complexType>
- </xsd:element>
- <xsd:element name="resheader">
- <xsd:complexType>
- <xsd:sequence>
- <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
- </xsd:sequence>
- <xsd:attribute name="name" type="xsd:string" use="required" />
- </xsd:complexType>
- </xsd:element>
- </xsd:choice>
- </xsd:complexType>
- </xsd:element>
- </xsd:schema>
- <resheader name="resmimetype">
- <value>text/microsoft-resx</value>
- </resheader>
- <resheader name="version">
- <value>2.0</value>
- </resheader>
- <resheader name="reader">
- <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
- </resheader>
- <resheader name="writer">
- <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
- </resheader>
-</root>
\ No newline at end of file
diff --git a/PoGo.NecroBot.ConfigUI/Properties/Settings.Designer.cs b/PoGo.NecroBot.ConfigUI/Properties/Settings.Designer.cs
deleted file mode 100644
index 58516ec..0000000
--- a/PoGo.NecroBot.ConfigUI/Properties/Settings.Designer.cs
+++ /dev/null
@@ -1,30 +0,0 @@
-//------------------------------------------------------------------------------
-// <auto-generated>
-// This code was generated by a tool.
-// Runtime Version:4.0.30319.42000
-//
-// Changes to this file may cause incorrect behavior and will be lost if
-// the code is regenerated.
-// </auto-generated>
-//------------------------------------------------------------------------------
-
-namespace PoGo.NecroBot.ConfigUI.Properties
-{
-
-
- [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.0.0")]
- internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase
- {
-
- private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
-
- public static Settings Default
- {
- get
- {
- return defaultInstance;
- }
- }
- }
-}
diff --git a/PoGo.NecroBot.ConfigUI/Properties/Settings.settings b/PoGo.NecroBot.ConfigUI/Properties/Settings.settings
deleted file mode 100644
index 033d7a5..0000000
--- a/PoGo.NecroBot.ConfigUI/Properties/Settings.settings
+++ /dev/null
@@ -1,7 +0,0 @@
-<?xml version='1.0' encoding='utf-8'?>
-<SettingsFile xmlns="uri:settings" CurrentProfile="(Default)">
- <Profiles>
- <Profile Name="(Default)" />
- </Profiles>
- <Settings />
-</SettingsFile>
\ No newline at end of file
diff --git a/PoGo.NecroBot.ConfigUI/Resources/Styles.xaml b/PoGo.NecroBot.ConfigUI/Resources/Styles.xaml
deleted file mode 100644
index f1a6ce6..0000000
--- a/PoGo.NecroBot.ConfigUI/Resources/Styles.xaml
+++ /dev/null
@@ -1,48 +0,0 @@
-<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:local="clr-namespace:PoGo.NecroBot.ConfigUI.Resources"
- xmlns:util="clr-namespace:PoGo.NecroBot.ConfigUI.Utils">
-
- <util:EnumToArrayConverter x:Key="EnumToArrayConv" />
- <util:VisibilityConverter x:Key="VisConv" />
- <util:VisibilityReversedConverter x:Key="VisRevConv" />
-
- <Style TargetType="CheckBox">
- <Setter Property="FontWeight" Value="Bold" />
- <Setter Property="Margin" Value="5,2,0,2" />
- </Style>
-
- <Style x:Key="LineItemPanel" TargetType="StackPanel">
- <Setter Property="Margin" Value="0,2" />
- </Style>
-
- <Style x:Key="LineItemLabel" TargetType="Label">
- <Setter Property="FontWeight" Value="Bold" />
- <Setter Property="Width" Value="240" />
- <Setter Property="HorizontalAlignment" Value="Left" />
- <Setter Property="VerticalAlignment" Value="Center" />
- </Style>
-
- <Style x:Key="LineItemTextBoxSm" TargetType="TextBox">
- <Setter Property="FontWeight" Value="Normal" />
- <Setter Property="Width" Value="60" />
- <Setter Property="HorizontalAlignment" Value="Left" />
- <Setter Property="VerticalAlignment" Value="Center" />
- <Setter Property="Padding" Value="3,2,3,2" />
- </Style>
- <Style x:Key="LineItemTextBoxMd" TargetType="TextBox">
- <Setter Property="FontWeight" Value="Normal" />
- <Setter Property="Width" Value="120" />
- <Setter Property="HorizontalAlignment" Value="Left" />
- <Setter Property="VerticalAlignment" Value="Center" />
- <Setter Property="Padding" Value="3,2,3,2" />
- </Style>
- <Style x:Key="LineItemTextBoxLg" TargetType="TextBox">
- <Setter Property="FontWeight" Value="Normal" />
- <Setter Property="Width" Value="200" />
- <Setter Property="HorizontalAlignment" Value="Left" />
- <Setter Property="VerticalAlignment" Value="Center" />
- <Setter Property="Padding" Value="3,2,3,2" />
- </Style>
-
-</ResourceDictionary>
\ No newline at end of file
diff --git a/PoGo.NecroBot.ConfigUI/Resources/en-us.xaml b/PoGo.NecroBot.ConfigUI/Resources/en-us.xaml
deleted file mode 100644
index a1c6429..0000000
--- a/PoGo.NecroBot.ConfigUI/Resources/en-us.xaml
+++ /dev/null
@@ -1,18 +0,0 @@
-<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:local="clr-namespace:PoGo.NecroBot.ConfigUI.Resources"
- xmlns:sys="clr-namespace:System;assembly=mscorlib">
-
- <sys:String x:Key="AppTitle">NecroBot Config Tool</sys:String>
- <!--<sys:String x:Key=""></sys:String>
- <sys:String x:Key=""></sys:String>
- <sys:String x:Key=""></sys:String>
- <sys:String x:Key=""></sys:String>
- <sys:String x:Key=""></sys:String>
- <sys:String x:Key=""></sys:String>
- <sys:String x:Key=""></sys:String>
- <sys:String x:Key=""></sys:String>
- <sys:String x:Key=""></sys:String>
- <sys:String x:Key=""></sys:String>-->
-
-</ResourceDictionary>
\ No newline at end of file
diff --git a/PoGo.NecroBot.ConfigUI/Utils/Converters.cs b/PoGo.NecroBot.ConfigUI/Utils/Converters.cs
deleted file mode 100644
index 8c310fb..0000000
--- a/PoGo.NecroBot.ConfigUI/Utils/Converters.cs
+++ /dev/null
@@ -1,56 +0,0 @@
-using System;
-using System.Windows;
-using System.Windows.Data;
-
-namespace PoGo.NecroBot.ConfigUI.Utils
-{
-
- public class EnumToArrayConverter : IValueConverter
- {
- public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
- {
- return Enum.GetValues(value as Type);
- }
- public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
- {
- return null; // I don't care about this
- }
- }
-
- public class VisibilityConverter : IValueConverter
- {
- public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
- {
- bool hide = (value is string) ? string.IsNullOrEmpty(value as string)
- : (value is bool) ? !(bool)value
- : (value is int) ? (int)value == 0
- : (value is uint) ? (uint)value == 0
- : (value is double) ? (double)value == 0.0
- : null == value;
- return hide ? Visibility.Collapsed : Visibility.Visible;
- }
- public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
- {
- return null;
- }
- }
-
- public class VisibilityReversedConverter : IValueConverter
- {
- public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
- {
- bool show = (value is string) ? string.IsNullOrEmpty(value as string)
- : (value is bool) ? !(bool)value
- : (value is int) ? (int)value == 0
- : (value is uint) ? (uint)value == 0
- : (value is double) ? (double)value == 0.0
- : null == value;
- return show ? Visibility.Visible : Visibility.Collapsed;
- }
- public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
- {
- return null;
- }
- }
-
-}
diff --git a/PoGo.NecroBot.ConfigUI/Utils/MarkupExtensions.cs b/PoGo.NecroBot.ConfigUI/Utils/MarkupExtensions.cs
deleted file mode 100644
index d24073e..0000000
--- a/PoGo.NecroBot.ConfigUI/Utils/MarkupExtensions.cs
+++ /dev/null
@@ -1,24 +0,0 @@
-using System;
-using System.Windows.Markup;
-
-namespace PoGo.NecroBot.ConfigUI.Utils
-{
-
- public class EnumValuesExtension : MarkupExtension
- {
- private readonly Type _enumType;
-
- public EnumValuesExtension(Type enumType)
- {
- if (enumType == null) throw new ArgumentNullException("enumType");
- if (!enumType.IsEnum) throw new ArgumentException("Argument enumType must derive from type Enum.");
- _enumType = enumType;
- }
-
- public override object ProvideValue(IServiceProvider serviceProvider)
- {
- return Enum.GetValues(_enumType);
- }
- }
-
-}
diff --git a/PokemonGo.RocketBot.Window/Forms/MainForm.cs b/PokemonGo.RocketBot.Window/Forms/MainForm.cs
index 261a30a..84bc145 100644
--- a/PokemonGo.RocketBot.Window/Forms/MainForm.cs
+++ b/PokemonGo.RocketBot.Window/Forms/MainForm.cs
@@ -67,7 +67,7 @@ namespace PokemonGo.RocketBot.Window.Forms
private void MainForm_Load(object sender, EventArgs e)
{
- Text = @"[RocketBot] " + Assembly.GetExecutingAssembly().GetName().Version;
+ Text = @"RocketBot v" + Assembly.GetExecutingAssembly().GetName().Version;
InitializeBot();
InitializePokemonForm();
InitializeMap();
You may download the files in Public Git.