-
Notifications
You must be signed in to change notification settings - Fork 183
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* プラグインのメイン処理に関連するアセンブリを OverlayPlugin.Core に変更
* アドオンに関連するインターフェイスを OverlayPlugin.Common として分離 * カスタムアセンブリリゾルバを事前に設定するためのアセンブリを追加(OverlayPlugin) * 静的コンストラクタを使用したアドオンの初期化を廃止 * シリアライズ可能な IOverlayConfig インターフェイスのリストである OverlayConfigList クラスを追加 * ロガーを PluginMain から分離 * OverlayForm の終了処理に問題があったので修正 * HtmlRenderer の終了処理に問題があったので修正 * すべてのプロジェクトのプラットフォームターゲットを Any CPU に変更(OverlayPlugin プロジェクトおよびソリューションのプラットフォーム設定としての x64、x86 は存続) * 配布用スクリプトをアセンブリの追加に対応
- Loading branch information
1 parent
3a6f843
commit 7bd87e4
Showing
73 changed files
with
1,347 additions
and
800 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
using RainbowMage.OverlayPlugin; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace AddonExample | ||
{ | ||
public class AddonExample : IOverlayAddon | ||
{ | ||
public string Name | ||
{ | ||
get { return "Addon Example"; } | ||
} | ||
|
||
public string Description | ||
{ | ||
get { return "Just displays www.yahoo.com."; } | ||
} | ||
|
||
public Type OverlayType | ||
{ | ||
get { return typeof(AddonExampleOverlay); } | ||
} | ||
|
||
public Type OverlayConfigType | ||
{ | ||
get { return typeof(AddonExampleOverlayConfig); } | ||
} | ||
|
||
public Type OverlayConfigControlType | ||
{ | ||
get { return typeof(AddonExampleOverlayConfigPanel); } | ||
} | ||
|
||
public IOverlay CreateOverlayInstance(IOverlayConfig config) | ||
{ | ||
return new AddonExampleOverlay((AddonExampleOverlayConfig)config); | ||
} | ||
|
||
public IOverlayConfig CreateOverlayConfigInstance(string name) | ||
{ | ||
return new AddonExampleOverlayConfig(name); | ||
} | ||
|
||
public System.Windows.Forms.Control CreateOverlayConfigControlInstance(IOverlay overlay) | ||
{ | ||
return new AddonExampleOverlayConfigPanel(); | ||
} | ||
|
||
public void Dispose() | ||
{ | ||
|
||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
using RainbowMage.OverlayPlugin; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace AddonExample | ||
{ | ||
public class AddonExampleOverlayConfig : OverlayConfigBase | ||
{ | ||
public AddonExampleOverlayConfig(string name) | ||
: base(name) | ||
{ | ||
|
||
} | ||
|
||
private AddonExampleOverlayConfig() : base(null) | ||
{ | ||
|
||
} | ||
|
||
public override Type OverlayType | ||
{ | ||
get { return typeof(AddonExampleOverlay); } | ||
} | ||
} | ||
} |
4 changes: 2 additions & 2 deletions
4
...st/ExternalOverlayConfigPanel.Designer.cs → ...ddonExampleOverlayConfigPanel.Designer.cs
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
using System.Windows.Forms; | ||
|
||
namespace RainbowMage.OverlayPlugin | ||
{ | ||
public interface IOverlayAddon : IDisposable | ||
{ | ||
string Name { get; } | ||
string Description { get; } | ||
Type OverlayType { get; } | ||
Type OverlayConfigType { get; } | ||
Type OverlayConfigControlType { get; } | ||
IOverlay CreateOverlayInstance(IOverlayConfig config); | ||
IOverlayConfig CreateOverlayConfigInstance(string name); | ||
Control CreateOverlayConfigControlInstance(IOverlay overlay); | ||
} | ||
} |
Oops, something went wrong.