Skip to content

Commit

Permalink
Merge branch develop v0.1.1.3200-Beta
Browse files Browse the repository at this point in the history
  • Loading branch information
anoyetta committed Jul 5, 2019
2 parents 985263c + 47e3fa2 commit 6fdef7a
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 5 deletions.
2 changes: 1 addition & 1 deletion CURRENT_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v0.1.0.3116-Beta
v0.1.1.3200-Beta
11 changes: 11 additions & 0 deletions RELEASE_NOTES.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,15 @@
* PCをターゲットまたはフォーカスターゲットしたときそのPCのアクションをキャプチャーするようにした
</description>
</note>

<note>
<version>0.1.1.3200</version>
<channel>Beta</channel>
<timestamp>2019-07-06T00:39:55.4393806+09:00</timestamp>
<uri>https://github.com/anoyetta-academy/kagami/releases/download/v0.1.1.3200-Beta/kagami_v0_1_1_3200_Beta.zip</uri>
<description>
* Beta1.1
* ターゲット, フォーカスターゲットのキャプチャーをOFFに出来ない不具合を修正した
</description>
</note>
</release_notes>
22 changes: 20 additions & 2 deletions source/kagami.Core/Helpers/FFXIVPluginHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ private FFXIVPluginHelper()
private static readonly double AttachSubscribeInterval = 3000;
private static readonly double CombatantSubscribeInterval = 500;

private KagamiOverlayConfig Config => KagamiAddonCore.Current.Config as KagamiOverlayConfig;

public void Start()
{
this.pluginSubscriber = new ThreadWorker(() =>
Expand Down Expand Up @@ -111,8 +113,24 @@ public void Stop()
private void DoRefreshCombatant()
{
this.CurrentPlayer = this.DataRepository?.GetCombatantList().FirstOrDefault();
this.CurrentTarget = this.DataRepository?.GetCombatantByOverlayType(OverlayType.Target);
this.CurrentFocusTarget = this.DataRepository?.GetCombatantByOverlayType(OverlayType.FocusTarget);

if (Config.IsEnableTargetCapture)
{
this.CurrentTarget = this.DataRepository?.GetCombatantByOverlayType(OverlayType.Target);
}
else
{
this.CurrentTarget = null;
}

if (Config.IsEnableFocusTargetCapture)
{
this.CurrentFocusTarget = this.DataRepository?.GetCombatantByOverlayType(OverlayType.FocusTarget);
}
else
{
this.CurrentFocusTarget = null;
}
}
}

Expand Down
2 changes: 1 addition & 1 deletion source/kagami.Core/Version.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using System.Reflection;

[assembly: AssemblyVersion("0.1.0.3116")]
[assembly: AssemblyVersion("0.1.1.3200")]
[assembly: AssemblyConfiguration("Beta")]
2 changes: 1 addition & 1 deletion source/kagami/Version.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using System.Reflection;

[assembly: AssemblyVersion("0.1.0.3116")]
[assembly: AssemblyVersion("0.1.1.3200")]
[assembly: AssemblyConfiguration("Beta")]

0 comments on commit 6fdef7a

Please sign in to comment.