Skip to content

Commit 28bbfc4

Browse files
committed
Merge branch 'master' of https://github.com/topeterk/HitCounterManager into legacy
2 parents f23fc2b + 3d95bdc commit 28bbfc4

3 files changed

Lines changed: 14 additions & 7 deletions

File tree

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,20 +97,22 @@ There is a great growing community on Discord called [Team Hitless](https://disc
9797
If you are seeking for help, guidance or just talk about no hit runs, this is the right place for it.
9898
Thanks to everyone for helping other community members!
9999

100+
To learn more about Team Hitless you can also have a look at the [website](https://www.teamhitless.com).
101+
100102
## Special thanks
101103
I would never have created this tool without the inspiration by watching the awesome 0 hit and no death runners...
102104
Thanks to (in alphabetical order):
103105
* [CouchJockey](https://www.twitch.tv/couchjockey)
104106
* [Dinossindgeil](https://www.twitch.tv/dinossindgeil)
105107
* [DonnyRekt](https://www.twitch.tv/donnyrekt)
106108
* [FaraazKhan](https://www.twitch.tv/faraazkhan)
107-
* [Kazoodle](https://www.twitch.tv/kazoodle)
108109
* [Sayvi](https://www.twitch.tv/sayvi)
109110
* [SlipperySuzie](https://www.twitch.tv/slipperysuzie)
110111
* [Soldi](https://www.twitch.tv/soldi)
111112
* [SquillaKilla](https://www.twitch.tv/squillakilla)
112113
* [The_Happy_Hob](https://www.twitch.tv/the_happy_hob)
113114
* [TigerG92](https://www.twitch.tv/tigerg92)
115+
* [Zoodle](https://www.twitch.tv/zoodle)
114116
* Every member of the [Hitless team on Twitch](https://www.twitch.tv/team/hitless)
115117
* And also all the other great challenge runners out there that I cannot name here all.
116118

Sources/AutoSplitterCoreModule.cs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
using System;
2424
using System.Collections.Generic;
2525
using System.Collections.ObjectModel;
26+
using System.Collections.Specialized;
2627
using System.IO;
2728
using System.Reflection;
2829
using static HitCounterManager.IAutoSplitterCoreInterface;
@@ -231,6 +232,16 @@ public AutoSplitterCoreInterface(Form1 form)
231232
{
232233
form1 = form;
233234
profCtrl = form1.profCtrl;
235+
GameList.CollectionChanged += (object sender, NotifyCollectionChangedEventArgs e) =>
236+
{
237+
switch (e.Action)
238+
{
239+
case NotifyCollectionChangedAction.Add: foreach (string game in e.NewItems) form1.comboBoxGame.Items.Add(game); break;
240+
case NotifyCollectionChangedAction.Remove: foreach (string game in e.NewItems) form1.comboBoxGame.Items.Remove(game); break;
241+
case NotifyCollectionChangedAction.Reset: form1.comboBoxGame.Items.Clear(); break;
242+
default: break;
243+
}
244+
};
234245
}
235246

236247
public bool GetCurrentInGameTime(out long totalTimeMs)

Sources/Form1.cs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -84,12 +84,6 @@ private void Form1_Load(object sender, EventArgs e)
8484
{
8585
profCtrl.InterfaceASC = InterfaceASC = new(this);
8686
AutoSplitterCoreModule.AutoSplitterRegisterInterface(InterfaceASC);
87-
comboBoxGame.Items.Clear();
88-
foreach (string game in InterfaceASC.GameList)
89-
{
90-
comboBoxGame.Items.Add(game);
91-
}
92-
9387
LoadAutoSplitterHotKeys();
9488
}
9589

0 commit comments

Comments
 (0)