Skip to content

Commit

Permalink
FF14かACTがアクティブなときのみオーバーレイを表示する機能を追加
Browse files Browse the repository at this point in the history
  • Loading branch information
RainbowMage committed Mar 27, 2015
1 parent a51cf64 commit fd286b6
Show file tree
Hide file tree
Showing 16 changed files with 416 additions and 243 deletions.
5 changes: 5 additions & 0 deletions OverlayPlugin.Common/IOverlay.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@ public interface IOverlay : IDisposable
/// </summary>
string Name { get; }

/// <summary>
/// プラグインの設定を取得します。
/// </summary>
IPluginConfig PluginConfig { get; set; }

/// <summary>
/// オーバーレイがログを出力したときに発生します。
/// </summary>
Expand Down
18 changes: 18 additions & 0 deletions OverlayPlugin.Common/IPluginConfig.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace RainbowMage.OverlayPlugin
{
public interface IPluginConfig
{
OverlayConfigList Overlays { get; set; }
bool FollowLatestLog { get; set; }
bool HideOverlaysWhenNotActive { get; set; }
Version Version { get; set; }
bool IsFirstLaunch { get; set; }
}
}
File renamed without changes.
2 changes: 2 additions & 0 deletions OverlayPlugin.Common/OverlayPlugin.Common.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,9 @@
<Compile Include="IOverlay.cs" />
<Compile Include="IOverlayAddon.cs" />
<Compile Include="IOverlayConfig.cs" />
<Compile Include="IPluginConfig.cs" />
<Compile Include="Logger.cs" />
<Compile Include="OverlayConfigList.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
Expand Down
2 changes: 1 addition & 1 deletion OverlayPlugin.Common/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@
// すべての値を指定するか、下のように '*' を使ってビルドおよびリビジョン番号を
// 既定値にすることができます:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("0.3.3.5")]
[assembly: AssemblyVersion("0.3.3.6")]
23 changes: 22 additions & 1 deletion OverlayPlugin.Core/ControlPanel.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions OverlayPlugin.Core/ControlPanel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ public ControlPanel(PluginMain pluginMain, PluginConfig config)
this.pluginMain = pluginMain;
this.config = config;

this.checkBoxAutoHide.Checked = this.config.HideOverlaysWhenNotActive;

this.menuFollowLatestLog.Checked = this.config.FollowLatestLog;
this.listViewLog.VirtualListSize = pluginMain.Logger.Logs.Count;
this.pluginMain.Logger.Logs.ListChanged += (o, e) =>
Expand Down Expand Up @@ -230,5 +232,10 @@ private void buttonRemoveOverlay_Click(object sender, EventArgs e)
UpdateOverlayListView();
}
}

private void checkBoxAutoHide_CheckedChanged(object sender, EventArgs e)
{
config.HideOverlaysWhenNotActive = checkBoxAutoHide.Checked;
}
}
}
3 changes: 3 additions & 0 deletions OverlayPlugin.Core/ControlPanel.ja-JP.resx
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,9 @@
<data name="groupBox2.Text" xml:space="preserve">
<value>オーバーレイの管理</value>
</data>
<data name="checkBoxAutoHide.Text" xml:space="preserve">
<value>非アクティブのときに自動的にオーバーレイを隠す</value>
</data>
<data name="tabPageMain.Text" xml:space="preserve">
<value>設定</value>
</data>
Expand Down
Loading

0 comments on commit fd286b6

Please sign in to comment.