Skip to content

Latest commit

 

History

History
35 lines (23 loc) · 1.22 KB

File metadata and controls

35 lines (23 loc) · 1.22 KB

プロジェクト概要

ElinゲームのBepInEx Mod。画面左上のウィジェットに年月日・時刻表示を追加する。

ビルド

# Visual Studioでビルド
msbuild WidgetTimeViewer.sln /p:Configuration=Release

# または dotnet CLIで
dotnet build WidgetTimeViewer.csproj -c Release

出力先: bin/Release/WidgetTimeViewer.dll

技術スタック

  • C# (.NET Framework 4.7.2)
  • BepInEx 5.x (Unity用Modフレームワーク)
  • Harmony 2.x (ランタイムパッチライブラリ)

アーキテクチャ

Plugin.cs      -- BepInExエントリポイント、Harmonyパッチを初期化
TextChange.cs  -- Date.GetText()をパッチして時間表示をカスタマイズ
lib/           -- ゲーム本体・BepInEx・Unity等の依存DLL

パッチの仕組み: DateTextPatchクラスがHarmonyのPrefixパッチでゲームのDate.GetText(TextFormat.Widget)をインターセプトし、独自フォーマットの時間文字列を返す。日本語環境では「○時○分」形式、その他は「HH:MM」形式。

バージョン管理

プラグインバージョンはPlugin.cs:15PluginVersion定数で管理。リリース時はここを更新する。