Skip to content

Commit

Permalink
0.2.4
Browse files Browse the repository at this point in the history
  • Loading branch information
KedamaOvO committed Oct 23, 2018
1 parent 0e6ddb6 commit 607a8db
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion IngameOverlayPlugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ namespace IngameOverlay
[SyncPluginDependency("7216787b-507b-4eef-96fb-e993722acf2e", Version = "^1.4.3", Require = true)]
public class IngameOverlayPlugin : Plugin
{
public const string PLUGIN_VERSION = "0.2.3";
public const string PLUGIN_VERSION = "0.2.4";
private string _currentStatusString = "Idle";
private BreakTimeParser _breakTimeParser;

Expand Down Expand Up @@ -59,10 +59,14 @@ public override void OnEnable()
};

ortdp.ListenerManager.OnBeatmapChanged += (b) => _breakTimeParser = new BreakTimeParser(b);

//break time
ortdp.ListenerManager.OnPlayingTimeChanged += (time) =>
{
if (_breakTimeParser == null) return;
if (!_currentStatusString.StartsWith("Playing")) return;
bool updateMmf = false;

foreach (var item in Setting.OverlayConfigs.OverlayConfigItems)
{
if (item.BreakTime == false)
Expand Down

0 comments on commit 607a8db

Please sign in to comment.