From 6bf5cc9c3ef89d52c7f24c6d3f4f0f49884d1928 Mon Sep 17 00:00:00 2001 From: SebastienGllmt Date: Sat, 4 Oct 2014 01:29:09 -0700 Subject: [PATCH 01/25] Changed elo to ranking Now shows player division/league --- LoLNotes/Gui/Controls/PlayerControl.cs | 6 +- .../Gui/Controls/StatsControl.Designer.cs | 35 +++---- LoLNotes/Gui/Controls/StatsControl.cs | 26 ++++- LoLNotes/Gui/LoadDataEnum.cs | 3 +- LoLNotes/Gui/MainForm.cs | 55 +++++------ LoLNotes/Gui/PlayerCache.cs | 1 + LoLNotes/LoLNotes.csproj | 3 + LoLNotes/Messages/Commands/PlayerCommands.cs | 12 ++- LoLNotes/Messages/Statistics/LeagueItemDTO.cs | 95 +++++++++++++++++++ LoLNotes/Messages/Statistics/LeagueListDTO.cs | 60 ++++++++++++ .../Messages/Statistics/SummonerLeaguesDTO.cs | 23 +++++ 11 files changed, 259 insertions(+), 60 deletions(-) create mode 100644 LoLNotes/Messages/Statistics/LeagueItemDTO.cs create mode 100644 LoLNotes/Messages/Statistics/LeagueListDTO.cs create mode 100644 LoLNotes/Messages/Statistics/SummonerLeaguesDTO.cs diff --git a/LoLNotes/Gui/Controls/PlayerControl.cs b/LoLNotes/Gui/Controls/PlayerControl.cs index 56efd03..6322f02 100644 --- a/LoLNotes/Gui/Controls/PlayerControl.cs +++ b/LoLNotes/Gui/Controls/PlayerControl.cs @@ -222,14 +222,14 @@ public void SetParticipant(Participant part) SetTitle(part); } - public void SetStats(PublicSummoner summoner, PlayerLifetimeStats stats) + public void SetStats(PublicSummoner summoner, SummonerLeaguesDTO leagueInfo, PlayerLifetimeStats stats) { if (summoner == null || stats == null) return; if (InvokeRequired) { - Invoke(new Action(SetStats), summoner, stats); + Invoke(new Action(SetStats), summoner, leagueInfo, stats); return; } @@ -239,7 +239,7 @@ public void SetStats(PublicSummoner summoner, PlayerLifetimeStats stats) foreach (var stat in stats.PlayerStatSummaries.PlayerStatSummarySet) { var sc = new StatsControl { Dock = DockStyle.Fill, Tag = "Stats" }; - sc.SetStatSummary(stat); + sc.SetStatSummary(stat, leagueInfo); var tab = new TabPage(MinifyStatType(stat.PlayerStatSummaryType)) { diff --git a/LoLNotes/Gui/Controls/StatsControl.Designer.cs b/LoLNotes/Gui/Controls/StatsControl.Designer.cs index ea5caa7..8082f4e 100644 --- a/LoLNotes/Gui/Controls/StatsControl.Designer.cs +++ b/LoLNotes/Gui/Controls/StatsControl.Designer.cs @@ -30,8 +30,7 @@ private void InitializeComponent() { this.flowLayoutPanel1 = new System.Windows.Forms.FlowLayoutPanel(); this.GameType = new System.Windows.Forms.Label(); - this.MaxElo = new System.Windows.Forms.Label(); - this.Elo = new System.Windows.Forms.Label(); + this.Ranking = new System.Windows.Forms.Label(); this.Wins = new System.Windows.Forms.Label(); this.Losses = new System.Windows.Forms.Label(); this.Leaves = new System.Windows.Forms.Label(); @@ -42,8 +41,7 @@ private void InitializeComponent() // this.flowLayoutPanel1.BackColor = System.Drawing.Color.Transparent; this.flowLayoutPanel1.Controls.Add(this.GameType); - this.flowLayoutPanel1.Controls.Add(this.MaxElo); - this.flowLayoutPanel1.Controls.Add(this.Elo); + this.flowLayoutPanel1.Controls.Add(this.Ranking); this.flowLayoutPanel1.Controls.Add(this.Wins); this.flowLayoutPanel1.Controls.Add(this.Losses); this.flowLayoutPanel1.Controls.Add(this.Leaves); @@ -64,25 +62,15 @@ private void InitializeComponent() this.GameType.TabIndex = 5; this.GameType.Text = "Type: "; // - // MaxElo + // Ranking // - this.MaxElo.AutoSize = true; - this.MaxElo.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.MaxElo.Location = new System.Drawing.Point(3, 13); - this.MaxElo.Name = "MaxElo"; - this.MaxElo.Size = new System.Drawing.Size(60, 13); - this.MaxElo.TabIndex = 0; - this.MaxElo.Text = "Max Elo: "; - // - // Elo - // - this.Elo.AutoSize = true; - this.Elo.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.Elo.Location = new System.Drawing.Point(3, 26); - this.Elo.Name = "Elo"; - this.Elo.Size = new System.Drawing.Size(33, 13); - this.Elo.TabIndex = 1; - this.Elo.Text = "Elo: "; + this.Ranking.AutoSize = true; + this.Ranking.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.Ranking.Location = new System.Drawing.Point(3, 26); + this.Ranking.Name = "Ranking"; + this.Ranking.Size = new System.Drawing.Size(33, 13); + this.Ranking.TabIndex = 1; + this.Ranking.Text = "Ranking: "; // // Wins // @@ -131,8 +119,7 @@ private void InitializeComponent() #endregion private System.Windows.Forms.FlowLayoutPanel flowLayoutPanel1; - private System.Windows.Forms.Label MaxElo; - private System.Windows.Forms.Label Elo; + private System.Windows.Forms.Label Ranking; private System.Windows.Forms.Label Wins; private System.Windows.Forms.Label Losses; private System.Windows.Forms.Label Leaves; diff --git a/LoLNotes/Gui/Controls/StatsControl.cs b/LoLNotes/Gui/Controls/StatsControl.cs index f91e9dd..d2fe4a6 100644 --- a/LoLNotes/Gui/Controls/StatsControl.cs +++ b/LoLNotes/Gui/Controls/StatsControl.cs @@ -28,6 +28,7 @@ THE SOFTWARE. using System.Text; using System.Windows.Forms; using LoLNotes.Messages.Statistics; +using LoLNotes.Messages.Summoner; namespace LoLNotes.Gui.Controls { @@ -42,13 +43,32 @@ public StatsControl() Prepends.Add(control, control.Text); } - public void SetStatSummary(PlayerStatSummary stat) + public void SetStatSummary(PlayerStatSummary stat, SummonerLeaguesDTO leagueInfo) { + string league = "Unranked"; + var nameMap = new Dictionary() + { + {"RankedSolo5x5", "RANKED_SOLO_5x5"}, + {"RankedTeam5x5", "RANKED_TEAM_5x5"}, + {"RankedTeam3x3", "RANKED_TEAM_3x3"} + }; + if (leagueInfo.SummonerLeagues != null) + { + foreach (Dictionary queueInfo in leagueInfo.SummonerLeagues.List) + { + string queueName; + if(nameMap.TryGetValue(stat.PlayerStatSummaryTypeString, out queueName)){ + if (queueName == queueInfo["queue"].ToString()) + { + league = String.Format("{0}: {1}", queueInfo["tier"].ToString(), queueInfo["requestorsRank"].ToString()); + } + } + } + } var values = new Dictionary() { {GameType, stat.PlayerStatSummaryType}, - {MaxElo, stat.MaxRating.ToString()}, - {Elo, stat.Rating.ToString()}, + {Ranking, league}, {Wins, stat.Wins.ToString()}, {Losses, stat.Losses.ToString()}, {Leaves, stat.Leaves.ToString()} diff --git a/LoLNotes/Gui/LoadDataEnum.cs b/LoLNotes/Gui/LoadDataEnum.cs index c98ed67..0a24d20 100644 --- a/LoLNotes/Gui/LoadDataEnum.cs +++ b/LoLNotes/Gui/LoadDataEnum.cs @@ -33,6 +33,7 @@ public enum LoadDataEnum : uint RecentGames = 1, Stats = 2, TopChamps = 4, - All = TopChamps | Stats | RecentGames, + LeagueInfo = 8, + All = LeagueInfo | TopChamps | Stats | RecentGames, } } diff --git a/LoLNotes/Gui/MainForm.cs b/LoLNotes/Gui/MainForm.cs index ff6303b..8d87fb9 100644 --- a/LoLNotes/Gui/MainForm.cs +++ b/LoLNotes/Gui/MainForm.cs @@ -1,3 +1,26 @@ +using Db4objects.Db4o; +using Db4objects.Db4o.Config; +using Db4objects.Db4o.TA; +using FluorineFx; +using FluorineFx.AMF3; +using FluorineFx.IO; +using FluorineFx.Messaging.Messages; +using FluorineFx.Messaging.Rtmp.Event; +using LoLNotes.Gui.Controls; +using LoLNotes.Messages.Account; +using LoLNotes.Messages.Champion; +using LoLNotes.Messages.Commands; +using LoLNotes.Messages.GameLobby; +using LoLNotes.Messages.GameLobby.Participants; +using LoLNotes.Messages.GameStats; +using LoLNotes.Messages.Readers; +using LoLNotes.Properties; +using LoLNotes.Proxy; +using LoLNotes.Storage; +using LoLNotes.Util; +using Newtonsoft.Json; +using Newtonsoft.Json.Linq; +using NotMissing.Logging; /* copyright (C) 2011-2012 by high828@gmail.com @@ -32,31 +55,6 @@ THE SOFTWARE. using System.Threading; using System.Threading.Tasks; using System.Windows.Forms; -using Db4objects.Db4o; -using Db4objects.Db4o.Config; -using Db4objects.Db4o.TA; -using FluorineFx; -using FluorineFx.AMF3; -using FluorineFx.IO; -using FluorineFx.Messaging.Messages; -using FluorineFx.Messaging.Rtmp.Event; -using LoLNotes.Gui.Controls; -using LoLNotes.Messages.Account; -using LoLNotes.Messages.Champion; -using LoLNotes.Messages.Commands; -using LoLNotes.Messages.GameLobby; -using LoLNotes.Messages.GameLobby.Participants; -using LoLNotes.Messages.GameStats; -using LoLNotes.Messages.Readers; -using LoLNotes.Messages.Statistics; -using LoLNotes.Messages.Summoner; -using LoLNotes.Properties; -using LoLNotes.Proxy; -using LoLNotes.Storage; -using LoLNotes.Util; -using Newtonsoft.Json; -using Newtonsoft.Json.Linq; -using NotMissing.Logging; namespace LoLNotes.Gui { @@ -685,7 +683,7 @@ void LoadPlayerUIFinish(PlayerCache ply, PlayerControl control) control.DefaultGameTab = Settings.DefaultGameTab; control.SetPlayer(ply.Player); if (ply.Stats != null) - control.SetStats(ply.Summoner, ply.Stats); + control.SetStats(ply.Summoner, ply.LeagueInfo, ply.Stats); if (ply.RecentChamps != null) control.SetChamps(ply.RecentChamps); if (ply.Games != null) @@ -753,6 +751,9 @@ void LoadPlayer(PlayerParticipant player, PlayerControl control) if (summoner != null) { ply.Summoner = summoner; + + if ((Settings.LoadWhatData & LoadDataEnum.LeagueInfo) != 0) + ply.LeagueInfo = cmd.getAllLeaguesForPlayer(summoner.SummonerId); if ((Settings.LoadWhatData & LoadDataEnum.Stats) != 0) ply.Stats = cmd.RetrievePlayerStatsByAccountId(summoner.AccountId); if ((Settings.LoadWhatData & LoadDataEnum.TopChamps) != 0) @@ -779,7 +780,7 @@ void LoadPlayer(PlayerParticipant player, PlayerControl control) } catch (Exception ex) { - ply.LoadWait.Set(); // + ply.LoadWait.Set(); StaticLogger.Warning(ex); } } diff --git a/LoLNotes/Gui/PlayerCache.cs b/LoLNotes/Gui/PlayerCache.cs index 5d2206f..1357414 100644 --- a/LoLNotes/Gui/PlayerCache.cs +++ b/LoLNotes/Gui/PlayerCache.cs @@ -32,6 +32,7 @@ namespace LoLNotes.Gui { public class PlayerCache { + public SummonerLeaguesDTO LeagueInfo { get; set; } public PlayerEntry Player { get; set; } public PublicSummoner Summoner { get; set; } public PlayerLifetimeStats Stats { get; set; } diff --git a/LoLNotes/LoLNotes.csproj b/LoLNotes/LoLNotes.csproj index 0b4a5b0..a87a111 100644 --- a/LoLNotes/LoLNotes.csproj +++ b/LoLNotes/LoLNotes.csproj @@ -142,6 +142,8 @@ + + @@ -151,6 +153,7 @@ + diff --git a/LoLNotes/Messages/Commands/PlayerCommands.cs b/LoLNotes/Messages/Commands/PlayerCommands.cs index 6a5332e..9de9b73 100644 --- a/LoLNotes/Messages/Commands/PlayerCommands.cs +++ b/LoLNotes/Messages/Commands/PlayerCommands.cs @@ -177,6 +177,15 @@ public T InvokeService(string service, string operation, params object[] args return (T)obj; } + public SummonerLeaguesDTO getAllLeaguesForPlayer(Int64 summonerId) + { + return InvokeService( + "leaguesServiceProxy", + "getAllLeaguesForPlayer", + summonerId + ); + } + public PublicSummoner GetPlayerByName(string name) { return InvokeService( @@ -191,8 +200,7 @@ public PlayerLifetimeStats RetrievePlayerStatsByAccountId(Int64 acctid) return InvokeService( "playerStatsService", "retrievePlayerStatsByAccountId", - acctid, - "CURRENT" + acctid ); } diff --git a/LoLNotes/Messages/Statistics/LeagueItemDTO.cs b/LoLNotes/Messages/Statistics/LeagueItemDTO.cs new file mode 100644 index 0000000..83c092d --- /dev/null +++ b/LoLNotes/Messages/Statistics/LeagueItemDTO.cs @@ -0,0 +1,95 @@ +/* +copyright (C) 2011-2012 by high828@gmail.com + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. +*/ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using FluorineFx; +using FluorineFx.AMF3; +using LoLNotes.Flash; + +namespace LoLNotes.Messages.Summoner +{ + [Message(".LeagueItemDTO")] + public class LeagueItemDTO : MessageObject + { + public LeagueItemDTO(ASObject obj) + : base(obj) + { + BaseObject.SetFields(this, obj); + } + + [InternalName("previousDayLeaguePosition")] + public Int32 PreviousDayLeaguePosition { get; set; } + + [InternalName("timeLastDecayMessageShown")] + public Double TimeLastDecayMessageShown { get; set; } + + [InternalName("hotStreak")] + public Boolean HotStreak { get; set; } + + [InternalName("leagueName")] + public String LeagueName { get; set; } + + [InternalName("miniSeries")] + public object MiniSeries { get; set; } + + [InternalName("tier")] + public String Tier { get; set; } + + [InternalName("freshBlood")] + public Boolean FreshBlood { get; set; } + + [InternalName("lastPlayed")] + public Double LastPlayed { get; set; } + + [InternalName("playerOrTeamId")] + public String PlayerOrTeamId { get; set; } + + [InternalName("leaguePoints")] + public Int32 LeaguePoints { get; set; } + + [InternalName("inactive")] + public Boolean Inactive { get; set; } + + [InternalName("rank")] + public String Rank { get; set; } + + [InternalName("veteran")] + public Boolean Veteran { get; set; } + + [InternalName("queueType")] + public String QueueType { get; set; } + + [InternalName("losses")] + public Int32 Losses { get; set; } + + [InternalName("timeUntilDecay")] + public Double TimeUntilDecay { get; set; } + + [InternalName("playerOrTeamName")] + public String PlayerOrTeamName { get; set; } + + [InternalName("wins")] + public Int32 Wins { get; set; } + } +} diff --git a/LoLNotes/Messages/Statistics/LeagueListDTO.cs b/LoLNotes/Messages/Statistics/LeagueListDTO.cs new file mode 100644 index 0000000..51e1a07 --- /dev/null +++ b/LoLNotes/Messages/Statistics/LeagueListDTO.cs @@ -0,0 +1,60 @@ +/* +copyright (C) 2011-2012 by high828@gmail.com + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. +*/ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using FluorineFx; +using FluorineFx.AMF3; +using LoLNotes.Flash; + +namespace LoLNotes.Messages.Summoner +{ + [Message(".LeagueListDTO")] + public class LeagueListDTO : MessageObject + { + public LeagueListDTO(ASObject obj) + : base(obj) + { + BaseObject.SetFields(this, obj); + } + + [InternalName("queue")] + public String Queue { get; set; } + + [InternalName("name")] + public String Name { get; set; } + + [InternalName("tier")] + public String Tier { get; set; } + + [InternalName("requestorsRank")] + public String RequestorsRank { get; set; } + + [InternalName("entries")] + public List Entries { get; set; } + + [InternalName("requestorsName")] + public String RequestorsName { get; set; } + + } +} diff --git a/LoLNotes/Messages/Statistics/SummonerLeaguesDTO.cs b/LoLNotes/Messages/Statistics/SummonerLeaguesDTO.cs new file mode 100644 index 0000000..86bdadd --- /dev/null +++ b/LoLNotes/Messages/Statistics/SummonerLeaguesDTO.cs @@ -0,0 +1,23 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using FluorineFx; +using FluorineFx.AMF3; +using LoLNotes.Flash; + +namespace LoLNotes.Messages.Summoner +{ + [Message(".SummonerLeaguesDTO")] + public class SummonerLeaguesDTO : MessageObject + { + public SummonerLeaguesDTO(ASObject obj) + : base(obj) + { + BaseObject.SetFields(this, obj); + } + + [InternalName("summonerLeagues")] + public FluorineFx.AMF3.ArrayCollection SummonerLeagues { get; set; } + } +} From d09e210406e8beb775a2d589ecc09e9eab90cec3 Mon Sep 17 00:00:00 2001 From: SebastienGllmt Date: Sat, 4 Oct 2014 01:29:38 -0700 Subject: [PATCH 02/25] Unused certificate --- LoLNotes/LoLNotes.csproj | 3 --- 1 file changed, 3 deletions(-) diff --git a/LoLNotes/LoLNotes.csproj b/LoLNotes/LoLNotes.csproj index a87a111..1182163 100644 --- a/LoLNotes/LoLNotes.csproj +++ b/LoLNotes/LoLNotes.csproj @@ -284,9 +284,6 @@ PreserveNewest - - PreserveNewest - PreserveNewest From 2b8f098ae4c77364849b86f2eb697fdc6fa57fef Mon Sep 17 00:00:00 2001 From: SebastienGllmt Date: Sat, 4 Oct 2014 01:30:36 -0700 Subject: [PATCH 03/25] Got rid of broken news section --- LoLNotes/Gui/MainForm.cs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/LoLNotes/Gui/MainForm.cs b/LoLNotes/Gui/MainForm.cs index 8d87fb9..acb6e60 100644 --- a/LoLNotes/Gui/MainForm.cs +++ b/LoLNotes/Gui/MainForm.cs @@ -405,12 +405,7 @@ void SetChanges(JObject data) void SetNews(JObject data) { - if (data == null) - return; - NewsBrowser.Navigate("about:blank"); - if (NewsBrowser.Document != null) - NewsBrowser.Document.Write(string.Empty); - NewsBrowser.DocumentText = data.Value("html"); + return; } void GetGeneral() From 27e2e75495df6eb322c5e11741cf8c52a15519ad Mon Sep 17 00:00:00 2001 From: SebastienGllmt Date: Sat, 4 Oct 2014 01:32:46 -0700 Subject: [PATCH 04/25] Got rid of link to dead site --- LoLNotes/Gui/Controls/PlayerControl.cs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/LoLNotes/Gui/Controls/PlayerControl.cs b/LoLNotes/Gui/Controls/PlayerControl.cs index 6322f02..6001300 100644 --- a/LoLNotes/Gui/Controls/PlayerControl.cs +++ b/LoLNotes/Gui/Controls/PlayerControl.cs @@ -517,14 +517,10 @@ private void NameLabel_LinkClicked(object sender, LinkLabelLinkClickedEventArgs } string url = null; - if (e.Button == MouseButtons.Left) + if (e.Button == MouseButtons.Left || e.Button == MouseButtons.Middle) { url = string.Format("http://www.lolking.net/summoner/{0}/{1}", region, plr.Item1); } - else if (e.Button == MouseButtons.Middle) - { - url = string.Format("http://bladecoding.com/lolnotes/leagueofstats.php?name={0}", plr.Item2); - } if (url != null) { From c9302549975d8405b845a1599517b660470867c8 Mon Sep 17 00:00:00 2001 From: SebastienGllmt Date: Sat, 4 Oct 2014 14:29:45 -0700 Subject: [PATCH 05/25] Fixed bug where I accidentally wasn't using ArrayCollection --- LoLNotes/Messages/Statistics/LeagueListDTO.cs | 2 +- LoLNotes/Messages/Statistics/SummonerLeaguesDTO.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/LoLNotes/Messages/Statistics/LeagueListDTO.cs b/LoLNotes/Messages/Statistics/LeagueListDTO.cs index 51e1a07..2142b13 100644 --- a/LoLNotes/Messages/Statistics/LeagueListDTO.cs +++ b/LoLNotes/Messages/Statistics/LeagueListDTO.cs @@ -51,7 +51,7 @@ public LeagueListDTO(ASObject obj) public String RequestorsRank { get; set; } [InternalName("entries")] - public List Entries { get; set; } + public ArrayCollection Entries { get; set; } [InternalName("requestorsName")] public String RequestorsName { get; set; } diff --git a/LoLNotes/Messages/Statistics/SummonerLeaguesDTO.cs b/LoLNotes/Messages/Statistics/SummonerLeaguesDTO.cs index 86bdadd..1d3791e 100644 --- a/LoLNotes/Messages/Statistics/SummonerLeaguesDTO.cs +++ b/LoLNotes/Messages/Statistics/SummonerLeaguesDTO.cs @@ -18,6 +18,6 @@ public SummonerLeaguesDTO(ASObject obj) } [InternalName("summonerLeagues")] - public FluorineFx.AMF3.ArrayCollection SummonerLeagues { get; set; } + public ArrayCollection SummonerLeagues { get; set; } } } From 7e72035e65258591bc1c444d55f3fc3a8cbd6d2a Mon Sep 17 00:00:00 2001 From: SebastienGllmt Date: Sun, 5 Oct 2014 02:25:01 -0700 Subject: [PATCH 06/25] Now always shows solo Q 5x5 ranking for player --- .../Gui/Controls/PlayerControl.Designer.cs | 17 +- LoLNotes/Gui/Controls/PlayerControl.cs | 101 +++++-- LoLNotes/Gui/Controls/PlayerControl.resx | 261 +++++++++--------- LoLNotes/Gui/Controls/StatsControl.cs | 24 +- LoLNotes/Gui/MainForm.cs | 3 + .../Messages/Statistics/SummonerLeaguesDTO.cs | 22 ++ 6 files changed, 244 insertions(+), 184 deletions(-) diff --git a/LoLNotes/Gui/Controls/PlayerControl.Designer.cs b/LoLNotes/Gui/Controls/PlayerControl.Designer.cs index 5df6738..000a82f 100644 --- a/LoLNotes/Gui/Controls/PlayerControl.Designer.cs +++ b/LoLNotes/Gui/Controls/PlayerControl.Designer.cs @@ -32,6 +32,7 @@ private void InitializeComponent() System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(PlayerControl)); this.ToolTip = new System.Windows.Forms.ToolTip(this.components); this.LevelLabel = new System.Windows.Forms.Label(); + this.RankingLabel = new System.Windows.Forms.Label(); this.LoadingPicture = new System.Windows.Forms.PictureBox(); this.InfoTabs = new System.Windows.Forms.TabControl(); this.TeamLabel = new System.Windows.Forms.Label(); @@ -44,12 +45,22 @@ private void InitializeComponent() // this.LevelLabel.AutoSize = true; this.LevelLabel.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.LevelLabel.Location = new System.Drawing.Point(10, 89); + this.LevelLabel.Location = new System.Drawing.Point(10, 74); this.LevelLabel.Name = "LevelLabel"; this.LevelLabel.Size = new System.Drawing.Size(46, 13); this.LevelLabel.TabIndex = 2; this.LevelLabel.Text = "Level: "; // + // RankingLabel + // + this.RankingLabel.AutoSize = true; + this.RankingLabel.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.RankingLabel.Location = new System.Drawing.Point(10, 89); + this.RankingLabel.Name = "RankingLabel"; + this.RankingLabel.Size = new System.Drawing.Size(62, 13); + this.RankingLabel.TabIndex = 2; + this.RankingLabel.Text = "Ranking: "; + // // LoadingPicture // this.LoadingPicture.Image = ((System.Drawing.Image)(resources.GetObject("LoadingPicture.Image"))); @@ -76,7 +87,7 @@ private void InitializeComponent() // this.TeamLabel.AutoSize = true; this.TeamLabel.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.TeamLabel.Location = new System.Drawing.Point(10, 74); + this.TeamLabel.Location = new System.Drawing.Point(10, 60); this.TeamLabel.Name = "TeamLabel"; this.TeamLabel.Size = new System.Drawing.Size(32, 13); this.TeamLabel.TabIndex = 4; @@ -115,6 +126,7 @@ private void InitializeComponent() this.Controls.Add(this.InfoTabs); this.Controls.Add(this.LoadingPicture); this.Controls.Add(this.LevelLabel); + this.Controls.Add(this.RankingLabel); this.Name = "PlayerControl"; this.Size = new System.Drawing.Size(500, 150); ((System.ComponentModel.ISupportInitialize)(this.LoadingPicture)).EndInit(); @@ -127,6 +139,7 @@ private void InitializeComponent() private System.Windows.Forms.ToolTip ToolTip; private System.Windows.Forms.Label LevelLabel; + private System.Windows.Forms.Label RankingLabel; private System.Windows.Forms.PictureBox LoadingPicture; public System.Windows.Forms.TabControl InfoTabs; private System.Windows.Forms.Label TeamLabel; diff --git a/LoLNotes/Gui/Controls/PlayerControl.cs b/LoLNotes/Gui/Controls/PlayerControl.cs index 6001300..535ddd4 100644 --- a/LoLNotes/Gui/Controls/PlayerControl.cs +++ b/LoLNotes/Gui/Controls/PlayerControl.cs @@ -41,9 +41,9 @@ public partial class PlayerControl : UserControl public TeamControl Parent { get; set; } public PlayerEntry Player { get; set; } - public string DefaultGameTab { get; set; } + public string DefaultGameTab { get; set; } - static protected Dictionary LeagueRegions = new Dictionary + static protected Dictionary LeagueRegions = new Dictionary { {"NA", "na"}, {"EUW", "euw"}, @@ -61,6 +61,7 @@ public PlayerControl() LoadingPicture.Visible = false; LevelLabel.Text = "Level: "; + RankingLabel.Text = "Ranking: "; } public PlayerControl(TeamControl parent) : this() @@ -76,8 +77,8 @@ protected override void OnLoad(EventArgs e) const int BorderSize = 5; protected override void OnPaint(PaintEventArgs e) - { - e.Graphics.Clear(BackColor); + { + e.Graphics.Clear(BackColor); base.OnPaint(e); var pen = new Pen(Player != null && Player.NoteColor.A != 0 ? Player.NoteColor : Color.Green, BorderSize); e.Graphics.DrawRectangle(pen, BorderSize, BorderSize, Width - BorderSize * 2, Height - BorderSize * 2); @@ -96,15 +97,15 @@ public void SetLoading(bool loading) BeginInvoke(new Action(SetLoading), loading); return; } - if (loading) - { - InfoTabs.TabPages.Clear(); - } - else - { - if (!string.IsNullOrWhiteSpace(DefaultGameTab) && InfoTabs.TabPages[DefaultGameTab] != null) - InfoTabs.SelectTab(DefaultGameTab); - } + if (loading) + { + InfoTabs.TabPages.Clear(); + } + else + { + if (!string.IsNullOrWhiteSpace(DefaultGameTab) && InfoTabs.TabPages[DefaultGameTab] != null) + InfoTabs.SelectTab(DefaultGameTab); + } LoadingPicture.Visible = loading; } @@ -137,7 +138,7 @@ void SetTitle(Participant part) } } - void SetLevel(int level) + public void SetLevel(int level) { if (InvokeRequired) { @@ -148,6 +149,17 @@ void SetLevel(int level) LevelLabel.Text = "Level: " + (level != 0 ? Convert.ToString(level) : "?"); } + void SetRanking(string ranking) + { + if (InvokeRequired) + { + Invoke(new Action(SetRanking), ranking); + return; + } + + RankingLabel.Text = "Ranking: " + ranking; + } + void RemoveAll(Predicate find) { for (int i = 0; i < InfoTabs.TabPages.Count; i++) @@ -167,15 +179,16 @@ public void SetEmpty() Player = null; InfoTabs.TabPages.Clear(); SetLevel(0); + SetRanking("Loading..."); SetTeam(0); SetSeen(0); Invalidate(); //Force the border to redraw. } - public void AddTab(TabPage page) - { - InfoTabs.TabPages.Add(page); - } + public void AddTab(TabPage page) + { + InfoTabs.TabPages.Add(page); + } public void SetPlayer(PlayerEntry plr) { @@ -204,7 +217,7 @@ public void SetPlayer(PlayerEntry plr) Text = plr.Note }; tab.Controls.Add(lbl); - AddTab(tab); + AddTab(tab); ResumeLayout(); } @@ -222,24 +235,60 @@ public void SetParticipant(Participant part) SetTitle(part); } - public void SetStats(PublicSummoner summoner, SummonerLeaguesDTO leagueInfo, PlayerLifetimeStats stats) + public void SetLeagueInfo(SummonerLeaguesDTO leagueInfo) + { + if (InvokeRequired) + { + Invoke(new Action(SetLeagueInfo), leagueInfo); + return; + } + + if (leagueInfo == null) + { + SetRanking("???"); + } + else + { + Dictionary queueInfo = leagueInfo.GetQueueByName("RANKED_SOLO_5x5"); + SetRanking(SummonerLeaguesDTO.GetRanking(queueInfo)); + } + } + + public void SetStats(PublicSummoner summoner, SummonerLeaguesDTO leagueInfo, PlayerLifetimeStats stats) { if (summoner == null || stats == null) return; if (InvokeRequired) { - Invoke(new Action(SetStats), summoner, leagueInfo, stats); + Invoke(new Action(SetStats), summoner, leagueInfo, stats); return; } - SetLevel(summoner.SummonerLevel); RemoveAll(p => (p.Tag as string) == "Stats"); foreach (var stat in stats.PlayerStatSummaries.PlayerStatSummarySet) { var sc = new StatsControl { Dock = DockStyle.Fill, Tag = "Stats" }; - sc.SetStatSummary(stat, leagueInfo); + + var nameMap = new Dictionary() + { + {"RankedSolo5x5", "RANKED_SOLO_5x5"}, + {"RankedTeam5x5", "RANKED_TEAM_5x5"}, + {"RankedTeam3x3", "RANKED_TEAM_3x3"} + }; + + Dictionary queueInfo = null; + if (leagueInfo != null) + { + string queueType; + if (nameMap.TryGetValue(stat.PlayerStatSummaryTypeString, out queueType)) + { + queueInfo = leagueInfo.GetQueueByName(queueType); + } + } + + sc.SetStatSummary(stat, SummonerLeaguesDTO.GetRanking(queueInfo)); var tab = new TabPage(MinifyStatType(stat.PlayerStatSummaryType)) { @@ -247,7 +296,7 @@ public void SetStats(PublicSummoner summoner, SummonerLeaguesDTO leagueInfo, Pla Tag = "Stats" }; tab.Controls.Add(sc); - AddTab(tab); + AddTab(tab); } } @@ -303,7 +352,7 @@ public void SetChamps(ChampionStatInfoList champs) Tag = "Champs" }; tab.Controls.Add(layout); - AddTab(tab); + AddTab(tab); } public void SetSeen(int times) @@ -402,7 +451,7 @@ public void SetGames(RecentGames games) Tag = "Recent" }; tab.Controls.Add(layout); - AddTab(tab); + AddTab(tab); } static Label CreateLabel(string text) diff --git a/LoLNotes/Gui/Controls/PlayerControl.resx b/LoLNotes/Gui/Controls/PlayerControl.resx index 1329d8c..3d02df7 100644 --- a/LoLNotes/Gui/Controls/PlayerControl.resx +++ b/LoLNotes/Gui/Controls/PlayerControl.resx @@ -123,140 +123,133 @@ - iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 - YQUAAAAJcEhZcwAASdEAAEnRAQX8q5UAAAAGYktHRAAAAAAAAPlDu38AAAAJdnBBZwAAAEAAAABAAOrz - +GAAAAAldEVYdGN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ABGdBTUEAALGPC/xhBQAAAAlwSFlzAABJ + 0QAASdEBBfyrlQAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAAXdEVYdFNvdXJj + ZQBHTk9NRSBJY29uIFRoZW1lwfkmaQAAHPxJREFUeF7tWgdUVle2BruxJGqqir13EbErKF2QroAioqIg + glKk9947AiK99yIgAlLsXVCxm8xEncwkk5fMZN5MYqL7ffvyX4PGgtFZb61Zc9b61vnLveec79v77HPO + vVvqv+W/5b/lP76M0whmSEtqya/vsIxbGyI1TieSG+8DfDBOPWjKWPWgVYAmsAHYDuwETAF9YC2wFJgA + DMc9/cevDZEev/bdD05CmvtYCvTj7++kcEMTdKO4HjROI2guiFgAifjeADK3J2iFfTtpXfgPk7Uj/jlV + N+rRVL2oR1N0o36cohPxv/jth4laYV/juhtj1YObcV/2GLUgN9TqwHi0MZDFeNvB8v3AECAISAYG8G9v + VbiBCZqhXH+IwRoC+SDyh0naET9NN4iluRuTSX5rBq2wyiNFm0JStish9X3lpOlcSVouIipo7b4yUt5T + QCsts0h+ywGavSH+MYT5Ht50dYx6UCEE2Yu25dDPYEl/khH0rPD1fC/a8B6rEfxPfM4G+r9pO88USaMD + 0eg61LUT14X9fdaGeJIzT6ellnm0yraY1tiBmEM5qThWkOq+SlJzqiJ1p2rScDlEWm41pONZR/re9bTB + r4E2BTXRltBm2hbeQuahTWTsW0trHYppuUU6BIn7eaJW6JcQo3SMWiB71zT02SMXloxzEER0n2kQ9ff5 + RrGE75nwtt8nAN+EAXA9FnUULPLNXONEWrkrj5TsSklxTymttCkWsMKmBDVgWwpBykhhTxkp7i2n1XYV + tMa+kpQcq0hlXzWpOh0idZca0nSvI13vI2QU0ETm4a1kFXuCbBNOknVMK230qabVVpk0e33Mj/CymxAi + CoIswTgGyqgFSk1E7Hm+8FiB93Ct80z9yO9d9kNY9yKCGBkY+5vHAL5BRjWQ63nA4Wl6UT+vsMwhDSdY + FxZWAPllu4poKbDMuoiW75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3cm/yPovDIRcBBH6Dvpo4NBxyz7o1Xcg38Q3cyPsStwoN85CcGfdhRCnBMcE9ghRDJ4a + LIg4PViU7uDfAOml0r37Levdf/DyPu8N4+mzou+gD/F9yCL8zu2wwNw+Cy4SZ5dn4rwiMXHR7dlgIwAO + fqLlX+j6Lyr8Z/eYwDdzBBWFYFVZCPYI7pA7FsVgNxRXBx4ou6YoChNgYThgMlig7hB/52v4Wr6H7+U2 + uC1us7u1mTR7Y3d3ZyO9jDhbnQ3c48JCiNOCYwM3xB7BDXMHohisNqveXRAemLBPAHiwLAwPnMVhEgwm + 1B3i73wNX8vg+7gNbkt0b5Ew9ymS5rGIpHmMvNx13/y8EfEXFVEMVpHVFFYLgDsTvYNjhSgKD0oURhSH + B80CMQERTEgEf+f/GXwtg+8TiXJ73DZbmPt6njAbiA3VnfQrXf33Fm60uyDcoSgKD4IHw64neguLw+AB + 88BFoV4E8X++lsH3cRssMrfH7YrWZbKia/9bCfekiKKIwvCAGKJAokgMHvirIF7H4Pu4je4kRaL/b2T/ + w4qU1P8B4Rrw73DU+YIAAAAASUVORK5CYII= \ No newline at end of file diff --git a/LoLNotes/Gui/Controls/StatsControl.cs b/LoLNotes/Gui/Controls/StatsControl.cs index d2fe4a6..a2ab138 100644 --- a/LoLNotes/Gui/Controls/StatsControl.cs +++ b/LoLNotes/Gui/Controls/StatsControl.cs @@ -43,32 +43,12 @@ public StatsControl() Prepends.Add(control, control.Text); } - public void SetStatSummary(PlayerStatSummary stat, SummonerLeaguesDTO leagueInfo) + public void SetStatSummary(PlayerStatSummary stat, string ranking) { - string league = "Unranked"; - var nameMap = new Dictionary() - { - {"RankedSolo5x5", "RANKED_SOLO_5x5"}, - {"RankedTeam5x5", "RANKED_TEAM_5x5"}, - {"RankedTeam3x3", "RANKED_TEAM_3x3"} - }; - if (leagueInfo.SummonerLeagues != null) - { - foreach (Dictionary queueInfo in leagueInfo.SummonerLeagues.List) - { - string queueName; - if(nameMap.TryGetValue(stat.PlayerStatSummaryTypeString, out queueName)){ - if (queueName == queueInfo["queue"].ToString()) - { - league = String.Format("{0}: {1}", queueInfo["tier"].ToString(), queueInfo["requestorsRank"].ToString()); - } - } - } - } var values = new Dictionary() { {GameType, stat.PlayerStatSummaryType}, - {Ranking, league}, + {Ranking, ranking}, {Wins, stat.Wins.ToString()}, {Losses, stat.Losses.ToString()}, {Leaves, stat.Leaves.ToString()} diff --git a/LoLNotes/Gui/MainForm.cs b/LoLNotes/Gui/MainForm.cs index acb6e60..32fc828 100644 --- a/LoLNotes/Gui/MainForm.cs +++ b/LoLNotes/Gui/MainForm.cs @@ -677,6 +677,9 @@ void LoadPlayerUIFinish(PlayerCache ply, PlayerControl control) control.DefaultGameTab = Settings.DefaultGameTab; control.SetPlayer(ply.Player); + control.SetLeagueInfo(ply.LeagueInfo); + if (ply.Summoner != null) + control.SetLevel(ply.Summoner.SummonerLevel); if (ply.Stats != null) control.SetStats(ply.Summoner, ply.LeagueInfo, ply.Stats); if (ply.RecentChamps != null) diff --git a/LoLNotes/Messages/Statistics/SummonerLeaguesDTO.cs b/LoLNotes/Messages/Statistics/SummonerLeaguesDTO.cs index 1d3791e..9472f1b 100644 --- a/LoLNotes/Messages/Statistics/SummonerLeaguesDTO.cs +++ b/LoLNotes/Messages/Statistics/SummonerLeaguesDTO.cs @@ -19,5 +19,27 @@ public SummonerLeaguesDTO(ASObject obj) [InternalName("summonerLeagues")] public ArrayCollection SummonerLeagues { get; set; } + + public Dictionary GetQueueByName(string queueName) + { + foreach (Dictionary queueInfo in this.SummonerLeagues.List) + { + if (queueInfo["queue"].ToString() == queueName) + { + return queueInfo; + } + } + + return null; + } + + public static string GetRanking(Dictionary queueInfo) + { + if (queueInfo == null) + { + return "Unranked"; + } + return String.Format("{0}: {1}", queueInfo["tier"].ToString(), queueInfo["requestorsRank"].ToString()); + } } } From 9ddd7c803e2dd27887c85b103c99036bf29253c0 Mon Sep 17 00:00:00 2001 From: SebastienGllmt Date: Sun, 5 Oct 2014 02:45:58 -0700 Subject: [PATCH 07/25] Spaces -> tabs to conform with rest of project --- .../Gui/Controls/PlayerControl.Designer.cs | 60 +++--- .../Gui/Controls/StatsControl.Designer.cs | 2 +- LoLNotes/Gui/Controls/TeamControl.Designer.cs | 102 ++++----- LoLNotes/Gui/LoadDataEnum.cs | 22 +- LoLNotes/Gui/MainForm.cs | 198 +++++++++--------- LoLNotes/Gui/MainSettings.cs | 96 ++++----- LoLNotes/Gui/PlayerCache.cs | 2 +- LoLNotes/Messages/Commands/PlayerCommands.cs | 18 +- LoLNotes/Messages/Statistics/LeagueItemDTO.cs | 90 ++++---- LoLNotes/Messages/Statistics/LeagueListDTO.cs | 42 ++-- .../Statistics/PlayerStatSummaryList.cs | 2 +- .../Messages/Statistics/SummonerLeaguesDTO.cs | 28 +-- 12 files changed, 331 insertions(+), 331 deletions(-) diff --git a/LoLNotes/Gui/Controls/PlayerControl.Designer.cs b/LoLNotes/Gui/Controls/PlayerControl.Designer.cs index 000a82f..34ff519 100644 --- a/LoLNotes/Gui/Controls/PlayerControl.Designer.cs +++ b/LoLNotes/Gui/Controls/PlayerControl.Designer.cs @@ -1,33 +1,33 @@ namespace LoLNotes.Gui.Controls { - partial class PlayerControl - { - /// - /// Required designer variable. - /// - private System.ComponentModel.IContainer components = null; + partial class PlayerControl + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; - /// - /// Clean up any resources being used. - /// - /// true if managed resources should be disposed; otherwise, false. - protected override void Dispose(bool disposing) - { - if (disposing && (components != null)) - { - components.Dispose(); - } - base.Dispose(disposing); - } + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } - #region Component Designer generated code + #region Component Designer generated code - /// - /// Required method for Designer support - do not modify - /// the contents of this method with the code editor. - /// - private void InitializeComponent() - { + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { this.components = new System.ComponentModel.Container(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(PlayerControl)); this.ToolTip = new System.Windows.Forms.ToolTip(this.components); @@ -73,8 +73,8 @@ private void InitializeComponent() // // InfoTabs // - this.InfoTabs.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) - | System.Windows.Forms.AnchorStyles.Right))); + this.InfoTabs.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); this.InfoTabs.ItemSize = new System.Drawing.Size(0, 15); this.InfoTabs.Location = new System.Drawing.Point(160, 6); this.InfoTabs.Multiline = true; @@ -133,9 +133,9 @@ private void InitializeComponent() this.ResumeLayout(false); this.PerformLayout(); - } + } - #endregion + #endregion private System.Windows.Forms.ToolTip ToolTip; private System.Windows.Forms.Label LevelLabel; @@ -145,5 +145,5 @@ private void InitializeComponent() private System.Windows.Forms.Label TeamLabel; private System.Windows.Forms.LinkLabel NameLabel; private System.Windows.Forms.Label SeenCountLabel; - } + } } diff --git a/LoLNotes/Gui/Controls/StatsControl.Designer.cs b/LoLNotes/Gui/Controls/StatsControl.Designer.cs index 8082f4e..e051592 100644 --- a/LoLNotes/Gui/Controls/StatsControl.Designer.cs +++ b/LoLNotes/Gui/Controls/StatsControl.Designer.cs @@ -70,7 +70,7 @@ private void InitializeComponent() this.Ranking.Name = "Ranking"; this.Ranking.Size = new System.Drawing.Size(33, 13); this.Ranking.TabIndex = 1; - this.Ranking.Text = "Ranking: "; + this.Ranking.Text = "Ranking: "; // // Wins // diff --git a/LoLNotes/Gui/Controls/TeamControl.Designer.cs b/LoLNotes/Gui/Controls/TeamControl.Designer.cs index 09e15dc..eed11cc 100644 --- a/LoLNotes/Gui/Controls/TeamControl.Designer.cs +++ b/LoLNotes/Gui/Controls/TeamControl.Designer.cs @@ -1,61 +1,61 @@ namespace LoLNotes.Gui.Controls { - partial class TeamControl - { - /// - /// Required designer variable. - /// - private System.ComponentModel.IContainer components = null; + partial class TeamControl + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; - /// - /// Clean up any resources being used. - /// - /// true if managed resources should be disposed; otherwise, false. - protected override void Dispose(bool disposing) - { - if (disposing && (components != null)) - { - components.Dispose(); - } - base.Dispose(disposing); - } + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } - #region Component Designer generated code + #region Component Designer generated code - /// - /// Required method for Designer support - do not modify - /// the contents of this method with the code editor. - /// - private void InitializeComponent() - { - this.NameLabel = new System.Windows.Forms.Label(); - this.SuspendLayout(); - // - // NameLabel - // - this.NameLabel.AutoSize = true; - this.NameLabel.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.NameLabel.Location = new System.Drawing.Point(10, 10); - this.NameLabel.Name = "NameLabel"; - this.NameLabel.Size = new System.Drawing.Size(61, 16); - this.NameLabel.TabIndex = 0; - this.NameLabel.Text = "Team X"; - // - // TeamControl - // - this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.BackColor = System.Drawing.Color.White; - this.Controls.Add(this.NameLabel); - this.Name = "TeamControl"; - this.Size = new System.Drawing.Size(500, 890); - this.ResumeLayout(false); - this.PerformLayout(); + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + this.NameLabel = new System.Windows.Forms.Label(); + this.SuspendLayout(); + // + // NameLabel + // + this.NameLabel.AutoSize = true; + this.NameLabel.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.NameLabel.Location = new System.Drawing.Point(10, 10); + this.NameLabel.Name = "NameLabel"; + this.NameLabel.Size = new System.Drawing.Size(61, 16); + this.NameLabel.TabIndex = 0; + this.NameLabel.Text = "Team X"; + // + // TeamControl + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.BackColor = System.Drawing.Color.White; + this.Controls.Add(this.NameLabel); + this.Name = "TeamControl"; + this.Size = new System.Drawing.Size(500, 890); + this.ResumeLayout(false); + this.PerformLayout(); - } + } - #endregion + #endregion private System.Windows.Forms.Label NameLabel; - } + } } diff --git a/LoLNotes/Gui/LoadDataEnum.cs b/LoLNotes/Gui/LoadDataEnum.cs index 0a24d20..f876cd5 100644 --- a/LoLNotes/Gui/LoadDataEnum.cs +++ b/LoLNotes/Gui/LoadDataEnum.cs @@ -25,15 +25,15 @@ THE SOFTWARE. using System.Text; namespace LoLNotes.Gui -{ - [Flags] - public enum LoadDataEnum : uint - { - None = 0, - RecentGames = 1, - Stats = 2, - TopChamps = 4, - LeagueInfo = 8, - All = LeagueInfo | TopChamps | Stats | RecentGames, - } +{ + [Flags] + public enum LoadDataEnum : uint + { + None = 0, + RecentGames = 1, + Stats = 2, + TopChamps = 4, + LeagueInfo = 8, + All = LeagueInfo | TopChamps | Stats | RecentGames, + } } diff --git a/LoLNotes/Gui/MainForm.cs b/LoLNotes/Gui/MainForm.cs index 32fc828..a7bd05f 100644 --- a/LoLNotes/Gui/MainForm.cs +++ b/LoLNotes/Gui/MainForm.cs @@ -64,7 +64,7 @@ public partial class MainForm : Form const string SettingsFile = "settings.json"; readonly Dictionary Icons; - readonly Dictionary Certificates; + readonly Dictionary Certificates; readonly Dictionary ModuleResolvers; readonly List PlayersCache = new List(); readonly ProcessQueue TrackingQueue = new ProcessQueue(); @@ -100,13 +100,13 @@ public MainForm() {"Green", Icon.FromHandle(Resources.circle_green.GetHicon())}, }; - Certificates = LoadCertificates(Path.Combine(Path.GetDirectoryName(Application.ExecutablePath), "Content/Certificates")); - if (Certificates.Count < 1) - { - MessageBox.Show("Unable to load any certificates"); - Application.Exit(); - return; - } + Certificates = LoadCertificates(Path.Combine(Path.GetDirectoryName(Application.ExecutablePath), "Content/Certificates")); + if (Certificates.Count < 1) + { + MessageBox.Show("Unable to load any certificates"); + Application.Exit(); + return; + } ModuleResolvers = new Dictionary { @@ -146,7 +146,7 @@ public MainForm() int idx = RegionList.Items.IndexOf(Settings.Region); RegionList.SelectedIndex = idx != -1 ? idx : 0; //This ends up calling UpdateRegion so no reason to initialize the connection here. - DefaultGameTab.Text = Settings.DefaultGameTab; + DefaultGameTab.Text = Settings.DefaultGameTab; Installer = new CertificateInstaller(Certificates.Select(c => c.Value.Certificate).ToArray()); @@ -160,23 +160,23 @@ public MainForm() StaticLogger.Info("Startup Completed"); } - Dictionary LoadCertificates(string path) - { - var ret = new Dictionary(); - if (!Directory.Exists(path)) - return ret; + Dictionary LoadCertificates(string path) + { + var ret = new Dictionary(); + if (!Directory.Exists(path)) + return ret; - foreach (var file in new DirectoryInfo(path).GetFiles("*.p12")) - { - var nameNoExt = Path.GetFileNameWithoutExtension(file.Name); - var idx = nameNoExt.IndexOf('_'); - var name = idx != -1 ? nameNoExt.Substring(0, idx) : nameNoExt; - var host = idx != -1 ? nameNoExt.Substring(idx + 1) : nameNoExt; - ret[name] = new CertificateHolder(host, File.ReadAllBytes(file.FullName)); - } + foreach (var file in new DirectoryInfo(path).GetFiles("*.p12")) + { + var nameNoExt = Path.GetFileNameWithoutExtension(file.Name); + var idx = nameNoExt.IndexOf('_'); + var name = idx != -1 ? nameNoExt.Substring(0, idx) : nameNoExt; + var host = idx != -1 ? nameNoExt.Substring(idx + 1) : nameNoExt; + ret[name] = new CertificateHolder(host, File.ReadAllBytes(file.FullName)); + } - return ret; - } + return ret; + } void moduleresolvers_Click(object sender, EventArgs e) { @@ -239,7 +239,7 @@ void launcher_ProcessFound(object sender, ProcessMonitor.ProcessEventArgs e) } catch (Exception ex) { - StaticLogger.Warning("LeaverBuster: Unable to read global.properties '" + filename + "'"); + StaticLogger.Warning("LeaverBuster: Unable to read global.properties '" + filename + "'"); continue; } } @@ -259,7 +259,7 @@ void launcher_ProcessFound(object sender, ProcessMonitor.ProcessEventArgs e) } catch (Exception ex) { - StaticLogger.Warning("LeaverBuster: Unable to write global.properties '" + filename + "'"); + StaticLogger.Warning("LeaverBuster: Unable to write global.properties '" + filename + "'"); continue; } } @@ -315,9 +315,9 @@ void Settings_Loaded(object sender, EventArgs e) if (mod.Value == null) mod = ModuleResolvers.First(); mod.Value.Checked = true; - TopChampsBox.Checked = (Settings.LoadWhatData & LoadDataEnum.TopChamps) != 0; - StatsBox.Checked = (Settings.LoadWhatData & LoadDataEnum.Stats) != 0; - RecentGamesBox.Checked = (Settings.LoadWhatData & LoadDataEnum.RecentGames) != 0; + TopChampsBox.Checked = (Settings.LoadWhatData & LoadDataEnum.TopChamps) != 0; + StatsBox.Checked = (Settings.LoadWhatData & LoadDataEnum.Stats) != 0; + RecentGamesBox.Checked = (Settings.LoadWhatData & LoadDataEnum.RecentGames) != 0; } readonly object settingslock = new object(); @@ -364,7 +364,7 @@ void SetRelease(JObject data) if (data == null) return; SetTitle(string.Format("v{0}{1}", data.Value("Version"), data.Value("ReleaseName"))); - DownloadLink.Links.Add(0, DownloadLink.Text.Length + 1, data.Value("Link")); + DownloadLink.Links.Add(0, DownloadLink.Text.Length + 1, data.Value("Link")); } void SetChanges(JObject data) @@ -449,13 +449,13 @@ void CurrentDomain_UnhandledException(object sender, UnhandledExceptionEventArgs void LogException(Exception ex, bool track) { - var log = string.Format( - "[{0}] {1} ({2:MM/dd/yyyy HH:mm:ss.fff})", - Levels.Fatal.ToString().ToUpper(), - string.Format("{0} [{1}]", ex.Message, Parse.ToBase64(ex.ToString())), - DateTime.UtcNow); - LogToFile(log); - AddLogToList(log); + var log = string.Format( + "[{0}] {1} ({2:MM/dd/yyyy HH:mm:ss.fff})", + Levels.Fatal.ToString().ToUpper(), + string.Format("{0} [{1}]", ex.Message, Parse.ToBase64(ex.ToString())), + DateTime.UtcNow); + LogToFile(log); + AddLogToList(log); if (track) TrackingQueue.Enqueue(string.Format("error/{0}", Parse.ToBase64(ex.ToString()))); @@ -468,8 +468,8 @@ void Log(Levels level, object obj) level.ToString().ToUpper(), obj, DateTime.UtcNow); - Task.Factory.StartNew(LogToFile, log, TaskCreationOptions.LongRunning); - AddLogToList(log); + Task.Factory.StartNew(LogToFile, log, TaskCreationOptions.LongRunning); + AddLogToList(log); } void OnLog(Levels level, object obj) @@ -494,12 +494,12 @@ void AddLogToList(string log) { if (InvokeRequired) { - BeginInvoke(new Action(AddLogToList), log); + BeginInvoke(new Action(AddLogToList), log); return; } if (LogList.Items.Count > 1000) LogList.Items.RemoveAt(0); - LogList.Items.Add(log); + LogList.Items.Add(log); LogList.SelectedIndex = LogList.Items.Count - 1; LogList.SelectedIndex = -1; } @@ -597,12 +597,12 @@ public void UpdateLists(GameDTO lobby) var lists = new List { teamControl1, teamControl2 }; - //Load the opposite team first. Not currently useful with the way things are loaded. - if (SelfSummoner != null && lobby.TeamOne.Find(p => p is PlayerParticipant && ((PlayerParticipant)p).SummonerId == SelfSummoner.SummonerId) != null) - { - teams.Reverse(); - lists.Reverse(); - } + //Load the opposite team first. Not currently useful with the way things are loaded. + if (SelfSummoner != null && lobby.TeamOne.Find(p => p is PlayerParticipant && ((PlayerParticipant)p).SummonerId == SelfSummoner.SummonerId) != null) + { + teams.Reverse(); + lists.Reverse(); + } for (int i = 0; i < lists.Count; i++) { @@ -634,7 +634,7 @@ public void UpdateLists(GameDTO lobby) plycontrol.SetLoading(true); plycontrol.SetEmpty(); plycontrol.SetParticipant(ply); - Task.Factory.StartNew(() => LoadPlayer(ply, plycontrol), TaskCreationOptions.LongRunning); + Task.Factory.StartNew(() => LoadPlayer(ply, plycontrol), TaskCreationOptions.LongRunning); } else { @@ -675,17 +675,17 @@ void LoadPlayerUIFinish(PlayerCache ply, PlayerControl control) return; - control.DefaultGameTab = Settings.DefaultGameTab; + control.DefaultGameTab = Settings.DefaultGameTab; control.SetPlayer(ply.Player); control.SetLeagueInfo(ply.LeagueInfo); if (ply.Summoner != null) control.SetLevel(ply.Summoner.SummonerLevel); - if (ply.Stats != null) - control.SetStats(ply.Summoner, ply.LeagueInfo, ply.Stats); - if (ply.RecentChamps != null) - control.SetChamps(ply.RecentChamps); - if (ply.Games != null) - control.SetGames(ply.Games); + if (ply.Stats != null) + control.SetStats(ply.Summoner, ply.LeagueInfo, ply.Stats); + if (ply.RecentChamps != null) + control.SetChamps(ply.RecentChamps); + if (ply.Games != null) + control.SetGames(ply.Games); control.SetSeen(ply.SeenCount); control.SetLoading(false); @@ -695,8 +695,8 @@ void LoadPlayerUIFinish(PlayerCache ply, PlayerControl control) { if (!comboBox1.Items.Contains(stat.PlayerStatSummaryType)) comboBox1.Items.Add(stat.PlayerStatSummaryType); - if (!DefaultGameTab.Items.Contains(stat.PlayerStatSummaryType)) - DefaultGameTab.Items.Add(stat.PlayerStatSummaryType); + if (!DefaultGameTab.Items.Contains(stat.PlayerStatSummaryType)) + DefaultGameTab.Items.Add(stat.PlayerStatSummaryType); } } }); @@ -750,14 +750,14 @@ void LoadPlayer(PlayerParticipant player, PlayerControl control) { ply.Summoner = summoner; - if ((Settings.LoadWhatData & LoadDataEnum.LeagueInfo) != 0) - ply.LeagueInfo = cmd.getAllLeaguesForPlayer(summoner.SummonerId); - if ((Settings.LoadWhatData & LoadDataEnum.Stats) != 0) - ply.Stats = cmd.RetrievePlayerStatsByAccountId(summoner.AccountId); - if ((Settings.LoadWhatData & LoadDataEnum.TopChamps) != 0) - ply.RecentChamps = cmd.RetrieveTopPlayedChampions(summoner.AccountId, "CLASSIC"); - if ((Settings.LoadWhatData & LoadDataEnum.RecentGames) != 0) - ply.Games = cmd.GetRecentGames(summoner.AccountId); + if ((Settings.LoadWhatData & LoadDataEnum.LeagueInfo) != 0) + ply.LeagueInfo = cmd.getAllLeaguesForPlayer(summoner.SummonerId); + if ((Settings.LoadWhatData & LoadDataEnum.Stats) != 0) + ply.Stats = cmd.RetrievePlayerStatsByAccountId(summoner.AccountId); + if ((Settings.LoadWhatData & LoadDataEnum.TopChamps) != 0) + ply.RecentChamps = cmd.RetrieveTopPlayedChampions(summoner.AccountId, "CLASSIC"); + if ((Settings.LoadWhatData & LoadDataEnum.RecentGames) != 0) + ply.Games = cmd.GetRecentGames(summoner.AccountId); } else { @@ -798,8 +798,8 @@ private void InstallButton_Click(object sender, EventArgs e) Installer.Uninstall(); } else - { - Installer.Uninstall(); + { + Installer.Uninstall(); Installer.Install(); } } @@ -857,7 +857,7 @@ private void editToolStripMenuItem_Click(object sender, EventArgs e) plrcontrol.Player.NoteColor = Color.FromName(form.ColorBox.Items[form.ColorBox.SelectedIndex].ToString()); plrcontrol.SetPlayer(plrcontrol.Player); //Forces the notes/color to update - Task.Factory.StartNew(() => Recorder.CommitPlayer(plrcontrol.Player), TaskCreationOptions.LongRunning); + Task.Factory.StartNew(() => Recorder.CommitPlayer(plrcontrol.Player), TaskCreationOptions.LongRunning); } private void clearToolStripMenuItem_Click(object sender, EventArgs e) @@ -881,7 +881,7 @@ private void clearToolStripMenuItem_Click(object sender, EventArgs e) plrcontrol.Player.NoteColor = default(Color); plrcontrol.SetPlayer(plrcontrol.Player); //Forces the notes/color to update - Task.Factory.StartNew(() => Recorder.CommitPlayer(plrcontrol.Player), TaskCreationOptions.LongRunning); + Task.Factory.StartNew(() => Recorder.CommitPlayer(plrcontrol.Player), TaskCreationOptions.LongRunning); } private void DownloadLink_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) @@ -892,7 +892,7 @@ private void DownloadLink_LinkClicked(object sender, LinkLabelLinkClickedEventAr private void MainForm_Shown(object sender, EventArgs e) { SetTitle("(Checking)"); - Task.Factory.StartNew(GetGeneral, TaskCreationOptions.LongRunning); + Task.Factory.StartNew(GetGeneral, TaskCreationOptions.LongRunning); TrackingQueue.Enqueue("startup"); Settings_Loaded(this, new EventArgs()); @@ -947,10 +947,10 @@ private void RegionList_SelectedIndexChanged(object sender, EventArgs e) Connection.ChangeRemote(cert.Domain, cert.Certificate); } - private void DefaultGameTab_TextChanged(object sender, EventArgs e) - { - Settings.DefaultGameTab = DefaultGameTab.Text; - } + private void DefaultGameTab_TextChanged(object sender, EventArgs e) + { + Settings.DefaultGameTab = DefaultGameTab.Text; + } private void ImportButton_Click(object sender, EventArgs e) { @@ -1327,30 +1327,30 @@ private void button1_Click(object sender, EventArgs e) // //}); // } //} - } - - private void RecentGamesBox_CheckedChanged(object sender, EventArgs e) - { - if (RecentGamesBox.Checked) - Settings.LoadWhatData |= LoadDataEnum.RecentGames; - else - Settings.LoadWhatData &= ~LoadDataEnum.RecentGames; - } - - private void StatsBox_CheckedChanged(object sender, EventArgs e) - { - if (StatsBox.Checked) - Settings.LoadWhatData |= LoadDataEnum.Stats; - else - Settings.LoadWhatData &= ~LoadDataEnum.Stats; - } - - private void TopChampsBox_CheckedChanged(object sender, EventArgs e) - { - if (TopChampsBox.Checked) - Settings.LoadWhatData |= LoadDataEnum.TopChamps; - else - Settings.LoadWhatData &= ~LoadDataEnum.TopChamps; - } + } + + private void RecentGamesBox_CheckedChanged(object sender, EventArgs e) + { + if (RecentGamesBox.Checked) + Settings.LoadWhatData |= LoadDataEnum.RecentGames; + else + Settings.LoadWhatData &= ~LoadDataEnum.RecentGames; + } + + private void StatsBox_CheckedChanged(object sender, EventArgs e) + { + if (StatsBox.Checked) + Settings.LoadWhatData |= LoadDataEnum.Stats; + else + Settings.LoadWhatData &= ~LoadDataEnum.Stats; + } + + private void TopChampsBox_CheckedChanged(object sender, EventArgs e) + { + if (TopChampsBox.Checked) + Settings.LoadWhatData |= LoadDataEnum.TopChamps; + else + Settings.LoadWhatData &= ~LoadDataEnum.TopChamps; + } } } diff --git a/LoLNotes/Gui/MainSettings.cs b/LoLNotes/Gui/MainSettings.cs index 959d8e4..f642c89 100644 --- a/LoLNotes/Gui/MainSettings.cs +++ b/LoLNotes/Gui/MainSettings.cs @@ -40,12 +40,12 @@ public static MainSettings Instance return _instance ?? (_instance = new MainSettings()); } } - + public event PropertyChangedEventHandler PropertyChanged; public event EventHandler Loaded; - string _region; - public string Region + string _region; + public string Region { get { @@ -109,48 +109,48 @@ public bool DeleteLeaveBuster OnPropertyChanged("DeleteLeaveBuster"); } } - string _moduleresolver; - public string ModuleResolver - { - get - { - return _moduleresolver; - } - set - { - _moduleresolver = value; - OnPropertyChanged("ModuleResolver"); - } - } - - string _defaultgametab; - public string DefaultGameTab - { - get - { - return _defaultgametab; - } - set - { - _defaultgametab = value; - OnPropertyChanged("DefaultGameTab"); - } - } - - - LoadDataEnum _loadwhatdata; - public LoadDataEnum LoadWhatData - { - get - { - return _loadwhatdata; - } - set - { - _loadwhatdata = value; - OnPropertyChanged("LoadWhatData"); - } - } + string _moduleresolver; + public string ModuleResolver + { + get + { + return _moduleresolver; + } + set + { + _moduleresolver = value; + OnPropertyChanged("ModuleResolver"); + } + } + + string _defaultgametab; + public string DefaultGameTab + { + get + { + return _defaultgametab; + } + set + { + _defaultgametab = value; + OnPropertyChanged("DefaultGameTab"); + } + } + + + LoadDataEnum _loadwhatdata; + public LoadDataEnum LoadWhatData + { + get + { + return _loadwhatdata; + } + set + { + _loadwhatdata = value; + OnPropertyChanged("LoadWhatData"); + } + } public MainSettings() { @@ -160,9 +160,9 @@ public MainSettings() _devmode = false; _deleteleavebuster = true; _moduleresolver = ""; - _defaultgametab = "Recent"; - _loadwhatdata = LoadDataEnum.All; - } + _defaultgametab = "Recent"; + _loadwhatdata = LoadDataEnum.All; + } public bool Save(string file) { diff --git a/LoLNotes/Gui/PlayerCache.cs b/LoLNotes/Gui/PlayerCache.cs index 1357414..ef8d77d 100644 --- a/LoLNotes/Gui/PlayerCache.cs +++ b/LoLNotes/Gui/PlayerCache.cs @@ -32,7 +32,7 @@ namespace LoLNotes.Gui { public class PlayerCache { - public SummonerLeaguesDTO LeagueInfo { get; set; } + public SummonerLeaguesDTO LeagueInfo { get; set; } public PlayerEntry Player { get; set; } public PublicSummoner Summoner { get; set; } public PlayerLifetimeStats Stats { get; set; } diff --git a/LoLNotes/Messages/Commands/PlayerCommands.cs b/LoLNotes/Messages/Commands/PlayerCommands.cs index 9de9b73..d342904 100644 --- a/LoLNotes/Messages/Commands/PlayerCommands.cs +++ b/LoLNotes/Messages/Commands/PlayerCommands.cs @@ -77,7 +77,7 @@ public object InvokeServiceUnknown(string service, string operation, params obje var errordetail = error != null && error.faultDetail != null ? string.Format(" [{0}]", error.faultDetail) : ""; var errorstr = error != null && error.faultString != null ? string.Format(", {0}", error.faultString) : ""; StaticLogger.Warning(string.Format( - "{0} returned an error{1}{2}", + "{0} returned an error{1}{2}", endpoint, errorstr, errordetail @@ -177,14 +177,14 @@ public T InvokeService(string service, string operation, params object[] args return (T)obj; } - public SummonerLeaguesDTO getAllLeaguesForPlayer(Int64 summonerId) - { - return InvokeService( - "leaguesServiceProxy", - "getAllLeaguesForPlayer", - summonerId - ); - } + public SummonerLeaguesDTO getAllLeaguesForPlayer(Int64 summonerId) + { + return InvokeService( + "leaguesServiceProxy", + "getAllLeaguesForPlayer", + summonerId + ); + } public PublicSummoner GetPlayerByName(string name) { diff --git a/LoLNotes/Messages/Statistics/LeagueItemDTO.cs b/LoLNotes/Messages/Statistics/LeagueItemDTO.cs index 83c092d..81cdc7c 100644 --- a/LoLNotes/Messages/Statistics/LeagueItemDTO.cs +++ b/LoLNotes/Messages/Statistics/LeagueItemDTO.cs @@ -29,67 +29,67 @@ THE SOFTWARE. namespace LoLNotes.Messages.Summoner { - [Message(".LeagueItemDTO")] - public class LeagueItemDTO : MessageObject - { - public LeagueItemDTO(ASObject obj) - : base(obj) - { - BaseObject.SetFields(this, obj); - } + [Message(".LeagueItemDTO")] + public class LeagueItemDTO : MessageObject + { + public LeagueItemDTO(ASObject obj) + : base(obj) + { + BaseObject.SetFields(this, obj); + } - [InternalName("previousDayLeaguePosition")] - public Int32 PreviousDayLeaguePosition { get; set; } + [InternalName("previousDayLeaguePosition")] + public Int32 PreviousDayLeaguePosition { get; set; } - [InternalName("timeLastDecayMessageShown")] - public Double TimeLastDecayMessageShown { get; set; } + [InternalName("timeLastDecayMessageShown")] + public Double TimeLastDecayMessageShown { get; set; } - [InternalName("hotStreak")] - public Boolean HotStreak { get; set; } + [InternalName("hotStreak")] + public Boolean HotStreak { get; set; } - [InternalName("leagueName")] - public String LeagueName { get; set; } + [InternalName("leagueName")] + public String LeagueName { get; set; } - [InternalName("miniSeries")] - public object MiniSeries { get; set; } + [InternalName("miniSeries")] + public object MiniSeries { get; set; } - [InternalName("tier")] - public String Tier { get; set; } + [InternalName("tier")] + public String Tier { get; set; } - [InternalName("freshBlood")] - public Boolean FreshBlood { get; set; } + [InternalName("freshBlood")] + public Boolean FreshBlood { get; set; } - [InternalName("lastPlayed")] - public Double LastPlayed { get; set; } + [InternalName("lastPlayed")] + public Double LastPlayed { get; set; } - [InternalName("playerOrTeamId")] - public String PlayerOrTeamId { get; set; } + [InternalName("playerOrTeamId")] + public String PlayerOrTeamId { get; set; } - [InternalName("leaguePoints")] - public Int32 LeaguePoints { get; set; } + [InternalName("leaguePoints")] + public Int32 LeaguePoints { get; set; } - [InternalName("inactive")] - public Boolean Inactive { get; set; } + [InternalName("inactive")] + public Boolean Inactive { get; set; } - [InternalName("rank")] - public String Rank { get; set; } + [InternalName("rank")] + public String Rank { get; set; } - [InternalName("veteran")] - public Boolean Veteran { get; set; } + [InternalName("veteran")] + public Boolean Veteran { get; set; } - [InternalName("queueType")] - public String QueueType { get; set; } + [InternalName("queueType")] + public String QueueType { get; set; } - [InternalName("losses")] - public Int32 Losses { get; set; } + [InternalName("losses")] + public Int32 Losses { get; set; } - [InternalName("timeUntilDecay")] - public Double TimeUntilDecay { get; set; } + [InternalName("timeUntilDecay")] + public Double TimeUntilDecay { get; set; } - [InternalName("playerOrTeamName")] - public String PlayerOrTeamName { get; set; } + [InternalName("playerOrTeamName")] + public String PlayerOrTeamName { get; set; } - [InternalName("wins")] - public Int32 Wins { get; set; } - } + [InternalName("wins")] + public Int32 Wins { get; set; } + } } diff --git a/LoLNotes/Messages/Statistics/LeagueListDTO.cs b/LoLNotes/Messages/Statistics/LeagueListDTO.cs index 2142b13..5ff80ae 100644 --- a/LoLNotes/Messages/Statistics/LeagueListDTO.cs +++ b/LoLNotes/Messages/Statistics/LeagueListDTO.cs @@ -29,32 +29,32 @@ THE SOFTWARE. namespace LoLNotes.Messages.Summoner { - [Message(".LeagueListDTO")] - public class LeagueListDTO : MessageObject - { - public LeagueListDTO(ASObject obj) - : base(obj) - { - BaseObject.SetFields(this, obj); - } + [Message(".LeagueListDTO")] + public class LeagueListDTO : MessageObject + { + public LeagueListDTO(ASObject obj) + : base(obj) + { + BaseObject.SetFields(this, obj); + } - [InternalName("queue")] - public String Queue { get; set; } + [InternalName("queue")] + public String Queue { get; set; } - [InternalName("name")] - public String Name { get; set; } + [InternalName("name")] + public String Name { get; set; } - [InternalName("tier")] - public String Tier { get; set; } + [InternalName("tier")] + public String Tier { get; set; } - [InternalName("requestorsRank")] - public String RequestorsRank { get; set; } + [InternalName("requestorsRank")] + public String RequestorsRank { get; set; } - [InternalName("entries")] - public ArrayCollection Entries { get; set; } + [InternalName("entries")] + public ArrayCollection Entries { get; set; } - [InternalName("requestorsName")] - public String RequestorsName { get; set; } + [InternalName("requestorsName")] + public String RequestorsName { get; set; } - } + } } diff --git a/LoLNotes/Messages/Statistics/PlayerStatSummaryList.cs b/LoLNotes/Messages/Statistics/PlayerStatSummaryList.cs index 09132a6..f640303 100644 --- a/LoLNotes/Messages/Statistics/PlayerStatSummaryList.cs +++ b/LoLNotes/Messages/Statistics/PlayerStatSummaryList.cs @@ -41,7 +41,7 @@ public PlayerStatSummaryList(ArrayCollection obj) if (obj == null) return; - foreach(var ao in obj) + foreach (var ao in obj) Add(new PlayerStatSummary(ao as ASObject)); } } diff --git a/LoLNotes/Messages/Statistics/SummonerLeaguesDTO.cs b/LoLNotes/Messages/Statistics/SummonerLeaguesDTO.cs index 9472f1b..a25703e 100644 --- a/LoLNotes/Messages/Statistics/SummonerLeaguesDTO.cs +++ b/LoLNotes/Messages/Statistics/SummonerLeaguesDTO.cs @@ -8,20 +8,20 @@ namespace LoLNotes.Messages.Summoner { - [Message(".SummonerLeaguesDTO")] - public class SummonerLeaguesDTO : MessageObject - { - public SummonerLeaguesDTO(ASObject obj) - : base(obj) - { - BaseObject.SetFields(this, obj); - } + [Message(".SummonerLeaguesDTO")] + public class SummonerLeaguesDTO : MessageObject + { + public SummonerLeaguesDTO(ASObject obj) + : base(obj) + { + BaseObject.SetFields(this, obj); + } - [InternalName("summonerLeagues")] - public ArrayCollection SummonerLeagues { get; set; } + [InternalName("summonerLeagues")] + public ArrayCollection SummonerLeagues { get; set; } - public Dictionary GetQueueByName(string queueName) - { + public Dictionary GetQueueByName(string queueName) + { foreach (Dictionary queueInfo in this.SummonerLeagues.List) { if (queueInfo["queue"].ToString() == queueName) @@ -31,7 +31,7 @@ public Dictionary GetQueueByName(string queueName) } return null; - } + } public static string GetRanking(Dictionary queueInfo) { @@ -41,5 +41,5 @@ public static string GetRanking(Dictionary queueInfo) } return String.Format("{0}: {1}", queueInfo["tier"].ToString(), queueInfo["requestorsRank"].ToString()); } - } + } } From 82ee5e8e717d53bb5ab5b1aed0d1b05421c7bc30 Mon Sep 17 00:00:00 2001 From: SebastienGllmt Date: Sun, 19 Oct 2014 22:16:53 -0700 Subject: [PATCH 08/25] No longer unloads enemy team after end of game --- LoLNotes/Gui/MainForm.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/LoLNotes/Gui/MainForm.cs b/LoLNotes/Gui/MainForm.cs index a7bd05f..81ad3c0 100644 --- a/LoLNotes/Gui/MainForm.cs +++ b/LoLNotes/Gui/MainForm.cs @@ -565,6 +565,11 @@ public void UpdateLists(GameDTO lobby) return; } + if (lobby.GameState == "TERMINATED") + { + return; + } + if (CurrentGame == null || CurrentGame.Id != lobby.Id) { CurrentGame = lobby; From dafb275d9dbfda7de6b0f4be396f063067f6ba05 Mon Sep 17 00:00:00 2001 From: SebastienGllmt Date: Sun, 19 Oct 2014 22:17:15 -0700 Subject: [PATCH 09/25] Change in scope --- LoLNotes/Gui/Controls/PlayerControl.cs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/LoLNotes/Gui/Controls/PlayerControl.cs b/LoLNotes/Gui/Controls/PlayerControl.cs index 535ddd4..2756ec9 100644 --- a/LoLNotes/Gui/Controls/PlayerControl.cs +++ b/LoLNotes/Gui/Controls/PlayerControl.cs @@ -271,16 +271,16 @@ public void SetStats(PublicSummoner summoner, SummonerLeaguesDTO leagueInfo, Pla { var sc = new StatsControl { Dock = DockStyle.Fill, Tag = "Stats" }; - var nameMap = new Dictionary() - { - {"RankedSolo5x5", "RANKED_SOLO_5x5"}, - {"RankedTeam5x5", "RANKED_TEAM_5x5"}, - {"RankedTeam3x3", "RANKED_TEAM_3x3"} - }; - Dictionary queueInfo = null; if (leagueInfo != null) { + var nameMap = new Dictionary() + { + {"RankedSolo5x5", "RANKED_SOLO_5x5"}, + {"RankedTeam5x5", "RANKED_TEAM_5x5"}, + {"RankedTeam3x3", "RANKED_TEAM_3x3"} + }; + string queueType; if (nameMap.TryGetValue(stat.PlayerStatSummaryTypeString, out queueType)) { From d96561352ab512298da9c23f65e3bd23c88c8085 Mon Sep 17 00:00:00 2001 From: SebastienGllmt Date: Sun, 19 Oct 2014 23:22:16 -0700 Subject: [PATCH 10/25] Added a checkbox for league info in the GUI --- LoLNotes/Gui/MainForm.Designer.cs | 56 ++++++++++++++++--------------- LoLNotes/Gui/MainForm.cs | 9 +++++ 2 files changed, 38 insertions(+), 27 deletions(-) diff --git a/LoLNotes/Gui/MainForm.Designer.cs b/LoLNotes/Gui/MainForm.Designer.cs index d6b6600..7df3f27 100644 --- a/LoLNotes/Gui/MainForm.Designer.cs +++ b/LoLNotes/Gui/MainForm.Designer.cs @@ -88,6 +88,7 @@ private void InitializeComponent() this.RecentGamesBox = new System.Windows.Forms.CheckBox(); this.StatsBox = new System.Windows.Forms.CheckBox(); this.TopChampsBox = new System.Windows.Forms.CheckBox(); + this.LeagueInfoBox = new System.Windows.Forms.CheckBox(); this.tabControl1.SuspendLayout(); this.NewsTab.SuspendLayout(); this.GameTab.SuspendLayout(); @@ -344,7 +345,7 @@ private void InitializeComponent() this.ModuleGroupBox.Controls.Add(this.MirrorRadio); this.ModuleGroupBox.Controls.Add(this.ToolHelpRadio); this.ModuleGroupBox.Controls.Add(this.ProcessRadio); - this.ModuleGroupBox.Location = new System.Drawing.Point(107, 159); + this.ModuleGroupBox.Location = new System.Drawing.Point(107, 182); this.ModuleGroupBox.Name = "ModuleGroupBox"; this.ModuleGroupBox.Size = new System.Drawing.Size(125, 95); this.ModuleGroupBox.TabIndex = 8; @@ -386,7 +387,7 @@ private void InitializeComponent() // LeaveCheck // this.LeaveCheck.AutoSize = true; - this.LeaveCheck.Location = new System.Drawing.Point(16, 345); + this.LeaveCheck.Location = new System.Drawing.Point(16, 368); this.LeaveCheck.Name = "LeaveCheck"; this.LeaveCheck.Size = new System.Drawing.Size(120, 17); this.LeaveCheck.TabIndex = 7; @@ -396,7 +397,7 @@ private void InitializeComponent() // DevCheck // this.DevCheck.AutoSize = true; - this.DevCheck.Location = new System.Drawing.Point(16, 322); + this.DevCheck.Location = new System.Drawing.Point(16, 345); this.DevCheck.Name = "DevCheck"; this.DevCheck.Size = new System.Drawing.Size(76, 17); this.DevCheck.TabIndex = 6; @@ -408,7 +409,7 @@ private void InitializeComponent() // this.LogGroupBox.Controls.Add(this.DebugCheck); this.LogGroupBox.Controls.Add(this.TraceCheck); - this.LogGroupBox.Location = new System.Drawing.Point(10, 247); + this.LogGroupBox.Location = new System.Drawing.Point(10, 270); this.LogGroupBox.Name = "LogGroupBox"; this.LogGroupBox.Size = new System.Drawing.Size(91, 69); this.LogGroupBox.TabIndex = 5; @@ -441,7 +442,7 @@ private void InitializeComponent() // this.DatabaseGroupBox.Controls.Add(this.ExportButton); this.DatabaseGroupBox.Controls.Add(this.ImportButton); - this.DatabaseGroupBox.Location = new System.Drawing.Point(11, 159); + this.DatabaseGroupBox.Location = new System.Drawing.Point(11, 182); this.DatabaseGroupBox.Name = "DatabaseGroupBox"; this.DatabaseGroupBox.Size = new System.Drawing.Size(90, 82); this.DatabaseGroupBox.TabIndex = 4; @@ -621,51 +622,52 @@ private void InitializeComponent() this.groupBox5.Controls.Add(this.TopChampsBox); this.groupBox5.Controls.Add(this.StatsBox); this.groupBox5.Controls.Add(this.RecentGamesBox); + this.groupBox5.Controls.Add(this.LeagueInfoBox); this.groupBox5.Location = new System.Drawing.Point(172, 59); this.groupBox5.Name = "groupBox5"; - this.groupBox5.Size = new System.Drawing.Size(125, 94); + this.groupBox5.Size = new System.Drawing.Size(125, 117); this.groupBox5.TabIndex = 13; this.groupBox5.TabStop = false; this.groupBox5.Text = "Load What Stats"; - // + // Shared properties between checkboxes + System.Windows.Forms.CheckBox[] checkBoxes = { RecentGamesBox, StatsBox, TopChampsBox, LeagueInfoBox }; + for(int i=0; i Date: Sun, 16 Nov 2014 00:06:50 -0800 Subject: [PATCH 11/25] unpacked ui code so the designer works again --- LoLNotes/Gui/MainForm.Designer.cs | 38 +++++++++++++++++++++++-------- 1 file changed, 28 insertions(+), 10 deletions(-) diff --git a/LoLNotes/Gui/MainForm.Designer.cs b/LoLNotes/Gui/MainForm.Designer.cs index 7df3f27..2fc49d0 100644 --- a/LoLNotes/Gui/MainForm.Designer.cs +++ b/LoLNotes/Gui/MainForm.Designer.cs @@ -630,16 +630,34 @@ private void InitializeComponent() this.groupBox5.TabStop = false; this.groupBox5.Text = "Load What Stats"; // Shared properties between checkboxes - System.Windows.Forms.CheckBox[] checkBoxes = { RecentGamesBox, StatsBox, TopChampsBox, LeagueInfoBox }; - for(int i=0; i Date: Sat, 22 Nov 2014 04:41:09 -0800 Subject: [PATCH 12/25] Fix ui offset --- LoLNotes/Gui/MainForm.Designer.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/LoLNotes/Gui/MainForm.Designer.cs b/LoLNotes/Gui/MainForm.Designer.cs index 2fc49d0..4c13c1c 100644 --- a/LoLNotes/Gui/MainForm.Designer.cs +++ b/LoLNotes/Gui/MainForm.Designer.cs @@ -634,28 +634,28 @@ private void InitializeComponent() RecentGamesBox.AutoSize = true; RecentGamesBox.Checked = true; RecentGamesBox.CheckState = System.Windows.Forms.CheckState.Checked; - RecentGamesBox.Location = new System.Drawing.Point(6, 42); + RecentGamesBox.Location = new System.Drawing.Point(6, 22); RecentGamesBox.UseVisualStyleBackColor = true; RecentGamesBox.TabIndex = 0; StatsBox.AutoSize = true; StatsBox.Checked = true; StatsBox.CheckState = System.Windows.Forms.CheckState.Checked; - StatsBox.Location = new System.Drawing.Point(6, 65); + StatsBox.Location = new System.Drawing.Point(6, 45); StatsBox.UseVisualStyleBackColor = true; StatsBox.TabIndex = 1; TopChampsBox.AutoSize = true; TopChampsBox.Checked = true; TopChampsBox.CheckState = System.Windows.Forms.CheckState.Checked; - TopChampsBox.Location = new System.Drawing.Point(6, 88); + TopChampsBox.Location = new System.Drawing.Point(6, 68); TopChampsBox.UseVisualStyleBackColor = true; TopChampsBox.TabIndex = 2; LeagueInfoBox.AutoSize = true; LeagueInfoBox.Checked = true; LeagueInfoBox.CheckState = System.Windows.Forms.CheckState.Checked; - LeagueInfoBox.Location = new System.Drawing.Point(6, 111); + LeagueInfoBox.Location = new System.Drawing.Point(6, 91); LeagueInfoBox.UseVisualStyleBackColor = true; LeagueInfoBox.TabIndex = 3; // From cfc86e1ab0047d73883a6240ebe4fe7bc5bee971 Mon Sep 17 00:00:00 2001 From: SebastienGllmt Date: Sat, 22 Nov 2014 04:41:45 -0800 Subject: [PATCH 13/25] looks for new certificate --- LoLNotes/Gui/MainForm.cs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/LoLNotes/Gui/MainForm.cs b/LoLNotes/Gui/MainForm.cs index 48ccbde..7f0808d 100644 --- a/LoLNotes/Gui/MainForm.cs +++ b/LoLNotes/Gui/MainForm.cs @@ -172,6 +172,16 @@ Dictionary LoadCertificates(string path) var idx = nameNoExt.IndexOf('_'); var name = idx != -1 ? nameNoExt.Substring(0, idx) : nameNoExt; var host = idx != -1 ? nameNoExt.Substring(idx + 1) : nameNoExt; + + // We want to replace old NA certificates with the new one. + // We do this by guaranteeing that if the new certificate exists, it will be placed in the dictionary and will not be replaced by any other element + if (ret.ContainsKey("NA")) + { + if (nameNoExt != "NA_prod.na2.lol.riotgames.com") + { + continue; + } + } ret[name] = new CertificateHolder(host, File.ReadAllBytes(file.FullName)); } From 44f8001af229aff1384ef574e53b93359fd13649 Mon Sep 17 00:00:00 2001 From: SebastienGllmt Date: Sat, 22 Nov 2014 04:46:51 -0800 Subject: [PATCH 14/25] new certificate --- .../NA_prod.na1.lol.riotgames.com.p12 | Bin 1605 -> 0 bytes .../NA_prod.na2.lol.riotgames.com.p12 | Bin 0 -> 1605 bytes 2 files changed, 0 insertions(+), 0 deletions(-) delete mode 100644 LoLNotes/Content/Certificates/NA_prod.na1.lol.riotgames.com.p12 create mode 100644 LoLNotes/Content/Certificates/NA_prod.na2.lol.riotgames.com.p12 diff --git a/LoLNotes/Content/Certificates/NA_prod.na1.lol.riotgames.com.p12 b/LoLNotes/Content/Certificates/NA_prod.na1.lol.riotgames.com.p12 deleted file mode 100644 index 89ec32e1f710541d191808c76029f794c92a36f2..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1605 zcmY+?dpOez7zc1Rzh!bcWfpVWAtYq#5K|E$_qoJ~*g6C+*W)10b*7KZmI_Hn~d7tO|ect!44~hgi3K9jQNRVw1=-$lZnd?%b z+eB$3U_*=q@KGdS6-5GZe^d|}2{bE=*dS36;hOx>h@zAr5`TY?6osIq#l)e@&+mLG z9)*KI;vz&6s0ILv_Nl8Zc_`u#Q&@q!6d-#b7;9N$_44I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5g;%~{-${D?Y-^V=l6i(dYI)?n#;c8y1H%^z{r<$Xxu!YB_Oz#Mv5EiP4~>S zvM0}T<$3j*(6?Gs?O5f?2byKSC{q3mL(eS{oK5)%t7Ut@wBL2Ybu4)~)opr`SeRWG zbDkS$kZkOc-qE^<^O@5y&_JpGs~Re202hO$%9})4eae!~jlAzVcjJh;Z~2aLlmY5z w6chsJNP|HLKtv3di1s#z1*~ZMvB>#P4HtrfJ#3I-;wokG(-RDx;P1Ns0w{vyNdN!< diff --git a/LoLNotes/Content/Certificates/NA_prod.na2.lol.riotgames.com.p12 b/LoLNotes/Content/Certificates/NA_prod.na2.lol.riotgames.com.p12 new file mode 100644 index 0000000000000000000000000000000000000000..522ecce79bb3f9a5ac1405a945b12cd1eeec0ef8 GIT binary patch literal 1605 zcmY+?eLT|%90&0Iezq}FNe`GwlBGQCx5A+!DMq0v<*Cf$6y+g0EiEe#k=m?O+^Yizkj_U8qyI2R3I8s6^YuC zMojx-8K4Rj(-8A;8salVLrg<7aOzuyET)0O%4iS-V9M3^tpOk`QvL4_8UPYn4p&Pt zaAa-WJ5~mQYOsqm@IE+SeSm7TY9=Ffq{F7AC;SwFB= zh^}2FOI_5L#U5&&4Ok}V?;cah`T43xj&Vd@c!RKYU!4)(unf^=;7Uc_j&Ryo@aK!M z9ozjjs^(V+4JFMfv#?Ro;){I06nqGA0TX?qWG8zP?WPwddd{AblXOHsOs>TBYH@fC z`nY)v>Cl-7MQ;8{2k8VaK~@>}lX}T`m$^dhQF^QKt+uDC=WnTX5!uvBN9q!5#+?}p z8SB&~w{>N(%DFc=JzPh>gI3pi-VA;q+Te^*rffL&*ZR(75EcNo#n#2Q)hrQk=i*ku z5iPf-Q#!}S5jHcd-~di~)Q6*1tt^_R_CRLq@nc+WE<9fjAz<~)yT^H(!YbjxW`44O*`44a!C{@NI$`K>c|1ehvKxN5NhNb`0ukuxYl}ZJ* z!LKd?sU#dFfv)X3#C^St)- zu@KU_P>&08a*+L7)Xd%tzSRd!@JzOz*JX438=S9G`Vd>qY zLc>IAmz!tk6@^WMOMNt7r-QxxsvyK%RC$8%i`3KEHZGZ*rMpWdd}l|jqTTn|oQyX! zt|J!{(dkd@PCPo2S-!IY*D{u1Tv!RaWyL+}dVfT7K&!M9h-}?Vq%=Q_q^#%pX8C7} zdb=MGF87H80vH1A-Bx9U{-#HtV_dlE2c(NDaiYN3EBxeO`VBR^%3KdTjwyDM039)C zpKG&gQJC*s%qi{~?4rAPW{YPg_?~>U)lWL6V&as}ABXI!8CG3OZFb_$A_;ws5qk$$ zGZ5loEJJbbvWZy=LXW8z$Zf;RM}l9Kvksg(RXw6LMNMzj!0d8+qdxd2n0hEbYx|Fz zV3wD106~!AP4>HZM;>Z@(%|mCdr6$IArwLZJwgwz31b+P=H9gqUtj1o$A+}K<25Z< zHOzs4qIRQ^YBP#O2nrO_l+{7&7`-HEIoEEqwK-2ZHjHdYUEZ93N@ymHwpYW6EkX9XW*qAHs{1c@A?Z8- literal 0 HcmV?d00001 From c520ccd111c1eaaf2f73ff08d81e6bcc80dd21a2 Mon Sep 17 00:00:00 2001 From: SebastienGllmt Date: Sat, 22 Nov 2014 05:10:49 -0800 Subject: [PATCH 15/25] NA certificate change in csproj --- LoLNotes/LoLNotes.csproj | 2 +- LoLNotes/Properties/CommitInfo.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/LoLNotes/LoLNotes.csproj b/LoLNotes/LoLNotes.csproj index 1182163..a19c7cc 100644 --- a/LoLNotes/LoLNotes.csproj +++ b/LoLNotes/LoLNotes.csproj @@ -284,7 +284,7 @@ PreserveNewest - + PreserveNewest diff --git a/LoLNotes/Properties/CommitInfo.cs b/LoLNotes/Properties/CommitInfo.cs index e4ed5bf..7fae64f 100644 --- a/LoLNotes/Properties/CommitInfo.cs +++ b/LoLNotes/Properties/CommitInfo.cs @@ -1,3 +1,3 @@ -[assembly: AssemblyCommit("commit 9471ae5aa9f9fc38b9e4ce46389895230e873771\nAuthor: Will \nDate: Sun Aug 19 01:04:24 2012 -0400\n\n Changed GameIds/AccountIds/SummonerIds should be Int64s to prevent overflowing.\n", "9471ae5aa9f9fc38b9e4ce46389895230e873771", "Will", " Sun Aug 19 01:04:24 2012 -0400", "Changed GameIds/AccountIds/SummonerIds should be Int64s to prevent overflowing.", "will@bladecoding.com")] +[assembly: AssemblyCommit("commit 44f8001af229aff1384ef574e53b93359fd13649\nAuthor: SebastienGllmt \nDate: Sat Nov 22 04:46:51 2014 -0800\n\n new certificate\n", "44f8001af229aff1384ef574e53b93359fd13649", "SebastienGllmt", " Sat Nov 22 04:46:51 2014 -0800", "new certificate", "SebastienGllmt@gmail.com")] From 7ef731b52a99bd6769378da71c5f2e9d75998e6d Mon Sep 17 00:00:00 2001 From: SebastienGllmt Date: Sat, 22 Nov 2014 05:25:49 -0800 Subject: [PATCH 16/25] Admin mode error message now appears in logs --- LoLNotes/Properties/CommitInfo.cs | 2 +- LoLNotes/Util/ProcessInjector.cs | 61 +++++++++++++++++-------------- 2 files changed, 34 insertions(+), 29 deletions(-) diff --git a/LoLNotes/Properties/CommitInfo.cs b/LoLNotes/Properties/CommitInfo.cs index 7fae64f..55d9b63 100644 --- a/LoLNotes/Properties/CommitInfo.cs +++ b/LoLNotes/Properties/CommitInfo.cs @@ -1,3 +1,3 @@ -[assembly: AssemblyCommit("commit 44f8001af229aff1384ef574e53b93359fd13649\nAuthor: SebastienGllmt \nDate: Sat Nov 22 04:46:51 2014 -0800\n\n new certificate\n", "44f8001af229aff1384ef574e53b93359fd13649", "SebastienGllmt", " Sat Nov 22 04:46:51 2014 -0800", "new certificate", "SebastienGllmt@gmail.com")] +[assembly: AssemblyCommit("commit c520ccd111c1eaaf2f73ff08d81e6bcc80dd21a2\nAuthor: SebastienGllmt \nDate: Sat Nov 22 05:10:49 2014 -0800\n\n NA certificate change in csproj\n", "c520ccd111c1eaaf2f73ff08d81e6bcc80dd21a2", "SebastienGllmt", " Sat Nov 22 05:10:49 2014 -0800", "NA certificate change in csproj", "SebastienGllmt@gmail.com")] diff --git a/LoLNotes/Util/ProcessInjector.cs b/LoLNotes/Util/ProcessInjector.cs index 8c1cfae..a9d19cb 100644 --- a/LoLNotes/Util/ProcessInjector.cs +++ b/LoLNotes/Util/ProcessInjector.cs @@ -107,39 +107,44 @@ protected void CheckLoop() { while (CheckThread != null) { - if (CurrentProcess == null || CurrentProcess.HasExited) + try { - IsInjected = false; - CurrentProcess = Process.GetProcessesByName(ProcessName).FirstOrDefault(); - if (CurrentProcess != null) + if (CurrentProcess == null || CurrentProcess.HasExited) { - try + IsInjected = false; + CurrentProcess = Process.GetProcessesByName(ProcessName).FirstOrDefault(); + if (CurrentProcess != null) { - Inject(); - IsInjected = true; - } - catch (FileNotFoundException fe) - { - //LoLClient does not have ws2_32 yet. Lets try again in 1 second. - StaticLogger.Trace(fe.Message); - CurrentProcess = null; - Thread.Sleep(1000); - continue; - } - catch (WarningException we) - { - IsInjected = true; - StaticLogger.Info(we.Message); - } - catch (NotSupportedException nse) - { - StaticLogger.Warning(nse); - } - catch (Exception ex) - { - StaticLogger.Error(new Exception(string.Format("{0} [{1}]", ex.Message, From), ex)); + try + { + Inject(); + IsInjected = true; + } + catch (FileNotFoundException fe) + { + //LoLClient does not have ws2_32 yet. Lets try again in 1 second. + StaticLogger.Trace(fe.Message); + CurrentProcess = null; + Thread.Sleep(1000); + continue; + } + catch (WarningException we) + { + IsInjected = true; + StaticLogger.Info(we.Message); + } + catch (NotSupportedException nse) + { + StaticLogger.Warning(nse); + } + catch (Exception ex) + { + StaticLogger.Error(new Exception(string.Format("{0} [{1}]", ex.Message, From), ex)); + } } } + }catch(System.ComponentModel.Win32Exception ex){ + StaticLogger.Error(new Exception(string.Format("Did not launch in administrator mode. {0} [{1}]", ex.Message, From), ex)); } Thread.Sleep(500); } From daf6def0c8327a4f6b57aa6cc27e8195b0f3f809 Mon Sep 17 00:00:00 2001 From: SebastienGllmt Date: Sat, 22 Nov 2014 14:02:23 -0800 Subject: [PATCH 17/25] new screenshot --- LoLNotes/Properties/CommitInfo.cs | 2 +- README.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/LoLNotes/Properties/CommitInfo.cs b/LoLNotes/Properties/CommitInfo.cs index 55d9b63..f4664c0 100644 --- a/LoLNotes/Properties/CommitInfo.cs +++ b/LoLNotes/Properties/CommitInfo.cs @@ -1,3 +1,3 @@ -[assembly: AssemblyCommit("commit c520ccd111c1eaaf2f73ff08d81e6bcc80dd21a2\nAuthor: SebastienGllmt \nDate: Sat Nov 22 05:10:49 2014 -0800\n\n NA certificate change in csproj\n", "c520ccd111c1eaaf2f73ff08d81e6bcc80dd21a2", "SebastienGllmt", " Sat Nov 22 05:10:49 2014 -0800", "NA certificate change in csproj", "SebastienGllmt@gmail.com")] +[assembly: AssemblyCommit("commit 7ef731b52a99bd6769378da71c5f2e9d75998e6d\nAuthor: SebastienGllmt \nDate: Sat Nov 22 05:25:49 2014 -0800\n\n Admin mode error message now appears in logs\n", "7ef731b52a99bd6769378da71c5f2e9d75998e6d", "SebastienGllmt", " Sat Nov 22 05:25:49 2014 -0800", "Admin mode error message now appears in logs", "SebastienGllmt@gmail.com")] diff --git a/README.md b/README.md index fa49708..2df1950 100644 --- a/README.md +++ b/README.md @@ -3,4 +3,4 @@ LoLNotes is a program that records your games and who you play with. Allowing you to search your previous games and keep notes on people you have played with. ##Screenshot: -![Screenshot](http://img140.imageshack.us/img140/5774/jr1x00a4.png) \ No newline at end of file +![Screenshot](http://i.imgur.com/G5GF1Sp.png) \ No newline at end of file From a92f42de82ffc86a31930a6fe71b52101cf4b42c Mon Sep 17 00:00:00 2001 From: SebastienGllmt Date: Wed, 26 Nov 2014 01:01:26 -0800 Subject: [PATCH 18/25] better scope for dict --- LoLNotes/Gui/Controls/PlayerControl.cs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/LoLNotes/Gui/Controls/PlayerControl.cs b/LoLNotes/Gui/Controls/PlayerControl.cs index 2756ec9..0bf7f95 100644 --- a/LoLNotes/Gui/Controls/PlayerControl.cs +++ b/LoLNotes/Gui/Controls/PlayerControl.cs @@ -267,6 +267,13 @@ public void SetStats(PublicSummoner summoner, SummonerLeaguesDTO leagueInfo, Pla RemoveAll(p => (p.Tag as string) == "Stats"); + var nameMap = new Dictionary() + { + {"RankedSolo5x5", "RANKED_SOLO_5x5"}, + {"RankedTeam5x5", "RANKED_TEAM_5x5"}, + {"RankedTeam3x3", "RANKED_TEAM_3x3"} + }; + foreach (var stat in stats.PlayerStatSummaries.PlayerStatSummarySet) { var sc = new StatsControl { Dock = DockStyle.Fill, Tag = "Stats" }; @@ -274,13 +281,6 @@ public void SetStats(PublicSummoner summoner, SummonerLeaguesDTO leagueInfo, Pla Dictionary queueInfo = null; if (leagueInfo != null) { - var nameMap = new Dictionary() - { - {"RankedSolo5x5", "RANKED_SOLO_5x5"}, - {"RankedTeam5x5", "RANKED_TEAM_5x5"}, - {"RankedTeam3x3", "RANKED_TEAM_3x3"} - }; - string queueType; if (nameMap.TryGetValue(stat.PlayerStatSummaryTypeString, out queueType)) { From 776689769362279563a9d4583552c743161bd721 Mon Sep 17 00:00:00 2001 From: SebastienGllmt Date: Wed, 26 Nov 2014 01:03:34 -0800 Subject: [PATCH 19/25] Patch to ProcessInjector The light should now turn red successfully when you turn off the game It also now sends an error message when privileges are wrong --- LoLNotes/Properties/CommitInfo.cs | 2 +- LoLNotes/Util/ProcessInjector.cs | 115 +++++++++++++++++++++--------- 2 files changed, 83 insertions(+), 34 deletions(-) diff --git a/LoLNotes/Properties/CommitInfo.cs b/LoLNotes/Properties/CommitInfo.cs index f4664c0..e8265d2 100644 --- a/LoLNotes/Properties/CommitInfo.cs +++ b/LoLNotes/Properties/CommitInfo.cs @@ -1,3 +1,3 @@ -[assembly: AssemblyCommit("commit 7ef731b52a99bd6769378da71c5f2e9d75998e6d\nAuthor: SebastienGllmt \nDate: Sat Nov 22 05:25:49 2014 -0800\n\n Admin mode error message now appears in logs\n", "7ef731b52a99bd6769378da71c5f2e9d75998e6d", "SebastienGllmt", " Sat Nov 22 05:25:49 2014 -0800", "Admin mode error message now appears in logs", "SebastienGllmt@gmail.com")] +[assembly: AssemblyCommit("commit daf6def0c8327a4f6b57aa6cc27e8195b0f3f809\nAuthor: SebastienGllmt \nDate: Sat Nov 22 14:02:23 2014 -0800\n\n new screenshot\n", "daf6def0c8327a4f6b57aa6cc27e8195b0f3f809", "SebastienGllmt", " Sat Nov 22 14:02:23 2014 -0800", "new screenshot", "SebastienGllmt@gmail.com")] diff --git a/LoLNotes/Util/ProcessInjector.cs b/LoLNotes/Util/ProcessInjector.cs index a9d19cb..a415711 100644 --- a/LoLNotes/Util/ProcessInjector.cs +++ b/LoLNotes/Util/ProcessInjector.cs @@ -64,6 +64,10 @@ public class ProcessInjector : IDisposable /// Called when the IsInjected status changes. /// public event EventHandler Injected; + /// + /// Called when an error occurrs in the process injection + /// + public event EventHandler ErrorOccurred; bool isinjected; public bool IsInjected @@ -80,6 +84,32 @@ protected set } } + + private string errorMessage; + private object errorLock = new object(); + public string ErrorMessage + { + get { + lock (errorLock) + { + string msg = errorMessage; + errorMessage = ""; + return msg; + } + } + protected set + { + lock (errorLock) + { + errorMessage = value; + if (!string.IsNullOrEmpty(value) && ErrorOccurred != null) + { + ErrorOccurred(this, new EventArgs()); + } + } + } + } + GetModuleFrom From { get; set; } public ProcessInjector(string process) @@ -105,46 +135,65 @@ public void Clear() protected void CheckLoop() { + bool showedError = false; + while (CheckThread != null) { - try + if (CurrentProcess != null) + { + try + { + if (CurrentProcess.HasExited) + { + CurrentProcess = null; + IsInjected = false; // update icon + } + } + catch (Exception ex) + { + if (!showedError) + { + ErrorMessage = "Privilege of LoLNotes must be greater or equal to that of the LoLClient.\n\nSituations where LoLClient is run as admin and LoLNotes is not are no good."; + showedError = true; + } + StaticLogger.Error(ex); + CurrentProcess = null; + IsInjected = false; // update icon + } + } + + if (CurrentProcess == null) { - if (CurrentProcess == null || CurrentProcess.HasExited) + CurrentProcess = Process.GetProcessesByName(ProcessName).FirstOrDefault(); + if (CurrentProcess != null) { - IsInjected = false; - CurrentProcess = Process.GetProcessesByName(ProcessName).FirstOrDefault(); - if (CurrentProcess != null) + try + { + Inject(); + IsInjected = true; + } + catch (FileNotFoundException fe) + { + //LoLClient does not have ws2_32 yet. Lets try again in 1 second. + StaticLogger.Trace(fe.Message); + CurrentProcess = null; + Thread.Sleep(1000); + continue; + } + catch (WarningException we) + { + IsInjected = true; + StaticLogger.Info(we.Message); + } + catch (NotSupportedException nse) + { + StaticLogger.Warning(nse); + } + catch (Exception ex) { - try - { - Inject(); - IsInjected = true; - } - catch (FileNotFoundException fe) - { - //LoLClient does not have ws2_32 yet. Lets try again in 1 second. - StaticLogger.Trace(fe.Message); - CurrentProcess = null; - Thread.Sleep(1000); - continue; - } - catch (WarningException we) - { - IsInjected = true; - StaticLogger.Info(we.Message); - } - catch (NotSupportedException nse) - { - StaticLogger.Warning(nse); - } - catch (Exception ex) - { - StaticLogger.Error(new Exception(string.Format("{0} [{1}]", ex.Message, From), ex)); - } + StaticLogger.Error(new Exception(string.Format("{0} [{1}]", ex.Message, From), ex)); } } - }catch(System.ComponentModel.Win32Exception ex){ - StaticLogger.Error(new Exception(string.Format("Did not launch in administrator mode. {0} [{1}]", ex.Message, From), ex)); } Thread.Sleep(500); } From 2a791960e3d1fd1b84b1032f04e87229ac153b64 Mon Sep 17 00:00:00 2001 From: SebastienGllmt Date: Wed, 26 Nov 2014 01:19:28 -0800 Subject: [PATCH 20/25] See previous commit Accidentally left this part out --- LoLNotes/Gui/MainForm.cs | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/LoLNotes/Gui/MainForm.cs b/LoLNotes/Gui/MainForm.cs index 7f0808d..6ccf0f0 100644 --- a/LoLNotes/Gui/MainForm.cs +++ b/LoLNotes/Gui/MainForm.cs @@ -131,6 +131,7 @@ public MainForm() Connection.Connected += Connection_Connected; Injector.Injected += Injector_Injected; + Injector.ErrorOccurred += Injector_ErrorOccurred; Reader.ObjectRead += Reader_ObjectRead; //Recorder must be initiated after Reader.ObjectRead as @@ -309,6 +310,16 @@ void TrackingQueue_Process(object sender, ProcessQueueEventArgs e) } } + void Injector_ErrorOccurred(object sender, EventArgs e) + { + string err = Injector.ErrorMessage; + + if (!string.IsNullOrEmpty(err)) + { + MessageBox.Show(err); + } + } + void Injector_Injected(object sender, EventArgs e) { if (Created) From 3f91578a5abb46c52c3cf17625cb6b2e50ab1404 Mon Sep 17 00:00:00 2001 From: SebastienGllmt Date: Wed, 26 Nov 2014 01:19:38 -0800 Subject: [PATCH 21/25] Updated version --- General.txt | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/General.txt b/General.txt index b24f68f..48d382b 100644 --- a/General.txt +++ b/General.txt @@ -5,12 +5,19 @@ }, "Release": { - "ReleaseName": "o", - "Version": "1.1", - "Link": "https://github.com/bladecoding/LoLNotes/releases/tag/1.1o" + "ReleaseName": "", + "Version": "1.2", + "Link": "https://github.com/SebastienGllmt/LoLNotes/releases/tag/1.2" }, "Changes": { + "1.2": + [ + "Fixed certificate issue so that LoLNotes works on the new season.", + "Now shows ranking for players", + "Now get more feedback about whether or not the process is injected", + "No longer unloads enemy team at the end of the game", + ], "1.1o": [ "Fixed unicode broadcast messages breaking lolnotes.", From 854bc8f0be8d37356ca7dc1dedc6c7d48a22d4d9 Mon Sep 17 00:00:00 2001 From: SebastienGllmt Date: Sat, 29 Nov 2014 05:34:06 -0800 Subject: [PATCH 22/25] Removed unused button --- LoLNotes/Gui/MainForm.Designer.cs | 14 ---------- LoLNotes/Gui/MainForm.cs | 45 ------------------------------- 2 files changed, 59 deletions(-) diff --git a/LoLNotes/Gui/MainForm.Designer.cs b/LoLNotes/Gui/MainForm.Designer.cs index 4c13c1c..d770481 100644 --- a/LoLNotes/Gui/MainForm.Designer.cs +++ b/LoLNotes/Gui/MainForm.Designer.cs @@ -45,7 +45,6 @@ private void InitializeComponent() this.GameTab = new System.Windows.Forms.TabPage(); this.splitContainer2 = new System.Windows.Forms.SplitContainer(); this.comboBox1 = new System.Windows.Forms.ComboBox(); - this.button1 = new System.Windows.Forms.Button(); this.PlayerEditStrip = new System.Windows.Forms.ContextMenuStrip(this.components); this.editToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.clearToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); @@ -177,7 +176,6 @@ private void InitializeComponent() this.splitContainer2.Panel1.AutoScroll = true; this.splitContainer2.Panel1.AutoScrollMinSize = new System.Drawing.Size(500, 836); this.splitContainer2.Panel1.Controls.Add(this.comboBox1); - this.splitContainer2.Panel1.Controls.Add(this.button1); this.splitContainer2.Panel1.Controls.Add(this.teamControl1); // // splitContainer2.Panel2 @@ -204,17 +202,6 @@ private void InitializeComponent() this.comboBox1.TabIndex = 2; this.comboBox1.SelectedIndexChanged += new System.EventHandler(this.comboBox1_SelectedIndexChanged); // - // button1 - // - this.button1.Location = new System.Drawing.Point(221, 3); - this.button1.Name = "button1"; - this.button1.Size = new System.Drawing.Size(75, 23); - this.button1.TabIndex = 3; - this.button1.Text = "button1"; - this.button1.UseVisualStyleBackColor = true; - this.button1.Visible = false; - this.button1.Click += new System.EventHandler(this.button1_Click); - // // PlayerEditStrip // this.PlayerEditStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { @@ -768,7 +755,6 @@ private void InitializeComponent() private System.Windows.Forms.ToolStripMenuItem dumpToolStripMenuItem; private System.Windows.Forms.TreeView CallTree; private System.Windows.Forms.ComboBox comboBox1; - private System.Windows.Forms.Button button1; private System.Windows.Forms.TabPage NewsTab; private System.Windows.Forms.WebBrowser NewsBrowser; private System.Windows.Forms.CheckBox LeaveCheck; diff --git a/LoLNotes/Gui/MainForm.cs b/LoLNotes/Gui/MainForm.cs index 6ccf0f0..c8f1179 100644 --- a/LoLNotes/Gui/MainForm.cs +++ b/LoLNotes/Gui/MainForm.cs @@ -154,10 +154,6 @@ public MainForm() TrackingQueue.Process += TrackingQueue_Process; launcher.ProcessFound += launcher_ProcessFound; -#if DEBUG - button1.Visible = true; -#endif - StaticLogger.Info("Startup Completed"); } @@ -1315,47 +1311,6 @@ private void comboBox1_SelectedIndexChanged(object sender, EventArgs e) comboBox1.SelectedIndex = -1; } - private void button1_Click(object sender, EventArgs e) - { - var cmd = new PlayerCommands(Connection); - var summoner = cmd.GetPlayerByName(SelfSummoner.Username); - if (summoner != null) - { - cmd.RetrievePlayerStatsByAccountId(summoner.AccountId); - cmd.RetrieveTopPlayedChampions(summoner.AccountId, "CLASSIC"); - cmd.GetRecentGames(summoner.AccountId); - } - - - //var cmd = new PlayerCommands(Connection); - //var obj = cmd.InvokeServiceUnknown( - // "gameService", - // "quitGame" - //); - - //if (Champions == null) - // return; - - //var sorted = Champions.OrderBy(c => ChampNames.Get(c.ChampionId)).ToList(); - - //var cmd = new PlayerCommands(Connection); - //for (int i = 0; i < sorted.Count; i++) - //{ - // if (sorted[i].FreeToPlay || sorted[i].Owned) - // { - // var id = sorted[i].ChampionId; - // //ThreadPool.QueueUserWorkItem(delegate - // //{ - // var obj = cmd.InvokeServiceUnknown( - // "gameService", - // "selectChampion", - // id - // ); - // //}); - // } - //} - } - private void RecentGamesBox_CheckedChanged(object sender, EventArgs e) { if (RecentGamesBox.Checked) From cb5fb46282a0825c76450df56e95fca55ef9f92d Mon Sep 17 00:00:00 2001 From: SebastienGllmt Date: Sat, 29 Nov 2014 07:20:44 -0800 Subject: [PATCH 23/25] Added accept status tracker --- LoLNotes/Gui/MainForm.Designer.cs | 1354 ++++++++++++------------ LoLNotes/Gui/MainForm.cs | 4 +- LoLNotes/Messages/GameLobby/GameDTO.cs | 7 + LoLNotes/Properties/CommitInfo.cs | 2 +- 4 files changed, 699 insertions(+), 668 deletions(-) diff --git a/LoLNotes/Gui/MainForm.Designer.cs b/LoLNotes/Gui/MainForm.Designer.cs index d770481..3a6da06 100644 --- a/LoLNotes/Gui/MainForm.Designer.cs +++ b/LoLNotes/Gui/MainForm.Designer.cs @@ -38,685 +38,705 @@ protected override void Dispose(bool disposing) /// private void InitializeComponent() { - this.components = new System.ComponentModel.Container(); - this.tabControl1 = new System.Windows.Forms.TabControl(); - this.NewsTab = new System.Windows.Forms.TabPage(); - this.NewsBrowser = new System.Windows.Forms.WebBrowser(); - this.GameTab = new System.Windows.Forms.TabPage(); - this.splitContainer2 = new System.Windows.Forms.SplitContainer(); - this.comboBox1 = new System.Windows.Forms.ComboBox(); - this.PlayerEditStrip = new System.Windows.Forms.ContextMenuStrip(this.components); - this.editToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.clearToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.SettingsTab = new System.Windows.Forms.TabPage(); - this.groupBox4 = new System.Windows.Forms.GroupBox(); - this.DefaultGameTab = new System.Windows.Forms.ComboBox(); - this.groupBox3 = new System.Windows.Forms.GroupBox(); - this.DownloadLink = new System.Windows.Forms.LinkLabel(); - this.groupBox2 = new System.Windows.Forms.GroupBox(); - this.RegionList = new System.Windows.Forms.ComboBox(); - this.groupBox1 = new System.Windows.Forms.GroupBox(); - this.InstallButton = new System.Windows.Forms.Button(); - this.ModuleGroupBox = new System.Windows.Forms.GroupBox(); - this.MirrorRadio = new System.Windows.Forms.RadioButton(); - this.ToolHelpRadio = new System.Windows.Forms.RadioButton(); - this.ProcessRadio = new System.Windows.Forms.RadioButton(); - this.LeaveCheck = new System.Windows.Forms.CheckBox(); - this.DevCheck = new System.Windows.Forms.CheckBox(); - this.LogGroupBox = new System.Windows.Forms.GroupBox(); - this.DebugCheck = new System.Windows.Forms.CheckBox(); - this.TraceCheck = new System.Windows.Forms.CheckBox(); - this.DatabaseGroupBox = new System.Windows.Forms.GroupBox(); - this.ExportButton = new System.Windows.Forms.Button(); - this.ImportButton = new System.Windows.Forms.Button(); - this.LogTab = new System.Windows.Forms.TabPage(); - this.LogList = new System.Windows.Forms.ListBox(); - this.ChangesTab = new System.Windows.Forms.TabPage(); - this.ChangesText = new System.Windows.Forms.RichTextBox(); - this.DevTab = new System.Windows.Forms.TabPage(); - this.splitContainer1 = new System.Windows.Forms.SplitContainer(); - this.CallView = new System.Windows.Forms.ListView(); - this.columnHeader1 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); - this.CallEditStrip = new System.Windows.Forms.ContextMenuStrip(this.components); - this.dumpToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.clearToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem(); - this.CallTree = new System.Windows.Forms.TreeView(); - this.teamControl1 = new LoLNotes.Gui.Controls.TeamControl(); - this.teamControl2 = new LoLNotes.Gui.Controls.TeamControl(); - this.groupBox5 = new System.Windows.Forms.GroupBox(); - this.RecentGamesBox = new System.Windows.Forms.CheckBox(); - this.StatsBox = new System.Windows.Forms.CheckBox(); - this.TopChampsBox = new System.Windows.Forms.CheckBox(); + this.components = new System.ComponentModel.Container(); + this.tabControl1 = new System.Windows.Forms.TabControl(); + this.NewsTab = new System.Windows.Forms.TabPage(); + this.NewsBrowser = new System.Windows.Forms.WebBrowser(); + this.GameTab = new System.Windows.Forms.TabPage(); + this.splitContainer2 = new System.Windows.Forms.SplitContainer(); + this.statusLabel = new System.Windows.Forms.Label(); + this.comboBox1 = new System.Windows.Forms.ComboBox(); + this.teamControl1 = new LoLNotes.Gui.Controls.TeamControl(); + this.PlayerEditStrip = new System.Windows.Forms.ContextMenuStrip(this.components); + this.editToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.clearToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.teamControl2 = new LoLNotes.Gui.Controls.TeamControl(); + this.SettingsTab = new System.Windows.Forms.TabPage(); + this.groupBox5 = new System.Windows.Forms.GroupBox(); + this.TopChampsBox = new System.Windows.Forms.CheckBox(); + this.StatsBox = new System.Windows.Forms.CheckBox(); + this.RecentGamesBox = new System.Windows.Forms.CheckBox(); this.LeagueInfoBox = new System.Windows.Forms.CheckBox(); - this.tabControl1.SuspendLayout(); - this.NewsTab.SuspendLayout(); - this.GameTab.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.splitContainer2)).BeginInit(); - this.splitContainer2.Panel1.SuspendLayout(); - this.splitContainer2.Panel2.SuspendLayout(); - this.splitContainer2.SuspendLayout(); - this.PlayerEditStrip.SuspendLayout(); - this.SettingsTab.SuspendLayout(); - this.groupBox4.SuspendLayout(); - this.groupBox3.SuspendLayout(); - this.groupBox2.SuspendLayout(); - this.groupBox1.SuspendLayout(); - this.ModuleGroupBox.SuspendLayout(); - this.LogGroupBox.SuspendLayout(); - this.DatabaseGroupBox.SuspendLayout(); - this.LogTab.SuspendLayout(); - this.ChangesTab.SuspendLayout(); - this.DevTab.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit(); - this.splitContainer1.Panel1.SuspendLayout(); - this.splitContainer1.Panel2.SuspendLayout(); - this.splitContainer1.SuspendLayout(); - this.CallEditStrip.SuspendLayout(); - this.groupBox5.SuspendLayout(); - this.SuspendLayout(); - // - // tabControl1 - // - this.tabControl1.Controls.Add(this.NewsTab); - this.tabControl1.Controls.Add(this.GameTab); - this.tabControl1.Controls.Add(this.SettingsTab); - this.tabControl1.Controls.Add(this.LogTab); - this.tabControl1.Controls.Add(this.ChangesTab); - this.tabControl1.Controls.Add(this.DevTab); - this.tabControl1.Dock = System.Windows.Forms.DockStyle.Fill; - this.tabControl1.Location = new System.Drawing.Point(0, 0); - this.tabControl1.Name = "tabControl1"; - this.tabControl1.SelectedIndex = 0; - this.tabControl1.Size = new System.Drawing.Size(1165, 868); - this.tabControl1.TabIndex = 0; - this.tabControl1.Selected += new System.Windows.Forms.TabControlEventHandler(this.tabControl1_Selected); - // - // NewsTab - // - this.NewsTab.Controls.Add(this.NewsBrowser); - this.NewsTab.Location = new System.Drawing.Point(4, 22); - this.NewsTab.Name = "NewsTab"; - this.NewsTab.Padding = new System.Windows.Forms.Padding(3); - this.NewsTab.Size = new System.Drawing.Size(1157, 842); - this.NewsTab.TabIndex = 6; - this.NewsTab.Text = "News"; - this.NewsTab.UseVisualStyleBackColor = true; - // - // NewsBrowser - // - this.NewsBrowser.Dock = System.Windows.Forms.DockStyle.Fill; - this.NewsBrowser.Location = new System.Drawing.Point(3, 3); - this.NewsBrowser.MinimumSize = new System.Drawing.Size(20, 20); - this.NewsBrowser.Name = "NewsBrowser"; - this.NewsBrowser.ScriptErrorsSuppressed = true; - this.NewsBrowser.Size = new System.Drawing.Size(1151, 836); - this.NewsBrowser.TabIndex = 0; - // - // GameTab - // - this.GameTab.AutoScroll = true; - this.GameTab.Controls.Add(this.splitContainer2); - this.GameTab.Location = new System.Drawing.Point(4, 22); - this.GameTab.Name = "GameTab"; - this.GameTab.Padding = new System.Windows.Forms.Padding(3); - this.GameTab.Size = new System.Drawing.Size(1157, 842); - this.GameTab.TabIndex = 0; - this.GameTab.Text = "Game"; - this.GameTab.UseVisualStyleBackColor = true; - // - // splitContainer2 - // - this.splitContainer2.Dock = System.Windows.Forms.DockStyle.Fill; - this.splitContainer2.IsSplitterFixed = true; - this.splitContainer2.Location = new System.Drawing.Point(3, 3); - this.splitContainer2.Name = "splitContainer2"; - // - // splitContainer2.Panel1 - // - this.splitContainer2.Panel1.AutoScroll = true; - this.splitContainer2.Panel1.AutoScrollMinSize = new System.Drawing.Size(500, 836); - this.splitContainer2.Panel1.Controls.Add(this.comboBox1); - this.splitContainer2.Panel1.Controls.Add(this.teamControl1); - // - // splitContainer2.Panel2 - // - this.splitContainer2.Panel2.AutoScroll = true; - this.splitContainer2.Panel2.AutoScrollMinSize = new System.Drawing.Size(500, 836); - this.splitContainer2.Panel2.Controls.Add(this.teamControl2); - this.splitContainer2.Size = new System.Drawing.Size(1151, 836); - this.splitContainer2.SplitterDistance = 575; - this.splitContainer2.SplitterWidth = 1; - this.splitContainer2.TabIndex = 4; - // - // comboBox1 - // - this.comboBox1.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; - this.comboBox1.FormattingEnabled = true; - this.comboBox1.Items.AddRange(new object[] { + this.groupBox4 = new System.Windows.Forms.GroupBox(); + this.DefaultGameTab = new System.Windows.Forms.ComboBox(); + this.groupBox3 = new System.Windows.Forms.GroupBox(); + this.DownloadLink = new System.Windows.Forms.LinkLabel(); + this.groupBox2 = new System.Windows.Forms.GroupBox(); + this.RegionList = new System.Windows.Forms.ComboBox(); + this.groupBox1 = new System.Windows.Forms.GroupBox(); + this.InstallButton = new System.Windows.Forms.Button(); + this.ModuleGroupBox = new System.Windows.Forms.GroupBox(); + this.MirrorRadio = new System.Windows.Forms.RadioButton(); + this.ToolHelpRadio = new System.Windows.Forms.RadioButton(); + this.ProcessRadio = new System.Windows.Forms.RadioButton(); + this.LeaveCheck = new System.Windows.Forms.CheckBox(); + this.DevCheck = new System.Windows.Forms.CheckBox(); + this.LogGroupBox = new System.Windows.Forms.GroupBox(); + this.DebugCheck = new System.Windows.Forms.CheckBox(); + this.TraceCheck = new System.Windows.Forms.CheckBox(); + this.DatabaseGroupBox = new System.Windows.Forms.GroupBox(); + this.ExportButton = new System.Windows.Forms.Button(); + this.ImportButton = new System.Windows.Forms.Button(); + this.LogTab = new System.Windows.Forms.TabPage(); + this.LogList = new System.Windows.Forms.ListBox(); + this.ChangesTab = new System.Windows.Forms.TabPage(); + this.ChangesText = new System.Windows.Forms.RichTextBox(); + this.DevTab = new System.Windows.Forms.TabPage(); + this.splitContainer1 = new System.Windows.Forms.SplitContainer(); + this.CallView = new System.Windows.Forms.ListView(); + this.columnHeader1 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); + this.CallEditStrip = new System.Windows.Forms.ContextMenuStrip(this.components); + this.dumpToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.clearToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem(); + this.CallTree = new System.Windows.Forms.TreeView(); + this.statusMask = new System.Windows.Forms.Label(); + this.tabControl1.SuspendLayout(); + this.NewsTab.SuspendLayout(); + this.GameTab.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.splitContainer2)).BeginInit(); + this.splitContainer2.Panel1.SuspendLayout(); + this.splitContainer2.Panel2.SuspendLayout(); + this.splitContainer2.SuspendLayout(); + this.PlayerEditStrip.SuspendLayout(); + this.SettingsTab.SuspendLayout(); + this.groupBox5.SuspendLayout(); + this.groupBox4.SuspendLayout(); + this.groupBox3.SuspendLayout(); + this.groupBox2.SuspendLayout(); + this.groupBox1.SuspendLayout(); + this.ModuleGroupBox.SuspendLayout(); + this.LogGroupBox.SuspendLayout(); + this.DatabaseGroupBox.SuspendLayout(); + this.LogTab.SuspendLayout(); + this.ChangesTab.SuspendLayout(); + this.DevTab.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit(); + this.splitContainer1.Panel1.SuspendLayout(); + this.splitContainer1.Panel2.SuspendLayout(); + this.splitContainer1.SuspendLayout(); + this.CallEditStrip.SuspendLayout(); + this.SuspendLayout(); + // + // tabControl1 + // + this.tabControl1.Controls.Add(this.NewsTab); + this.tabControl1.Controls.Add(this.GameTab); + this.tabControl1.Controls.Add(this.SettingsTab); + this.tabControl1.Controls.Add(this.LogTab); + this.tabControl1.Controls.Add(this.ChangesTab); + this.tabControl1.Controls.Add(this.DevTab); + this.tabControl1.Dock = System.Windows.Forms.DockStyle.Fill; + this.tabControl1.Location = new System.Drawing.Point(0, 0); + this.tabControl1.Name = "tabControl1"; + this.tabControl1.SelectedIndex = 0; + this.tabControl1.Size = new System.Drawing.Size(1165, 868); + this.tabControl1.TabIndex = 0; + this.tabControl1.Selected += new System.Windows.Forms.TabControlEventHandler(this.tabControl1_Selected); + // + // NewsTab + // + this.NewsTab.Controls.Add(this.NewsBrowser); + this.NewsTab.Location = new System.Drawing.Point(4, 22); + this.NewsTab.Name = "NewsTab"; + this.NewsTab.Padding = new System.Windows.Forms.Padding(3); + this.NewsTab.Size = new System.Drawing.Size(1157, 842); + this.NewsTab.TabIndex = 6; + this.NewsTab.Text = "News"; + this.NewsTab.UseVisualStyleBackColor = true; + // + // NewsBrowser + // + this.NewsBrowser.Dock = System.Windows.Forms.DockStyle.Fill; + this.NewsBrowser.Location = new System.Drawing.Point(3, 3); + this.NewsBrowser.MinimumSize = new System.Drawing.Size(20, 20); + this.NewsBrowser.Name = "NewsBrowser"; + this.NewsBrowser.ScriptErrorsSuppressed = true; + this.NewsBrowser.Size = new System.Drawing.Size(1151, 836); + this.NewsBrowser.TabIndex = 0; + // + // GameTab + // + this.GameTab.AutoScroll = true; + this.GameTab.Controls.Add(this.splitContainer2); + this.GameTab.Location = new System.Drawing.Point(4, 22); + this.GameTab.Name = "GameTab"; + this.GameTab.Padding = new System.Windows.Forms.Padding(3); + this.GameTab.Size = new System.Drawing.Size(1157, 842); + this.GameTab.TabIndex = 0; + this.GameTab.Text = "Game"; + this.GameTab.UseVisualStyleBackColor = true; + // + // splitContainer2 + // + this.splitContainer2.Dock = System.Windows.Forms.DockStyle.Fill; + this.splitContainer2.IsSplitterFixed = true; + this.splitContainer2.Location = new System.Drawing.Point(3, 3); + this.splitContainer2.Name = "splitContainer2"; + // + // splitContainer2.Panel1 + // + this.splitContainer2.Panel1.AutoScroll = true; + this.splitContainer2.Panel1.AutoScrollMinSize = new System.Drawing.Size(500, 836); + this.splitContainer2.Panel1.Controls.Add(this.statusMask); + this.splitContainer2.Panel1.Controls.Add(this.statusLabel); + this.splitContainer2.Panel1.Controls.Add(this.comboBox1); + this.splitContainer2.Panel1.Controls.Add(this.teamControl1); + // + // splitContainer2.Panel2 + // + this.splitContainer2.Panel2.AutoScroll = true; + this.splitContainer2.Panel2.AutoScrollMinSize = new System.Drawing.Size(500, 836); + this.splitContainer2.Panel2.Controls.Add(this.teamControl2); + this.splitContainer2.Size = new System.Drawing.Size(1151, 836); + this.splitContainer2.SplitterDistance = 575; + this.splitContainer2.SplitterWidth = 1; + this.splitContainer2.TabIndex = 4; + // + // statusLabel + // + this.statusLabel.AutoSize = true; + this.statusLabel.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.statusLabel.Location = new System.Drawing.Point(221, 4); + this.statusLabel.Name = "statusLabel"; + this.statusLabel.Size = new System.Drawing.Size(60, 20); + this.statusLabel.TabIndex = 3; + this.statusLabel.Text = "Status:"; + // + // comboBox1 + // + this.comboBox1.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; + this.comboBox1.FormattingEnabled = true; + this.comboBox1.Items.AddRange(new object[] { "Champs", "Recent"}); - this.comboBox1.Location = new System.Drawing.Point(94, 4); - this.comboBox1.Name = "comboBox1"; - this.comboBox1.Size = new System.Drawing.Size(121, 21); - this.comboBox1.Sorted = true; - this.comboBox1.TabIndex = 2; - this.comboBox1.SelectedIndexChanged += new System.EventHandler(this.comboBox1_SelectedIndexChanged); - // - // PlayerEditStrip - // - this.PlayerEditStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { + this.comboBox1.Location = new System.Drawing.Point(94, 4); + this.comboBox1.Name = "comboBox1"; + this.comboBox1.Size = new System.Drawing.Size(121, 21); + this.comboBox1.Sorted = true; + this.comboBox1.TabIndex = 2; + this.comboBox1.SelectedIndexChanged += new System.EventHandler(this.comboBox1_SelectedIndexChanged); + // + // teamControl1 + // + this.teamControl1.BackColor = System.Drawing.Color.White; + this.teamControl1.Dock = System.Windows.Forms.DockStyle.Fill; + this.teamControl1.Location = new System.Drawing.Point(0, 0); + this.teamControl1.MinimumSize = new System.Drawing.Size(500, 836); + this.teamControl1.Name = "teamControl1"; + this.teamControl1.PlayerContextMenuStrip = this.PlayerEditStrip; + this.teamControl1.Size = new System.Drawing.Size(575, 836); + this.teamControl1.TabIndex = 0; + this.teamControl1.TeamSize = 5; + this.teamControl1.Text = "Team 1"; + // + // PlayerEditStrip + // + this.PlayerEditStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.editToolStripMenuItem, this.clearToolStripMenuItem}); - this.PlayerEditStrip.Name = "PlayerEditStrip"; - this.PlayerEditStrip.Size = new System.Drawing.Size(102, 48); - // - // editToolStripMenuItem - // - this.editToolStripMenuItem.Name = "editToolStripMenuItem"; - this.editToolStripMenuItem.Size = new System.Drawing.Size(101, 22); - this.editToolStripMenuItem.Text = "Edit"; - this.editToolStripMenuItem.Click += new System.EventHandler(this.editToolStripMenuItem_Click); - // - // clearToolStripMenuItem - // - this.clearToolStripMenuItem.Name = "clearToolStripMenuItem"; - this.clearToolStripMenuItem.Size = new System.Drawing.Size(101, 22); - this.clearToolStripMenuItem.Text = "Clear"; - this.clearToolStripMenuItem.Click += new System.EventHandler(this.clearToolStripMenuItem_Click); - // - // SettingsTab - // - this.SettingsTab.Controls.Add(this.groupBox5); - this.SettingsTab.Controls.Add(this.groupBox4); - this.SettingsTab.Controls.Add(this.groupBox3); - this.SettingsTab.Controls.Add(this.groupBox2); - this.SettingsTab.Controls.Add(this.groupBox1); - this.SettingsTab.Controls.Add(this.ModuleGroupBox); - this.SettingsTab.Controls.Add(this.LeaveCheck); - this.SettingsTab.Controls.Add(this.DevCheck); - this.SettingsTab.Controls.Add(this.LogGroupBox); - this.SettingsTab.Controls.Add(this.DatabaseGroupBox); - this.SettingsTab.Location = new System.Drawing.Point(4, 22); - this.SettingsTab.Name = "SettingsTab"; - this.SettingsTab.Size = new System.Drawing.Size(1157, 842); - this.SettingsTab.TabIndex = 2; - this.SettingsTab.Text = "Settings"; - this.SettingsTab.UseVisualStyleBackColor = true; - // - // groupBox4 - // - this.groupBox4.Controls.Add(this.DefaultGameTab); - this.groupBox4.Location = new System.Drawing.Point(103, 3); - this.groupBox4.Name = "groupBox4"; - this.groupBox4.Size = new System.Drawing.Size(155, 50); - this.groupBox4.TabIndex = 12; - this.groupBox4.TabStop = false; - this.groupBox4.Text = "Default Game Tab"; - // - // DefaultGameTab - // - this.DefaultGameTab.FormattingEnabled = true; - this.DefaultGameTab.Items.AddRange(new object[] { + this.PlayerEditStrip.Name = "PlayerEditStrip"; + this.PlayerEditStrip.Size = new System.Drawing.Size(102, 48); + // + // editToolStripMenuItem + // + this.editToolStripMenuItem.Name = "editToolStripMenuItem"; + this.editToolStripMenuItem.Size = new System.Drawing.Size(101, 22); + this.editToolStripMenuItem.Text = "Edit"; + this.editToolStripMenuItem.Click += new System.EventHandler(this.editToolStripMenuItem_Click); + // + // clearToolStripMenuItem + // + this.clearToolStripMenuItem.Name = "clearToolStripMenuItem"; + this.clearToolStripMenuItem.Size = new System.Drawing.Size(101, 22); + this.clearToolStripMenuItem.Text = "Clear"; + this.clearToolStripMenuItem.Click += new System.EventHandler(this.clearToolStripMenuItem_Click); + // + // teamControl2 + // + this.teamControl2.BackColor = System.Drawing.Color.White; + this.teamControl2.Dock = System.Windows.Forms.DockStyle.Fill; + this.teamControl2.Location = new System.Drawing.Point(0, 0); + this.teamControl2.MinimumSize = new System.Drawing.Size(500, 836); + this.teamControl2.Name = "teamControl2"; + this.teamControl2.PlayerContextMenuStrip = this.PlayerEditStrip; + this.teamControl2.Size = new System.Drawing.Size(575, 836); + this.teamControl2.TabIndex = 1; + this.teamControl2.TeamSize = 5; + this.teamControl2.Text = "Team 2"; + // + // SettingsTab + // + this.SettingsTab.Controls.Add(this.groupBox5); + this.SettingsTab.Controls.Add(this.groupBox4); + this.SettingsTab.Controls.Add(this.groupBox3); + this.SettingsTab.Controls.Add(this.groupBox2); + this.SettingsTab.Controls.Add(this.groupBox1); + this.SettingsTab.Controls.Add(this.ModuleGroupBox); + this.SettingsTab.Controls.Add(this.LeaveCheck); + this.SettingsTab.Controls.Add(this.DevCheck); + this.SettingsTab.Controls.Add(this.LogGroupBox); + this.SettingsTab.Controls.Add(this.DatabaseGroupBox); + this.SettingsTab.Location = new System.Drawing.Point(4, 22); + this.SettingsTab.Name = "SettingsTab"; + this.SettingsTab.Size = new System.Drawing.Size(1157, 842); + this.SettingsTab.TabIndex = 2; + this.SettingsTab.Text = "Settings"; + this.SettingsTab.UseVisualStyleBackColor = true; + // + // groupBox5 + // + this.groupBox5.Controls.Add(this.TopChampsBox); + this.groupBox5.Controls.Add(this.StatsBox); + this.groupBox5.Controls.Add(this.RecentGamesBox); + this.groupBox5.Controls.Add(this.LeagueInfoBox); + this.groupBox5.Location = new System.Drawing.Point(172, 59); + this.groupBox5.Name = "groupBox5"; + this.groupBox5.Size = new System.Drawing.Size(125, 117); + this.groupBox5.TabIndex = 13; + this.groupBox5.TabStop = false; + this.groupBox5.Text = "Load What Stats"; + // + // TopChampsBox + // + this.TopChampsBox.AutoSize = true; + this.TopChampsBox.Checked = true; + this.TopChampsBox.CheckState = System.Windows.Forms.CheckState.Checked; + this.TopChampsBox.Location = new System.Drawing.Point(6, 68); + this.TopChampsBox.Name = "TopChampsBox"; + this.TopChampsBox.Size = new System.Drawing.Size(86, 17); + this.TopChampsBox.TabIndex = 2; + this.TopChampsBox.Text = "Top Champs"; + this.TopChampsBox.UseVisualStyleBackColor = true; + this.TopChampsBox.CheckedChanged += new System.EventHandler(this.TopChampsBox_CheckedChanged); + // + // StatsBox + // + this.StatsBox.AutoSize = true; + this.StatsBox.Checked = true; + this.StatsBox.CheckState = System.Windows.Forms.CheckState.Checked; + this.StatsBox.Location = new System.Drawing.Point(6, 45); + this.StatsBox.Name = "StatsBox"; + this.StatsBox.Size = new System.Drawing.Size(50, 17); + this.StatsBox.TabIndex = 1; + this.StatsBox.Text = "Stats"; + this.StatsBox.UseVisualStyleBackColor = true; + this.StatsBox.CheckedChanged += new System.EventHandler(this.StatsBox_CheckedChanged); + // + // RecentGamesBox + // + this.RecentGamesBox.AutoSize = true; + this.RecentGamesBox.Checked = true; + this.RecentGamesBox.CheckState = System.Windows.Forms.CheckState.Checked; + this.RecentGamesBox.Location = new System.Drawing.Point(6, 22); + this.RecentGamesBox.Name = "RecentGamesBox"; + this.RecentGamesBox.Size = new System.Drawing.Size(97, 17); + this.RecentGamesBox.TabIndex = 0; + this.RecentGamesBox.Text = "Recent Games"; + this.RecentGamesBox.UseVisualStyleBackColor = true; + this.RecentGamesBox.CheckedChanged += new System.EventHandler(this.RecentGamesBox_CheckedChanged); + // + // LeagueInfoBox + // + this.LeagueInfoBox.AutoSize = true; + this.LeagueInfoBox.Checked = true; + this.LeagueInfoBox.CheckState = System.Windows.Forms.CheckState.Checked; + this.LeagueInfoBox.Location = new System.Drawing.Point(6, 91); + this.LeagueInfoBox.Name = "LeagueInfoBox"; + this.LeagueInfoBox.Size = new System.Drawing.Size(83, 17); + this.LeagueInfoBox.TabIndex = 3; + this.LeagueInfoBox.Text = "League Info"; + this.LeagueInfoBox.UseVisualStyleBackColor = true; + this.LeagueInfoBox.CheckedChanged += new System.EventHandler(this.LeagueInfoBox_CheckedChanged); + // + // groupBox4 + // + this.groupBox4.Controls.Add(this.DefaultGameTab); + this.groupBox4.Location = new System.Drawing.Point(103, 3); + this.groupBox4.Name = "groupBox4"; + this.groupBox4.Size = new System.Drawing.Size(155, 50); + this.groupBox4.TabIndex = 12; + this.groupBox4.TabStop = false; + this.groupBox4.Text = "Default Game Tab"; + // + // DefaultGameTab + // + this.DefaultGameTab.FormattingEnabled = true; + this.DefaultGameTab.Items.AddRange(new object[] { "Champs", "Recent"}); - this.DefaultGameTab.Location = new System.Drawing.Point(6, 19); - this.DefaultGameTab.Name = "DefaultGameTab"; - this.DefaultGameTab.Size = new System.Drawing.Size(143, 21); - this.DefaultGameTab.TabIndex = 0; - this.DefaultGameTab.Text = "Recent"; - this.DefaultGameTab.TextChanged += new System.EventHandler(this.DefaultGameTab_TextChanged); - // - // groupBox3 - // - this.groupBox3.Controls.Add(this.DownloadLink); - this.groupBox3.Location = new System.Drawing.Point(11, 114); - this.groupBox3.Name = "groupBox3"; - this.groupBox3.Size = new System.Drawing.Size(81, 39); - this.groupBox3.TabIndex = 11; - this.groupBox3.TabStop = false; - this.groupBox3.Text = "Update Link"; - // - // DownloadLink - // - this.DownloadLink.AutoSize = true; - this.DownloadLink.Location = new System.Drawing.Point(6, 16); - this.DownloadLink.Name = "DownloadLink"; - this.DownloadLink.Size = new System.Drawing.Size(55, 13); - this.DownloadLink.TabIndex = 2; - this.DownloadLink.TabStop = true; - this.DownloadLink.Text = "Download"; - this.DownloadLink.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.DownloadLink_LinkClicked); - // - // groupBox2 - // - this.groupBox2.Controls.Add(this.RegionList); - this.groupBox2.Location = new System.Drawing.Point(11, 59); - this.groupBox2.Name = "groupBox2"; - this.groupBox2.Size = new System.Drawing.Size(155, 49); - this.groupBox2.TabIndex = 10; - this.groupBox2.TabStop = false; - this.groupBox2.Text = "League Of Legends Region"; - // - // RegionList - // - this.RegionList.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; - this.RegionList.FormattingEnabled = true; - this.RegionList.Location = new System.Drawing.Point(6, 19); - this.RegionList.Name = "RegionList"; - this.RegionList.Size = new System.Drawing.Size(121, 21); - this.RegionList.TabIndex = 3; - this.RegionList.SelectedIndexChanged += new System.EventHandler(this.RegionList_SelectedIndexChanged); - // - // groupBox1 - // - this.groupBox1.Controls.Add(this.InstallButton); - this.groupBox1.Location = new System.Drawing.Point(11, 3); - this.groupBox1.Name = "groupBox1"; - this.groupBox1.Size = new System.Drawing.Size(86, 50); - this.groupBox1.TabIndex = 9; - this.groupBox1.TabStop = false; - this.groupBox1.Text = "Certificates"; - // - // InstallButton - // - this.InstallButton.Location = new System.Drawing.Point(6, 19); - this.InstallButton.Name = "InstallButton"; - this.InstallButton.Size = new System.Drawing.Size(75, 23); - this.InstallButton.TabIndex = 0; - this.InstallButton.Text = "Install"; - this.InstallButton.UseVisualStyleBackColor = true; - this.InstallButton.Click += new System.EventHandler(this.InstallButton_Click); - // - // ModuleGroupBox - // - this.ModuleGroupBox.Controls.Add(this.MirrorRadio); - this.ModuleGroupBox.Controls.Add(this.ToolHelpRadio); - this.ModuleGroupBox.Controls.Add(this.ProcessRadio); - this.ModuleGroupBox.Location = new System.Drawing.Point(107, 182); - this.ModuleGroupBox.Name = "ModuleGroupBox"; - this.ModuleGroupBox.Size = new System.Drawing.Size(125, 95); - this.ModuleGroupBox.TabIndex = 8; - this.ModuleGroupBox.TabStop = false; - this.ModuleGroupBox.Text = "Module Resolver"; - // - // MirrorRadio - // - this.MirrorRadio.AutoSize = true; - this.MirrorRadio.Location = new System.Drawing.Point(6, 65); - this.MirrorRadio.Name = "MirrorRadio"; - this.MirrorRadio.Size = new System.Drawing.Size(51, 17); - this.MirrorRadio.TabIndex = 2; - this.MirrorRadio.Text = "Mirror"; - this.MirrorRadio.UseVisualStyleBackColor = true; - // - // ToolHelpRadio - // - this.ToolHelpRadio.AutoSize = true; - this.ToolHelpRadio.Location = new System.Drawing.Point(6, 42); - this.ToolHelpRadio.Name = "ToolHelpRadio"; - this.ToolHelpRadio.Size = new System.Drawing.Size(78, 17); - this.ToolHelpRadio.TabIndex = 1; - this.ToolHelpRadio.Text = "Toolhelp32"; - this.ToolHelpRadio.UseVisualStyleBackColor = true; - // - // ProcessRadio - // - this.ProcessRadio.AutoSize = true; - this.ProcessRadio.Checked = true; - this.ProcessRadio.Location = new System.Drawing.Point(6, 19); - this.ProcessRadio.Name = "ProcessRadio"; - this.ProcessRadio.Size = new System.Drawing.Size(88, 17); - this.ProcessRadio.TabIndex = 0; - this.ProcessRadio.TabStop = true; - this.ProcessRadio.Text = "ProcessClass"; - this.ProcessRadio.UseVisualStyleBackColor = true; - // - // LeaveCheck - // - this.LeaveCheck.AutoSize = true; - this.LeaveCheck.Location = new System.Drawing.Point(16, 368); - this.LeaveCheck.Name = "LeaveCheck"; - this.LeaveCheck.Size = new System.Drawing.Size(120, 17); - this.LeaveCheck.TabIndex = 7; - this.LeaveCheck.Text = "Delete LeaveBuster"; - this.LeaveCheck.UseVisualStyleBackColor = true; - // - // DevCheck - // - this.DevCheck.AutoSize = true; - this.DevCheck.Location = new System.Drawing.Point(16, 345); - this.DevCheck.Name = "DevCheck"; - this.DevCheck.Size = new System.Drawing.Size(76, 17); - this.DevCheck.TabIndex = 6; - this.DevCheck.Text = "Dev Mode"; - this.DevCheck.UseVisualStyleBackColor = true; - this.DevCheck.Click += new System.EventHandler(this.DevCheck_Click); - // - // LogGroupBox - // - this.LogGroupBox.Controls.Add(this.DebugCheck); - this.LogGroupBox.Controls.Add(this.TraceCheck); - this.LogGroupBox.Location = new System.Drawing.Point(10, 270); - this.LogGroupBox.Name = "LogGroupBox"; - this.LogGroupBox.Size = new System.Drawing.Size(91, 69); - this.LogGroupBox.TabIndex = 5; - this.LogGroupBox.TabStop = false; - this.LogGroupBox.Text = "Log Levels"; - // - // DebugCheck - // - this.DebugCheck.AutoSize = true; - this.DebugCheck.Location = new System.Drawing.Point(6, 42); - this.DebugCheck.Name = "DebugCheck"; - this.DebugCheck.Size = new System.Drawing.Size(58, 17); - this.DebugCheck.TabIndex = 1; - this.DebugCheck.Text = "Debug"; - this.DebugCheck.UseVisualStyleBackColor = true; - this.DebugCheck.Click += new System.EventHandler(this.DebugCheck_Click); - // - // TraceCheck - // - this.TraceCheck.AutoSize = true; - this.TraceCheck.Location = new System.Drawing.Point(6, 19); - this.TraceCheck.Name = "TraceCheck"; - this.TraceCheck.Size = new System.Drawing.Size(54, 17); - this.TraceCheck.TabIndex = 0; - this.TraceCheck.Text = "Trace"; - this.TraceCheck.UseVisualStyleBackColor = true; - this.TraceCheck.Click += new System.EventHandler(this.TraceCheck_Click); - // - // DatabaseGroupBox - // - this.DatabaseGroupBox.Controls.Add(this.ExportButton); - this.DatabaseGroupBox.Controls.Add(this.ImportButton); + this.DefaultGameTab.Location = new System.Drawing.Point(6, 19); + this.DefaultGameTab.Name = "DefaultGameTab"; + this.DefaultGameTab.Size = new System.Drawing.Size(143, 21); + this.DefaultGameTab.TabIndex = 0; + this.DefaultGameTab.Text = "Recent"; + this.DefaultGameTab.TextChanged += new System.EventHandler(this.DefaultGameTab_TextChanged); + // + // groupBox3 + // + this.groupBox3.Controls.Add(this.DownloadLink); + this.groupBox3.Location = new System.Drawing.Point(11, 114); + this.groupBox3.Name = "groupBox3"; + this.groupBox3.Size = new System.Drawing.Size(81, 39); + this.groupBox3.TabIndex = 11; + this.groupBox3.TabStop = false; + this.groupBox3.Text = "Update Link"; + // + // DownloadLink + // + this.DownloadLink.AutoSize = true; + this.DownloadLink.Location = new System.Drawing.Point(6, 16); + this.DownloadLink.Name = "DownloadLink"; + this.DownloadLink.Size = new System.Drawing.Size(55, 13); + this.DownloadLink.TabIndex = 2; + this.DownloadLink.TabStop = true; + this.DownloadLink.Text = "Download"; + this.DownloadLink.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.DownloadLink_LinkClicked); + // + // groupBox2 + // + this.groupBox2.Controls.Add(this.RegionList); + this.groupBox2.Location = new System.Drawing.Point(11, 59); + this.groupBox2.Name = "groupBox2"; + this.groupBox2.Size = new System.Drawing.Size(155, 49); + this.groupBox2.TabIndex = 10; + this.groupBox2.TabStop = false; + this.groupBox2.Text = "League Of Legends Region"; + // + // RegionList + // + this.RegionList.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; + this.RegionList.FormattingEnabled = true; + this.RegionList.Location = new System.Drawing.Point(6, 19); + this.RegionList.Name = "RegionList"; + this.RegionList.Size = new System.Drawing.Size(121, 21); + this.RegionList.TabIndex = 3; + this.RegionList.SelectedIndexChanged += new System.EventHandler(this.RegionList_SelectedIndexChanged); + // + // groupBox1 + // + this.groupBox1.Controls.Add(this.InstallButton); + this.groupBox1.Location = new System.Drawing.Point(11, 3); + this.groupBox1.Name = "groupBox1"; + this.groupBox1.Size = new System.Drawing.Size(86, 50); + this.groupBox1.TabIndex = 9; + this.groupBox1.TabStop = false; + this.groupBox1.Text = "Certificates"; + // + // InstallButton + // + this.InstallButton.Location = new System.Drawing.Point(6, 19); + this.InstallButton.Name = "InstallButton"; + this.InstallButton.Size = new System.Drawing.Size(75, 23); + this.InstallButton.TabIndex = 0; + this.InstallButton.Text = "Install"; + this.InstallButton.UseVisualStyleBackColor = true; + this.InstallButton.Click += new System.EventHandler(this.InstallButton_Click); + // + // ModuleGroupBox + // + this.ModuleGroupBox.Controls.Add(this.MirrorRadio); + this.ModuleGroupBox.Controls.Add(this.ToolHelpRadio); + this.ModuleGroupBox.Controls.Add(this.ProcessRadio); + this.ModuleGroupBox.Location = new System.Drawing.Point(107, 182); + this.ModuleGroupBox.Name = "ModuleGroupBox"; + this.ModuleGroupBox.Size = new System.Drawing.Size(125, 95); + this.ModuleGroupBox.TabIndex = 8; + this.ModuleGroupBox.TabStop = false; + this.ModuleGroupBox.Text = "Module Resolver"; + // + // MirrorRadio + // + this.MirrorRadio.AutoSize = true; + this.MirrorRadio.Location = new System.Drawing.Point(6, 65); + this.MirrorRadio.Name = "MirrorRadio"; + this.MirrorRadio.Size = new System.Drawing.Size(51, 17); + this.MirrorRadio.TabIndex = 2; + this.MirrorRadio.Text = "Mirror"; + this.MirrorRadio.UseVisualStyleBackColor = true; + // + // ToolHelpRadio + // + this.ToolHelpRadio.AutoSize = true; + this.ToolHelpRadio.Location = new System.Drawing.Point(6, 42); + this.ToolHelpRadio.Name = "ToolHelpRadio"; + this.ToolHelpRadio.Size = new System.Drawing.Size(78, 17); + this.ToolHelpRadio.TabIndex = 1; + this.ToolHelpRadio.Text = "Toolhelp32"; + this.ToolHelpRadio.UseVisualStyleBackColor = true; + // + // ProcessRadio + // + this.ProcessRadio.AutoSize = true; + this.ProcessRadio.Checked = true; + this.ProcessRadio.Location = new System.Drawing.Point(6, 19); + this.ProcessRadio.Name = "ProcessRadio"; + this.ProcessRadio.Size = new System.Drawing.Size(88, 17); + this.ProcessRadio.TabIndex = 0; + this.ProcessRadio.TabStop = true; + this.ProcessRadio.Text = "ProcessClass"; + this.ProcessRadio.UseVisualStyleBackColor = true; + // + // LeaveCheck + // + this.LeaveCheck.AutoSize = true; + this.LeaveCheck.Location = new System.Drawing.Point(16, 368); + this.LeaveCheck.Name = "LeaveCheck"; + this.LeaveCheck.Size = new System.Drawing.Size(120, 17); + this.LeaveCheck.TabIndex = 7; + this.LeaveCheck.Text = "Delete LeaveBuster"; + this.LeaveCheck.UseVisualStyleBackColor = true; + // + // DevCheck + // + this.DevCheck.AutoSize = true; + this.DevCheck.Location = new System.Drawing.Point(16, 345); + this.DevCheck.Name = "DevCheck"; + this.DevCheck.Size = new System.Drawing.Size(76, 17); + this.DevCheck.TabIndex = 6; + this.DevCheck.Text = "Dev Mode"; + this.DevCheck.UseVisualStyleBackColor = true; + this.DevCheck.Click += new System.EventHandler(this.DevCheck_Click); + // + // LogGroupBox + // + this.LogGroupBox.Controls.Add(this.DebugCheck); + this.LogGroupBox.Controls.Add(this.TraceCheck); + this.LogGroupBox.Location = new System.Drawing.Point(10, 270); + this.LogGroupBox.Name = "LogGroupBox"; + this.LogGroupBox.Size = new System.Drawing.Size(91, 69); + this.LogGroupBox.TabIndex = 5; + this.LogGroupBox.TabStop = false; + this.LogGroupBox.Text = "Log Levels"; + // + // DebugCheck + // + this.DebugCheck.AutoSize = true; + this.DebugCheck.Location = new System.Drawing.Point(6, 42); + this.DebugCheck.Name = "DebugCheck"; + this.DebugCheck.Size = new System.Drawing.Size(58, 17); + this.DebugCheck.TabIndex = 1; + this.DebugCheck.Text = "Debug"; + this.DebugCheck.UseVisualStyleBackColor = true; + this.DebugCheck.Click += new System.EventHandler(this.DebugCheck_Click); + // + // TraceCheck + // + this.TraceCheck.AutoSize = true; + this.TraceCheck.Location = new System.Drawing.Point(6, 19); + this.TraceCheck.Name = "TraceCheck"; + this.TraceCheck.Size = new System.Drawing.Size(54, 17); + this.TraceCheck.TabIndex = 0; + this.TraceCheck.Text = "Trace"; + this.TraceCheck.UseVisualStyleBackColor = true; + this.TraceCheck.Click += new System.EventHandler(this.TraceCheck_Click); + // + // DatabaseGroupBox + // + this.DatabaseGroupBox.Controls.Add(this.ExportButton); + this.DatabaseGroupBox.Controls.Add(this.ImportButton); this.DatabaseGroupBox.Location = new System.Drawing.Point(11, 182); - this.DatabaseGroupBox.Name = "DatabaseGroupBox"; - this.DatabaseGroupBox.Size = new System.Drawing.Size(90, 82); - this.DatabaseGroupBox.TabIndex = 4; - this.DatabaseGroupBox.TabStop = false; - this.DatabaseGroupBox.Text = "Database"; - // - // ExportButton - // - this.ExportButton.Location = new System.Drawing.Point(6, 48); - this.ExportButton.Name = "ExportButton"; - this.ExportButton.Size = new System.Drawing.Size(75, 23); - this.ExportButton.TabIndex = 1; - this.ExportButton.Text = "Export"; - this.ExportButton.UseVisualStyleBackColor = true; - this.ExportButton.Click += new System.EventHandler(this.ExportButton_Click); - // - // ImportButton - // - this.ImportButton.Location = new System.Drawing.Point(6, 19); - this.ImportButton.Name = "ImportButton"; - this.ImportButton.Size = new System.Drawing.Size(75, 23); - this.ImportButton.TabIndex = 0; - this.ImportButton.Text = "Import"; - this.ImportButton.UseVisualStyleBackColor = true; - this.ImportButton.Click += new System.EventHandler(this.ImportButton_Click); - // - // LogTab - // - this.LogTab.Controls.Add(this.LogList); - this.LogTab.Location = new System.Drawing.Point(4, 22); - this.LogTab.Name = "LogTab"; - this.LogTab.Size = new System.Drawing.Size(1157, 842); - this.LogTab.TabIndex = 3; - this.LogTab.Text = "Log"; - this.LogTab.UseVisualStyleBackColor = true; - // - // LogList - // - this.LogList.Dock = System.Windows.Forms.DockStyle.Fill; - this.LogList.FormattingEnabled = true; - this.LogList.Location = new System.Drawing.Point(0, 0); - this.LogList.Name = "LogList"; - this.LogList.Size = new System.Drawing.Size(1157, 842); - this.LogList.TabIndex = 0; - // - // ChangesTab - // - this.ChangesTab.Controls.Add(this.ChangesText); - this.ChangesTab.Location = new System.Drawing.Point(4, 22); - this.ChangesTab.Name = "ChangesTab"; - this.ChangesTab.Padding = new System.Windows.Forms.Padding(3); - this.ChangesTab.Size = new System.Drawing.Size(1157, 842); - this.ChangesTab.TabIndex = 4; - this.ChangesTab.Text = "Changes"; - this.ChangesTab.UseVisualStyleBackColor = true; - // - // ChangesText - // - this.ChangesText.BackColor = System.Drawing.SystemColors.Window; - this.ChangesText.Dock = System.Windows.Forms.DockStyle.Fill; - this.ChangesText.Location = new System.Drawing.Point(3, 3); - this.ChangesText.Name = "ChangesText"; - this.ChangesText.ReadOnly = true; - this.ChangesText.Size = new System.Drawing.Size(1151, 836); - this.ChangesText.TabIndex = 0; - this.ChangesText.Text = "Loading..."; - // - // DevTab - // - this.DevTab.Controls.Add(this.splitContainer1); - this.DevTab.Location = new System.Drawing.Point(4, 22); - this.DevTab.Name = "DevTab"; - this.DevTab.Size = new System.Drawing.Size(1157, 842); - this.DevTab.TabIndex = 5; - this.DevTab.Text = "Dev"; - this.DevTab.UseVisualStyleBackColor = true; - // - // splitContainer1 - // - this.splitContainer1.Dock = System.Windows.Forms.DockStyle.Fill; - this.splitContainer1.Location = new System.Drawing.Point(0, 0); - this.splitContainer1.Name = "splitContainer1"; - this.splitContainer1.Orientation = System.Windows.Forms.Orientation.Horizontal; - // - // splitContainer1.Panel1 - // - this.splitContainer1.Panel1.Controls.Add(this.CallView); - // - // splitContainer1.Panel2 - // - this.splitContainer1.Panel2.Controls.Add(this.CallTree); - this.splitContainer1.Size = new System.Drawing.Size(1157, 842); - this.splitContainer1.SplitterDistance = 270; - this.splitContainer1.TabIndex = 0; - // - // CallView - // - this.CallView.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] { + this.DatabaseGroupBox.Name = "DatabaseGroupBox"; + this.DatabaseGroupBox.Size = new System.Drawing.Size(90, 82); + this.DatabaseGroupBox.TabIndex = 4; + this.DatabaseGroupBox.TabStop = false; + this.DatabaseGroupBox.Text = "Database"; + // + // ExportButton + // + this.ExportButton.Location = new System.Drawing.Point(6, 48); + this.ExportButton.Name = "ExportButton"; + this.ExportButton.Size = new System.Drawing.Size(75, 23); + this.ExportButton.TabIndex = 1; + this.ExportButton.Text = "Export"; + this.ExportButton.UseVisualStyleBackColor = true; + this.ExportButton.Click += new System.EventHandler(this.ExportButton_Click); + // + // ImportButton + // + this.ImportButton.Location = new System.Drawing.Point(6, 19); + this.ImportButton.Name = "ImportButton"; + this.ImportButton.Size = new System.Drawing.Size(75, 23); + this.ImportButton.TabIndex = 0; + this.ImportButton.Text = "Import"; + this.ImportButton.UseVisualStyleBackColor = true; + this.ImportButton.Click += new System.EventHandler(this.ImportButton_Click); + // + // LogTab + // + this.LogTab.Controls.Add(this.LogList); + this.LogTab.Location = new System.Drawing.Point(4, 22); + this.LogTab.Name = "LogTab"; + this.LogTab.Size = new System.Drawing.Size(1157, 842); + this.LogTab.TabIndex = 3; + this.LogTab.Text = "Log"; + this.LogTab.UseVisualStyleBackColor = true; + // + // LogList + // + this.LogList.Dock = System.Windows.Forms.DockStyle.Fill; + this.LogList.FormattingEnabled = true; + this.LogList.Location = new System.Drawing.Point(0, 0); + this.LogList.Name = "LogList"; + this.LogList.Size = new System.Drawing.Size(1157, 842); + this.LogList.TabIndex = 0; + // + // ChangesTab + // + this.ChangesTab.Controls.Add(this.ChangesText); + this.ChangesTab.Location = new System.Drawing.Point(4, 22); + this.ChangesTab.Name = "ChangesTab"; + this.ChangesTab.Padding = new System.Windows.Forms.Padding(3); + this.ChangesTab.Size = new System.Drawing.Size(1157, 842); + this.ChangesTab.TabIndex = 4; + this.ChangesTab.Text = "Changes"; + this.ChangesTab.UseVisualStyleBackColor = true; + // + // ChangesText + // + this.ChangesText.BackColor = System.Drawing.SystemColors.Window; + this.ChangesText.Dock = System.Windows.Forms.DockStyle.Fill; + this.ChangesText.Location = new System.Drawing.Point(3, 3); + this.ChangesText.Name = "ChangesText"; + this.ChangesText.ReadOnly = true; + this.ChangesText.Size = new System.Drawing.Size(1151, 836); + this.ChangesText.TabIndex = 0; + this.ChangesText.Text = "Loading..."; + // + // DevTab + // + this.DevTab.Controls.Add(this.splitContainer1); + this.DevTab.Location = new System.Drawing.Point(4, 22); + this.DevTab.Name = "DevTab"; + this.DevTab.Size = new System.Drawing.Size(1157, 842); + this.DevTab.TabIndex = 5; + this.DevTab.Text = "Dev"; + this.DevTab.UseVisualStyleBackColor = true; + // + // splitContainer1 + // + this.splitContainer1.Dock = System.Windows.Forms.DockStyle.Fill; + this.splitContainer1.Location = new System.Drawing.Point(0, 0); + this.splitContainer1.Name = "splitContainer1"; + this.splitContainer1.Orientation = System.Windows.Forms.Orientation.Horizontal; + // + // splitContainer1.Panel1 + // + this.splitContainer1.Panel1.Controls.Add(this.CallView); + // + // splitContainer1.Panel2 + // + this.splitContainer1.Panel2.Controls.Add(this.CallTree); + this.splitContainer1.Size = new System.Drawing.Size(1157, 842); + this.splitContainer1.SplitterDistance = 270; + this.splitContainer1.TabIndex = 0; + // + // CallView + // + this.CallView.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] { this.columnHeader1}); - this.CallView.ContextMenuStrip = this.CallEditStrip; - this.CallView.Dock = System.Windows.Forms.DockStyle.Fill; - this.CallView.FullRowSelect = true; - this.CallView.HeaderStyle = System.Windows.Forms.ColumnHeaderStyle.None; - this.CallView.HideSelection = false; - this.CallView.Location = new System.Drawing.Point(0, 0); - this.CallView.MultiSelect = false; - this.CallView.Name = "CallView"; - this.CallView.Size = new System.Drawing.Size(1157, 270); - this.CallView.TabIndex = 0; - this.CallView.UseCompatibleStateImageBehavior = false; - this.CallView.View = System.Windows.Forms.View.Details; - this.CallView.SelectedIndexChanged += new System.EventHandler(this.CallView_SelectedIndexChanged); - this.CallView.Resize += new System.EventHandler(this.CallView_Resize); - // - // columnHeader1 - // - this.columnHeader1.Width = 476; - // - // CallEditStrip - // - this.CallEditStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { + this.CallView.ContextMenuStrip = this.CallEditStrip; + this.CallView.Dock = System.Windows.Forms.DockStyle.Fill; + this.CallView.FullRowSelect = true; + this.CallView.HeaderStyle = System.Windows.Forms.ColumnHeaderStyle.None; + this.CallView.HideSelection = false; + this.CallView.Location = new System.Drawing.Point(0, 0); + this.CallView.MultiSelect = false; + this.CallView.Name = "CallView"; + this.CallView.Size = new System.Drawing.Size(1157, 270); + this.CallView.TabIndex = 0; + this.CallView.UseCompatibleStateImageBehavior = false; + this.CallView.View = System.Windows.Forms.View.Details; + this.CallView.SelectedIndexChanged += new System.EventHandler(this.CallView_SelectedIndexChanged); + this.CallView.Resize += new System.EventHandler(this.CallView_Resize); + // + // columnHeader1 + // + this.columnHeader1.Width = 476; + // + // CallEditStrip + // + this.CallEditStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.dumpToolStripMenuItem, this.clearToolStripMenuItem1}); - this.CallEditStrip.Name = "CallEditStrip"; - this.CallEditStrip.Size = new System.Drawing.Size(108, 48); - // - // dumpToolStripMenuItem - // - this.dumpToolStripMenuItem.Name = "dumpToolStripMenuItem"; - this.dumpToolStripMenuItem.Size = new System.Drawing.Size(107, 22); - this.dumpToolStripMenuItem.Text = "Dump"; - this.dumpToolStripMenuItem.Click += new System.EventHandler(this.dumpToolStripMenuItem_Click); - // - // clearToolStripMenuItem1 - // - this.clearToolStripMenuItem1.Name = "clearToolStripMenuItem1"; - this.clearToolStripMenuItem1.Size = new System.Drawing.Size(107, 22); - this.clearToolStripMenuItem1.Text = "Clear"; - this.clearToolStripMenuItem1.Click += new System.EventHandler(this.clearToolStripMenuItem1_Click); - // - // CallTree - // - this.CallTree.Dock = System.Windows.Forms.DockStyle.Fill; - this.CallTree.Location = new System.Drawing.Point(0, 0); - this.CallTree.Name = "CallTree"; - this.CallTree.Size = new System.Drawing.Size(1157, 568); - this.CallTree.TabIndex = 0; - // - // teamControl1 - // - this.teamControl1.BackColor = System.Drawing.Color.White; - this.teamControl1.Dock = System.Windows.Forms.DockStyle.Fill; - this.teamControl1.Location = new System.Drawing.Point(0, 0); - this.teamControl1.MinimumSize = new System.Drawing.Size(500, 836); - this.teamControl1.Name = "teamControl1"; - this.teamControl1.PlayerContextMenuStrip = this.PlayerEditStrip; - this.teamControl1.Size = new System.Drawing.Size(575, 836); - this.teamControl1.TabIndex = 0; - this.teamControl1.TeamSize = 5; - this.teamControl1.Text = "Team 1"; - // - // teamControl2 - // - this.teamControl2.BackColor = System.Drawing.Color.White; - this.teamControl2.Dock = System.Windows.Forms.DockStyle.Fill; - this.teamControl2.Location = new System.Drawing.Point(0, 0); - this.teamControl2.MinimumSize = new System.Drawing.Size(500, 836); - this.teamControl2.Name = "teamControl2"; - this.teamControl2.PlayerContextMenuStrip = this.PlayerEditStrip; - this.teamControl2.Size = new System.Drawing.Size(575, 836); - this.teamControl2.TabIndex = 1; - this.teamControl2.TeamSize = 5; - this.teamControl2.Text = "Team 2"; - // - // groupBox5 - // - this.groupBox5.Controls.Add(this.TopChampsBox); - this.groupBox5.Controls.Add(this.StatsBox); - this.groupBox5.Controls.Add(this.RecentGamesBox); - this.groupBox5.Controls.Add(this.LeagueInfoBox); - this.groupBox5.Location = new System.Drawing.Point(172, 59); - this.groupBox5.Name = "groupBox5"; - this.groupBox5.Size = new System.Drawing.Size(125, 117); - this.groupBox5.TabIndex = 13; - this.groupBox5.TabStop = false; - this.groupBox5.Text = "Load What Stats"; - // Shared properties between checkboxes - - RecentGamesBox.AutoSize = true; - RecentGamesBox.Checked = true; - RecentGamesBox.CheckState = System.Windows.Forms.CheckState.Checked; - RecentGamesBox.Location = new System.Drawing.Point(6, 22); - RecentGamesBox.UseVisualStyleBackColor = true; - RecentGamesBox.TabIndex = 0; - - StatsBox.AutoSize = true; - StatsBox.Checked = true; - StatsBox.CheckState = System.Windows.Forms.CheckState.Checked; - StatsBox.Location = new System.Drawing.Point(6, 45); - StatsBox.UseVisualStyleBackColor = true; - StatsBox.TabIndex = 1; - - TopChampsBox.AutoSize = true; - TopChampsBox.Checked = true; - TopChampsBox.CheckState = System.Windows.Forms.CheckState.Checked; - TopChampsBox.Location = new System.Drawing.Point(6, 68); - TopChampsBox.UseVisualStyleBackColor = true; - TopChampsBox.TabIndex = 2; - - LeagueInfoBox.AutoSize = true; - LeagueInfoBox.Checked = true; - LeagueInfoBox.CheckState = System.Windows.Forms.CheckState.Checked; - LeagueInfoBox.Location = new System.Drawing.Point(6, 91); - LeagueInfoBox.UseVisualStyleBackColor = true; - LeagueInfoBox.TabIndex = 3; - // - // RecentGamesBox - // - this.RecentGamesBox.Name = "RecentGamesBox"; - this.RecentGamesBox.Size = new System.Drawing.Size(97, 17); - this.RecentGamesBox.Text = "Recent Games"; - this.RecentGamesBox.CheckedChanged += new System.EventHandler(this.RecentGamesBox_CheckedChanged); - // - // StatsBox - // - this.StatsBox.Name = "StatsBox"; - this.StatsBox.Size = new System.Drawing.Size(50, 17); - this.StatsBox.Text = "Stats"; - this.StatsBox.CheckedChanged += new System.EventHandler(this.StatsBox_CheckedChanged); - // - // TopChampsBox - // - this.TopChampsBox.Name = "TopChampsBox"; - this.TopChampsBox.Size = new System.Drawing.Size(86, 17); - this.TopChampsBox.Text = "Top Champs"; - this.TopChampsBox.CheckedChanged += new System.EventHandler(this.TopChampsBox_CheckedChanged); + this.CallEditStrip.Name = "CallEditStrip"; + this.CallEditStrip.Size = new System.Drawing.Size(108, 48); // - // LeagueInfoBox + // dumpToolStripMenuItem // - this.LeagueInfoBox.Name = "LeagueInfoBox"; - this.LeagueInfoBox.Size = new System.Drawing.Size(86, 17); - this.LeagueInfoBox.Text = "League Info"; - this.LeagueInfoBox.CheckedChanged += new System.EventHandler(this.LeagueInfoBox_CheckedChanged); - // - // MainForm - // - this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.ClientSize = new System.Drawing.Size(1165, 868); - this.Controls.Add(this.tabControl1); - this.MinimumSize = new System.Drawing.Size(800, 38); - this.Name = "MainForm"; - this.Text = "LoL"; - this.Shown += new System.EventHandler(this.MainForm_Shown); - this.ResizeBegin += new System.EventHandler(this.MainForm_ResizeBegin); - this.ResizeEnd += new System.EventHandler(this.MainForm_ResizeEnd); - this.tabControl1.ResumeLayout(false); - this.NewsTab.ResumeLayout(false); - this.GameTab.ResumeLayout(false); - this.splitContainer2.Panel1.ResumeLayout(false); - this.splitContainer2.Panel2.ResumeLayout(false); - ((System.ComponentModel.ISupportInitialize)(this.splitContainer2)).EndInit(); - this.splitContainer2.ResumeLayout(false); - this.PlayerEditStrip.ResumeLayout(false); - this.SettingsTab.ResumeLayout(false); - this.SettingsTab.PerformLayout(); - this.groupBox4.ResumeLayout(false); - this.groupBox3.ResumeLayout(false); - this.groupBox3.PerformLayout(); - this.groupBox2.ResumeLayout(false); - this.groupBox1.ResumeLayout(false); - this.ModuleGroupBox.ResumeLayout(false); - this.ModuleGroupBox.PerformLayout(); - this.LogGroupBox.ResumeLayout(false); - this.LogGroupBox.PerformLayout(); - this.DatabaseGroupBox.ResumeLayout(false); - this.LogTab.ResumeLayout(false); - this.ChangesTab.ResumeLayout(false); - this.DevTab.ResumeLayout(false); - this.splitContainer1.Panel1.ResumeLayout(false); - this.splitContainer1.Panel2.ResumeLayout(false); - ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).EndInit(); - this.splitContainer1.ResumeLayout(false); - this.CallEditStrip.ResumeLayout(false); - this.groupBox5.ResumeLayout(false); - this.groupBox5.PerformLayout(); - this.ResumeLayout(false); + this.dumpToolStripMenuItem.Name = "dumpToolStripMenuItem"; + this.dumpToolStripMenuItem.Size = new System.Drawing.Size(107, 22); + this.dumpToolStripMenuItem.Text = "Dump"; + this.dumpToolStripMenuItem.Click += new System.EventHandler(this.dumpToolStripMenuItem_Click); + // + // clearToolStripMenuItem1 + // + this.clearToolStripMenuItem1.Name = "clearToolStripMenuItem1"; + this.clearToolStripMenuItem1.Size = new System.Drawing.Size(107, 22); + this.clearToolStripMenuItem1.Text = "Clear"; + this.clearToolStripMenuItem1.Click += new System.EventHandler(this.clearToolStripMenuItem1_Click); + // + // CallTree + // + this.CallTree.Dock = System.Windows.Forms.DockStyle.Fill; + this.CallTree.Location = new System.Drawing.Point(0, 0); + this.CallTree.Name = "CallTree"; + this.CallTree.Size = new System.Drawing.Size(1157, 568); + this.CallTree.TabIndex = 0; + // + // statusMask + // + this.statusMask.AutoSize = true; + this.statusMask.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.statusMask.Location = new System.Drawing.Point(287, 5); + this.statusMask.Name = "statusMask"; + this.statusMask.Size = new System.Drawing.Size(99, 20); + this.statusMask.TabIndex = 4; + this.statusMask.Text = "0000000000"; + // + // MainForm + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(1165, 868); + this.Controls.Add(this.tabControl1); + this.MinimumSize = new System.Drawing.Size(800, 39); + this.Name = "MainForm"; + this.Text = "LoL"; + this.Shown += new System.EventHandler(this.MainForm_Shown); + this.ResizeBegin += new System.EventHandler(this.MainForm_ResizeBegin); + this.ResizeEnd += new System.EventHandler(this.MainForm_ResizeEnd); + this.tabControl1.ResumeLayout(false); + this.NewsTab.ResumeLayout(false); + this.GameTab.ResumeLayout(false); + this.splitContainer2.Panel1.ResumeLayout(false); + this.splitContainer2.Panel1.PerformLayout(); + this.splitContainer2.Panel2.ResumeLayout(false); + ((System.ComponentModel.ISupportInitialize)(this.splitContainer2)).EndInit(); + this.splitContainer2.ResumeLayout(false); + this.PlayerEditStrip.ResumeLayout(false); + this.SettingsTab.ResumeLayout(false); + this.SettingsTab.PerformLayout(); + this.groupBox5.ResumeLayout(false); + this.groupBox5.PerformLayout(); + this.groupBox4.ResumeLayout(false); + this.groupBox3.ResumeLayout(false); + this.groupBox3.PerformLayout(); + this.groupBox2.ResumeLayout(false); + this.groupBox1.ResumeLayout(false); + this.ModuleGroupBox.ResumeLayout(false); + this.ModuleGroupBox.PerformLayout(); + this.LogGroupBox.ResumeLayout(false); + this.LogGroupBox.PerformLayout(); + this.DatabaseGroupBox.ResumeLayout(false); + this.LogTab.ResumeLayout(false); + this.ChangesTab.ResumeLayout(false); + this.DevTab.ResumeLayout(false); + this.splitContainer1.Panel1.ResumeLayout(false); + this.splitContainer1.Panel2.ResumeLayout(false); + ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).EndInit(); + this.splitContainer1.ResumeLayout(false); + this.CallEditStrip.ResumeLayout(false); + this.ResumeLayout(false); } @@ -773,6 +793,8 @@ private void InitializeComponent() private System.Windows.Forms.CheckBox StatsBox; private System.Windows.Forms.CheckBox RecentGamesBox; private System.Windows.Forms.CheckBox LeagueInfoBox; + private System.Windows.Forms.Label statusLabel; + private System.Windows.Forms.Label statusMask; } } diff --git a/LoLNotes/Gui/MainForm.cs b/LoLNotes/Gui/MainForm.cs index c8f1179..1d4e825 100644 --- a/LoLNotes/Gui/MainForm.cs +++ b/LoLNotes/Gui/MainForm.cs @@ -81,7 +81,7 @@ public partial class MainForm : Form SummonerData SelfSummoner; MainSettings Settings { get { return MainSettings.Instance; } } - + public MainForm() { InitializeComponent(); @@ -583,6 +583,8 @@ public void UpdateLists(GameDTO lobby) return; } + statusMask.Text = lobby.StatusOfParticipants; + if (lobby.GameState == "TERMINATED") { return; diff --git a/LoLNotes/Messages/GameLobby/GameDTO.cs b/LoLNotes/Messages/GameLobby/GameDTO.cs index fb3df8d..1711f98 100644 --- a/LoLNotes/Messages/GameLobby/GameDTO.cs +++ b/LoLNotes/Messages/GameLobby/GameDTO.cs @@ -40,6 +40,13 @@ public GameDTO(ASObject obj) BaseObject.SetFields(this, obj); } + [InternalName("statusOfParticipants")] + public string StatusOfParticipants + { + get; + set; + } + [InternalName("maxNumPlayers")] public int MaxPlayers { diff --git a/LoLNotes/Properties/CommitInfo.cs b/LoLNotes/Properties/CommitInfo.cs index e8265d2..0d61d37 100644 --- a/LoLNotes/Properties/CommitInfo.cs +++ b/LoLNotes/Properties/CommitInfo.cs @@ -1,3 +1,3 @@ -[assembly: AssemblyCommit("commit daf6def0c8327a4f6b57aa6cc27e8195b0f3f809\nAuthor: SebastienGllmt \nDate: Sat Nov 22 14:02:23 2014 -0800\n\n new screenshot\n", "daf6def0c8327a4f6b57aa6cc27e8195b0f3f809", "SebastienGllmt", " Sat Nov 22 14:02:23 2014 -0800", "new screenshot", "SebastienGllmt@gmail.com")] +[assembly: AssemblyCommit("commit 854bc8f0be8d37356ca7dc1dedc6c7d48a22d4d9\nAuthor: SebastienGllmt \nDate: Sat Nov 29 05:34:06 2014 -0800\n\n Removed unused button\n", "854bc8f0be8d37356ca7dc1dedc6c7d48a22d4d9", "SebastienGllmt", " Sat Nov 29 05:34:06 2014 -0800", "Removed unused button", "SebastienGllmt@gmail.com")] From 20444be5a0acead8c3fd59bb8416ea7f3e61f691 Mon Sep 17 00:00:00 2001 From: SebastienGllmt Date: Sat, 29 Nov 2014 08:39:06 -0800 Subject: [PATCH 24/25] Ability to gray out unranked games --- LoLNotes/Gui/Controls/PlayerControl.cs | 28 ++++++-- LoLNotes/Gui/LoadDataEnum.cs | 3 +- LoLNotes/Gui/MainForm.Designer.cs | 94 +++++++++++++++----------- LoLNotes/Gui/MainForm.cs | 11 ++- LoLNotes/Properties/CommitInfo.cs | 2 +- 5 files changed, 89 insertions(+), 49 deletions(-) diff --git a/LoLNotes/Gui/Controls/PlayerControl.cs b/LoLNotes/Gui/Controls/PlayerControl.cs index 0bf7f95..990140d 100644 --- a/LoLNotes/Gui/Controls/PlayerControl.cs +++ b/LoLNotes/Gui/Controls/PlayerControl.cs @@ -367,14 +367,14 @@ public void SetSeen(int times) SeenCountLabel.Text = "Seen: " + times; } - public void SetGames(RecentGames games) + public void SetGames(RecentGames games, bool grayUnranked) { if (games == null || games.GameStatistics.Count < 1) return; if (InvokeRequired) { - Invoke(new Action(SetGames), games); + Invoke(new Action(SetGames), games, grayUnranked); return; } @@ -408,12 +408,20 @@ public void SetGames(RecentGames games) var assists = game.Statistics.GetInt(RawStat.ASSISTS); var left = game.Leaver; var botgame = game.QueueType == "BOT"; + var unranked = game.QueueType != "RANKED_SOLO_5x5"; var wonlabel = CreateLabel(string.Format("{0}{1}", left ? "[L] " : "", won ? "Won" : "Lost")); - wonlabel.ForeColor = won ? Color.Green : Color.Red; + if (grayUnranked && unranked) + { + wonlabel.ForeColor = Color.Gray; + } + else + { + wonlabel.ForeColor = won ? Color.Green : Color.Red; + } var kdrlbl = CreateLabel(string.Format("({0}/{1}/{2})", kills, deaths, assists)); - kdrlbl.ForeColor = GetKdrColor(kills, deaths); + kdrlbl.ForeColor = GetKdrColor(kills, deaths, grayUnranked && unranked); var champicon = new PictureBox { @@ -480,7 +488,7 @@ static PictureBox CreateSpellPicture(int id) }; } - static Color GetKdrColor(int kills, int deaths) + static Color GetKdrColor(int kills, int deaths, bool gray) { if (deaths == 0) deaths = 1; @@ -507,7 +515,13 @@ static Color GetKdrColor(int kills, int deaths) ratio -= 0.5d; ratio *= 2; } - return Interpolate(top, bot, ratio); + + var color = Interpolate(top, bot, ratio); + if (gray) + { + color = Interpolate(Color.Gray, color, 0.25); + } + return color; } static byte Interpolate(byte from, byte to, double step) @@ -529,7 +543,7 @@ static void kdrtest() { for (var i = 0; i < 10; i++) { - var color = GetKdrColor(i, 10); + var color = GetKdrColor(i, 10, false); Debug.WriteLine(string.Format("Color.FromArgb({0}, {1}, {2}, {3})", color.A, color.R, color.G, color.B)); } } diff --git a/LoLNotes/Gui/LoadDataEnum.cs b/LoLNotes/Gui/LoadDataEnum.cs index f876cd5..d276a11 100644 --- a/LoLNotes/Gui/LoadDataEnum.cs +++ b/LoLNotes/Gui/LoadDataEnum.cs @@ -34,6 +34,7 @@ public enum LoadDataEnum : uint Stats = 2, TopChamps = 4, LeagueInfo = 8, - All = LeagueInfo | TopChamps | Stats | RecentGames, + GrayUnranked = 16, + All = LeagueInfo | TopChamps | Stats | RecentGames | GrayUnranked, } } diff --git a/LoLNotes/Gui/MainForm.Designer.cs b/LoLNotes/Gui/MainForm.Designer.cs index 3a6da06..f67a590 100644 --- a/LoLNotes/Gui/MainForm.Designer.cs +++ b/LoLNotes/Gui/MainForm.Designer.cs @@ -44,13 +44,12 @@ private void InitializeComponent() this.NewsBrowser = new System.Windows.Forms.WebBrowser(); this.GameTab = new System.Windows.Forms.TabPage(); this.splitContainer2 = new System.Windows.Forms.SplitContainer(); + this.statusMask = new System.Windows.Forms.Label(); this.statusLabel = new System.Windows.Forms.Label(); this.comboBox1 = new System.Windows.Forms.ComboBox(); - this.teamControl1 = new LoLNotes.Gui.Controls.TeamControl(); this.PlayerEditStrip = new System.Windows.Forms.ContextMenuStrip(this.components); this.editToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.clearToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.teamControl2 = new LoLNotes.Gui.Controls.TeamControl(); this.SettingsTab = new System.Windows.Forms.TabPage(); this.groupBox5 = new System.Windows.Forms.GroupBox(); this.TopChampsBox = new System.Windows.Forms.CheckBox(); @@ -89,7 +88,9 @@ private void InitializeComponent() this.dumpToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.clearToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem(); this.CallTree = new System.Windows.Forms.TreeView(); - this.statusMask = new System.Windows.Forms.Label(); + this.GrayUnrankedBox = new System.Windows.Forms.CheckBox(); + this.teamControl1 = new LoLNotes.Gui.Controls.TeamControl(); + this.teamControl2 = new LoLNotes.Gui.Controls.TeamControl(); this.tabControl1.SuspendLayout(); this.NewsTab.SuspendLayout(); this.GameTab.SuspendLayout(); @@ -192,6 +193,16 @@ private void InitializeComponent() this.splitContainer2.SplitterWidth = 1; this.splitContainer2.TabIndex = 4; // + // statusMask + // + this.statusMask.AutoSize = true; + this.statusMask.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.statusMask.Location = new System.Drawing.Point(287, 5); + this.statusMask.Name = "statusMask"; + this.statusMask.Size = new System.Drawing.Size(99, 20); + this.statusMask.TabIndex = 4; + this.statusMask.Text = "0000000000"; + // // statusLabel // this.statusLabel.AutoSize = true; @@ -216,19 +227,6 @@ private void InitializeComponent() this.comboBox1.TabIndex = 2; this.comboBox1.SelectedIndexChanged += new System.EventHandler(this.comboBox1_SelectedIndexChanged); // - // teamControl1 - // - this.teamControl1.BackColor = System.Drawing.Color.White; - this.teamControl1.Dock = System.Windows.Forms.DockStyle.Fill; - this.teamControl1.Location = new System.Drawing.Point(0, 0); - this.teamControl1.MinimumSize = new System.Drawing.Size(500, 836); - this.teamControl1.Name = "teamControl1"; - this.teamControl1.PlayerContextMenuStrip = this.PlayerEditStrip; - this.teamControl1.Size = new System.Drawing.Size(575, 836); - this.teamControl1.TabIndex = 0; - this.teamControl1.TeamSize = 5; - this.teamControl1.Text = "Team 1"; - // // PlayerEditStrip // this.PlayerEditStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { @@ -251,19 +249,6 @@ private void InitializeComponent() this.clearToolStripMenuItem.Text = "Clear"; this.clearToolStripMenuItem.Click += new System.EventHandler(this.clearToolStripMenuItem_Click); // - // teamControl2 - // - this.teamControl2.BackColor = System.Drawing.Color.White; - this.teamControl2.Dock = System.Windows.Forms.DockStyle.Fill; - this.teamControl2.Location = new System.Drawing.Point(0, 0); - this.teamControl2.MinimumSize = new System.Drawing.Size(500, 836); - this.teamControl2.Name = "teamControl2"; - this.teamControl2.PlayerContextMenuStrip = this.PlayerEditStrip; - this.teamControl2.Size = new System.Drawing.Size(575, 836); - this.teamControl2.TabIndex = 1; - this.teamControl2.TeamSize = 5; - this.teamControl2.Text = "Team 2"; - // // SettingsTab // this.SettingsTab.Controls.Add(this.groupBox5); @@ -285,13 +270,14 @@ private void InitializeComponent() // // groupBox5 // + this.groupBox5.Controls.Add(this.GrayUnrankedBox); this.groupBox5.Controls.Add(this.TopChampsBox); this.groupBox5.Controls.Add(this.StatsBox); this.groupBox5.Controls.Add(this.RecentGamesBox); this.groupBox5.Controls.Add(this.LeagueInfoBox); this.groupBox5.Location = new System.Drawing.Point(172, 59); this.groupBox5.Name = "groupBox5"; - this.groupBox5.Size = new System.Drawing.Size(125, 117); + this.groupBox5.Size = new System.Drawing.Size(211, 94); this.groupBox5.TabIndex = 13; this.groupBox5.TabStop = false; this.groupBox5.Text = "Load What Stats"; @@ -340,7 +326,7 @@ private void InitializeComponent() this.LeagueInfoBox.AutoSize = true; this.LeagueInfoBox.Checked = true; this.LeagueInfoBox.CheckState = System.Windows.Forms.CheckState.Checked; - this.LeagueInfoBox.Location = new System.Drawing.Point(6, 91); + this.LeagueInfoBox.Location = new System.Drawing.Point(109, 19); this.LeagueInfoBox.Name = "LeagueInfoBox"; this.LeagueInfoBox.Size = new System.Drawing.Size(83, 17); this.LeagueInfoBox.TabIndex = 3; @@ -683,15 +669,44 @@ private void InitializeComponent() this.CallTree.Size = new System.Drawing.Size(1157, 568); this.CallTree.TabIndex = 0; // - // statusMask + // GrayUnrankedBox // - this.statusMask.AutoSize = true; - this.statusMask.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.statusMask.Location = new System.Drawing.Point(287, 5); - this.statusMask.Name = "statusMask"; - this.statusMask.Size = new System.Drawing.Size(99, 20); - this.statusMask.TabIndex = 4; - this.statusMask.Text = "0000000000"; + this.GrayUnrankedBox.AutoSize = true; + this.GrayUnrankedBox.Checked = true; + this.GrayUnrankedBox.CheckState = System.Windows.Forms.CheckState.Checked; + this.GrayUnrankedBox.Location = new System.Drawing.Point(109, 42); + this.GrayUnrankedBox.Name = "GrayUnrankedBox"; + this.GrayUnrankedBox.Size = new System.Drawing.Size(98, 17); + this.GrayUnrankedBox.TabIndex = 4; + this.GrayUnrankedBox.Text = "Gray Unranked"; + this.GrayUnrankedBox.UseVisualStyleBackColor = true; + this.GrayUnrankedBox.CheckedChanged += new System.EventHandler(this.GrayUnrankedBox_CheckedChanged); + // + // teamControl1 + // + this.teamControl1.BackColor = System.Drawing.Color.White; + this.teamControl1.Dock = System.Windows.Forms.DockStyle.Fill; + this.teamControl1.Location = new System.Drawing.Point(0, 0); + this.teamControl1.MinimumSize = new System.Drawing.Size(500, 836); + this.teamControl1.Name = "teamControl1"; + this.teamControl1.PlayerContextMenuStrip = this.PlayerEditStrip; + this.teamControl1.Size = new System.Drawing.Size(575, 836); + this.teamControl1.TabIndex = 0; + this.teamControl1.TeamSize = 5; + this.teamControl1.Text = "Team 1"; + // + // teamControl2 + // + this.teamControl2.BackColor = System.Drawing.Color.White; + this.teamControl2.Dock = System.Windows.Forms.DockStyle.Fill; + this.teamControl2.Location = new System.Drawing.Point(0, 0); + this.teamControl2.MinimumSize = new System.Drawing.Size(500, 836); + this.teamControl2.Name = "teamControl2"; + this.teamControl2.PlayerContextMenuStrip = this.PlayerEditStrip; + this.teamControl2.Size = new System.Drawing.Size(575, 836); + this.teamControl2.TabIndex = 1; + this.teamControl2.TeamSize = 5; + this.teamControl2.Text = "Team 2"; // // MainForm // @@ -795,6 +810,7 @@ private void InitializeComponent() private System.Windows.Forms.CheckBox LeagueInfoBox; private System.Windows.Forms.Label statusLabel; private System.Windows.Forms.Label statusMask; + private System.Windows.Forms.CheckBox GrayUnrankedBox; } } diff --git a/LoLNotes/Gui/MainForm.cs b/LoLNotes/Gui/MainForm.cs index 1d4e825..940e052 100644 --- a/LoLNotes/Gui/MainForm.cs +++ b/LoLNotes/Gui/MainForm.cs @@ -336,6 +336,7 @@ void Settings_Loaded(object sender, EventArgs e) StatsBox.Checked = (Settings.LoadWhatData & LoadDataEnum.Stats) != 0; RecentGamesBox.Checked = (Settings.LoadWhatData & LoadDataEnum.RecentGames) != 0; LeagueInfoBox.Checked = (Settings.LoadWhatData & LoadDataEnum.LeagueInfo) != 0; + GrayUnrankedBox.Checked = (Settings.LoadWhatData & LoadDataEnum.GrayUnranked) != 0; } readonly object settingslock = new object(); @@ -710,7 +711,7 @@ void LoadPlayerUIFinish(PlayerCache ply, PlayerControl control) if (ply.RecentChamps != null) control.SetChamps(ply.RecentChamps); if (ply.Games != null) - control.SetGames(ply.Games); + control.SetGames(ply.Games, ((Settings.LoadWhatData & LoadDataEnum.GrayUnranked) != 0)); control.SetSeen(ply.SeenCount); control.SetLoading(false); @@ -1344,5 +1345,13 @@ private void LeagueInfoBox_CheckedChanged(object sender, EventArgs e) else Settings.LoadWhatData &= ~LoadDataEnum.LeagueInfo; } + + private void GrayUnrankedBox_CheckedChanged(object sender, EventArgs e) + { + if (GrayUnrankedBox.Checked) + Settings.LoadWhatData |= LoadDataEnum.GrayUnranked; + else + Settings.LoadWhatData &= ~LoadDataEnum.GrayUnranked; + } } } diff --git a/LoLNotes/Properties/CommitInfo.cs b/LoLNotes/Properties/CommitInfo.cs index 0d61d37..42ad317 100644 --- a/LoLNotes/Properties/CommitInfo.cs +++ b/LoLNotes/Properties/CommitInfo.cs @@ -1,3 +1,3 @@ -[assembly: AssemblyCommit("commit 854bc8f0be8d37356ca7dc1dedc6c7d48a22d4d9\nAuthor: SebastienGllmt \nDate: Sat Nov 29 05:34:06 2014 -0800\n\n Removed unused button\n", "854bc8f0be8d37356ca7dc1dedc6c7d48a22d4d9", "SebastienGllmt", " Sat Nov 29 05:34:06 2014 -0800", "Removed unused button", "SebastienGllmt@gmail.com")] +[assembly: AssemblyCommit("commit 7b38732b9b684fffcd63f765702696aea45d756f\nAuthor: SebastienGllmt \nDate: Sat Nov 29 08:16:10 2014 -0800\n\n Option to gray unranked games\n", "7b38732b9b684fffcd63f765702696aea45d756f", "SebastienGllmt", " Sat Nov 29 08:16:10 2014 -0800", "Option to gray unranked games", "SebastienGllmt@gmail.com")] From 1b070d76416c5ae5582459ff29f95762ccdcc1e0 Mon Sep 17 00:00:00 2001 From: SebastienGllmt Date: Sat, 29 Nov 2014 10:38:07 -0800 Subject: [PATCH 25/25] Changed default settings --- LoLNotes/Gui/MainSettings.cs | 2 +- LoLNotes/Properties/CommitInfo.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/LoLNotes/Gui/MainSettings.cs b/LoLNotes/Gui/MainSettings.cs index f642c89..811b921 100644 --- a/LoLNotes/Gui/MainSettings.cs +++ b/LoLNotes/Gui/MainSettings.cs @@ -161,7 +161,7 @@ public MainSettings() _deleteleavebuster = true; _moduleresolver = ""; _defaultgametab = "Recent"; - _loadwhatdata = LoadDataEnum.All; + _loadwhatdata = LoadDataEnum.LeagueInfo | LoadDataEnum.GrayUnranked | LoadDataEnum.RecentGames; } public bool Save(string file) diff --git a/LoLNotes/Properties/CommitInfo.cs b/LoLNotes/Properties/CommitInfo.cs index 42ad317..db0d594 100644 --- a/LoLNotes/Properties/CommitInfo.cs +++ b/LoLNotes/Properties/CommitInfo.cs @@ -1,3 +1,3 @@ -[assembly: AssemblyCommit("commit 7b38732b9b684fffcd63f765702696aea45d756f\nAuthor: SebastienGllmt \nDate: Sat Nov 29 08:16:10 2014 -0800\n\n Option to gray unranked games\n", "7b38732b9b684fffcd63f765702696aea45d756f", "SebastienGllmt", " Sat Nov 29 08:16:10 2014 -0800", "Option to gray unranked games", "SebastienGllmt@gmail.com")] +[assembly: AssemblyCommit("commit 20444be5a0acead8c3fd59bb8416ea7f3e61f691\nAuthor: SebastienGllmt \nDate: Sat Nov 29 08:39:06 2014 -0800\n\n Ability to gray out unranked games\n", "20444be5a0acead8c3fd59bb8416ea7f3e61f691", "SebastienGllmt", " Sat Nov 29 08:39:06 2014 -0800", "Ability to gray out unranked games", "SebastienGllmt@gmail.com")]