-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPlugin.cs
More file actions
32 lines (29 loc) · 996 Bytes
/
Plugin.cs
File metadata and controls
32 lines (29 loc) · 996 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
using BepInEx;
using BepInEx.Logging;
using HarmonyLib;
namespace WidgetTimeViewer
{
/// <summary>
/// 時間ウィジェットの表示形式を改善するBepInExプラグイン
/// </summary>
[BepInPlugin(PluginGuid, PluginName, PluginVersion)]
public class Plugin : BaseUnityPlugin
{
private const string PluginGuid = "com.github.yuu1111.widgettimeviewer";
private const string PluginName = "WidgetTimeViewer";
private const string PluginVersion = "1.0.5";
/// <summary>
/// プラグイン用のログ出力インスタンス
/// </summary>
internal new static ManualLogSource Logger;
/// <summary>
/// プラグイン初期化時に呼び出される
/// </summary>
public void Awake()
{
Logger = base.Logger;
Logger.LogInfo(PluginName + " v" + PluginVersion + " is loaded!");
new Harmony(PluginGuid).PatchAll();
}
}
}